Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.digitalasset.daml_lf_1_8.DamlLf1 Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: com/digitalasset/daml_lf_1_8/daml_lf_1.proto
package com.digitalasset.daml_lf_1_8;
public final class DamlLf1 {
private DamlLf1() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
* Builtin primitive types
*
*
* Protobuf enum {@code daml_lf_1.PrimType}
*/
public enum PrimType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Builtin type 'Unit'
*
*
* UNIT = 0;
*/
UNIT(0),
/**
*
* Builtin type 'Bool'
*
*
* BOOL = 1;
*/
BOOL(1),
/**
*
* Builtin type 'Int64'
*
*
* INT64 = 2;
*/
INT64(2),
/**
*
* Builtin type for legacy 'Decimal'
* Alias for (Numeric 10)
* *available in version < 1.7*
*
*
* DECIMAL = 3;
*/
DECIMAL(3),
/**
*
* Builtin type 'Text'
*
*
* TEXT = 5;
*/
TEXT(5),
/**
*
* Builtin type 'Timestamp'
*
*
* TIMESTAMP = 6;
*/
TIMESTAMP(6),
/**
*
* Builtin tpe 'Party'
*
*
* PARTY = 8;
*/
PARTY(8),
/**
*
* Builtin type 'List'
*
*
* LIST = 9;
*/
LIST(9),
/**
*
* Builtin type 'Update'
*
*
* UPDATE = 10;
*/
UPDATE(10),
/**
*
* Builtin type 'Scenario'
*
*
* SCENARIO = 11;
*/
SCENARIO(11),
/**
*
* Builtin type 'Date'
*
*
* DATE = 12;
*/
DATE(12),
/**
*
* Builtin type 'ContractId'
*
*
* CONTRACT_ID = 13;
*/
CONTRACT_ID(13),
/**
*
* Builtin type 'Optional'
* *Available in versions >= 1.1*
*
*
* OPTIONAL = 14;
*/
OPTIONAL(14),
/**
*
* Builtin type `TArrow`
* *Available in versions >= 1.1*
*
*
* ARROW = 15;
*/
ARROW(15),
/**
*
* Builtin type 'TTextMap`
* *Available in versions >= 1.3*
*
*
* TEXTMAP = 16;
*/
TEXTMAP(16),
/**
*
* Builtin type 'Numeric'
* *Available in versions >= 1.7*
*
*
* NUMERIC = 17;
*/
NUMERIC(17),
/**
*
* Builtin type 'Any'
* *Available in versions >= 1.7*
*
*
* ANY = 18;
*/
ANY(18),
/**
*
* Builtin type 'TypeRep'
* *Available in versions >= 1.7*
*
*
* TYPE_REP = 19;
*/
TYPE_REP(19),
UNRECOGNIZED(-1),
;
/**
*
* Builtin type 'Unit'
*
*
* UNIT = 0;
*/
public static final int UNIT_VALUE = 0;
/**
*
* Builtin type 'Bool'
*
*
* BOOL = 1;
*/
public static final int BOOL_VALUE = 1;
/**
*
* Builtin type 'Int64'
*
*
* INT64 = 2;
*/
public static final int INT64_VALUE = 2;
/**
*
* Builtin type for legacy 'Decimal'
* Alias for (Numeric 10)
* *available in version < 1.7*
*
*
* DECIMAL = 3;
*/
public static final int DECIMAL_VALUE = 3;
/**
*
* Builtin type 'Text'
*
*
* TEXT = 5;
*/
public static final int TEXT_VALUE = 5;
/**
*
* Builtin type 'Timestamp'
*
*
* TIMESTAMP = 6;
*/
public static final int TIMESTAMP_VALUE = 6;
/**
*
* Builtin tpe 'Party'
*
*
* PARTY = 8;
*/
public static final int PARTY_VALUE = 8;
/**
*
* Builtin type 'List'
*
*
* LIST = 9;
*/
public static final int LIST_VALUE = 9;
/**
*
* Builtin type 'Update'
*
*
* UPDATE = 10;
*/
public static final int UPDATE_VALUE = 10;
/**
*
* Builtin type 'Scenario'
*
*
* SCENARIO = 11;
*/
public static final int SCENARIO_VALUE = 11;
/**
*
* Builtin type 'Date'
*
*
* DATE = 12;
*/
public static final int DATE_VALUE = 12;
/**
*
* Builtin type 'ContractId'
*
*
* CONTRACT_ID = 13;
*/
public static final int CONTRACT_ID_VALUE = 13;
/**
*
* Builtin type 'Optional'
* *Available in versions >= 1.1*
*
*
* OPTIONAL = 14;
*/
public static final int OPTIONAL_VALUE = 14;
/**
*
* Builtin type `TArrow`
* *Available in versions >= 1.1*
*
*
* ARROW = 15;
*/
public static final int ARROW_VALUE = 15;
/**
*
* Builtin type 'TTextMap`
* *Available in versions >= 1.3*
*
*
* TEXTMAP = 16;
*/
public static final int TEXTMAP_VALUE = 16;
/**
*
* Builtin type 'Numeric'
* *Available in versions >= 1.7*
*
*
* NUMERIC = 17;
*/
public static final int NUMERIC_VALUE = 17;
/**
*
* Builtin type 'Any'
* *Available in versions >= 1.7*
*
*
* ANY = 18;
*/
public static final int ANY_VALUE = 18;
/**
*
* Builtin type 'TypeRep'
* *Available in versions >= 1.7*
*
*
* TYPE_REP = 19;
*/
public static final int TYPE_REP_VALUE = 19;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static PrimType valueOf(int value) {
return forNumber(value);
}
public static PrimType forNumber(int value) {
switch (value) {
case 0: return UNIT;
case 1: return BOOL;
case 2: return INT64;
case 3: return DECIMAL;
case 5: return TEXT;
case 6: return TIMESTAMP;
case 8: return PARTY;
case 9: return LIST;
case 10: return UPDATE;
case 11: return SCENARIO;
case 12: return DATE;
case 13: return CONTRACT_ID;
case 14: return OPTIONAL;
case 15: return ARROW;
case 16: return TEXTMAP;
case 17: return NUMERIC;
case 18: return ANY;
case 19: return TYPE_REP;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
PrimType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public PrimType findValueByNumber(int number) {
return PrimType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.getDescriptor().getEnumTypes().get(0);
}
private static final PrimType[] VALUES = values();
public static PrimType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private PrimType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:daml_lf_1.PrimType)
}
/**
*
* Primitive constructors
*
*
* Protobuf enum {@code daml_lf_1.PrimCon}
*/
public enum PrimCon
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Unit value '()'
*
*
* CON_UNIT = 0;
*/
CON_UNIT(0),
/**
*
* 'False' boolean value
*
*
* CON_FALSE = 1;
*/
CON_FALSE(1),
/**
*
* 'True' boolean value
*
*
* CON_TRUE = 2;
*/
CON_TRUE(2),
UNRECOGNIZED(-1),
;
/**
*
* Unit value '()'
*
*
* CON_UNIT = 0;
*/
public static final int CON_UNIT_VALUE = 0;
/**
*
* 'False' boolean value
*
*
* CON_FALSE = 1;
*/
public static final int CON_FALSE_VALUE = 1;
/**
*
* 'True' boolean value
*
*
* CON_TRUE = 2;
*/
public static final int CON_TRUE_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static PrimCon valueOf(int value) {
return forNumber(value);
}
public static PrimCon forNumber(int value) {
switch (value) {
case 0: return CON_UNIT;
case 1: return CON_FALSE;
case 2: return CON_TRUE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
PrimCon> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public PrimCon findValueByNumber(int number) {
return PrimCon.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.getDescriptor().getEnumTypes().get(1);
}
private static final PrimCon[] VALUES = values();
public static PrimCon valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private PrimCon(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:daml_lf_1.PrimCon)
}
/**
*
* Builtin functions
* Refer to DAML-LF major version 1 specification for types and behavior of those.
*
*
* Protobuf enum {@code daml_lf_1.BuiltinFunction}
*/
public enum BuiltinFunction
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* *Available in versions < 1.7*
*
*
* ADD_DECIMAL = 0;
*/
ADD_DECIMAL(0),
/**
*
* *Available in versions < 1.7*
*
*
* SUB_DECIMAL = 1;
*/
SUB_DECIMAL(1),
/**
*
* *Available in versions < 1.7*
*
*
* MUL_DECIMAL = 2;
*/
MUL_DECIMAL(2),
/**
*
* *Available in versions < 1.7*
*
*
* DIV_DECIMAL = 3;
*/
DIV_DECIMAL(3),
/**
*
* *Available in versions < 1.7*
*
*
* ROUND_DECIMAL = 6;
*/
ROUND_DECIMAL(6),
/**
*
* *Available in versions >= 1.7*
*
*
* ADD_NUMERIC = 107;
*/
ADD_NUMERIC(107),
/**
*
* *Available in versions >= 1.7*
*
*
* SUB_NUMERIC = 108;
*/
SUB_NUMERIC(108),
/**
*
* *Available in versions >= 1.7*
*
*
* MUL_NUMERIC = 109;
*/
MUL_NUMERIC(109),
/**
*
* *Available in versions >= 1.7*
*
*
* DIV_NUMERIC = 110;
*/
DIV_NUMERIC(110),
/**
*
* *Available in versions >= 1.7*
*
*
* ROUND_NUMERIC = 111;
*/
ROUND_NUMERIC(111),
/**
*
* *Available in versions >= 1.7*
*
*
* CAST_NUMERIC = 121;
*/
CAST_NUMERIC(121),
/**
*
* *Available in versions >= 1.7*
*
*
* SHIFT_NUMERIC = 122;
*/
SHIFT_NUMERIC(122),
/**
* ADD_INT64 = 7;
*/
ADD_INT64(7),
/**
* SUB_INT64 = 8;
*/
SUB_INT64(8),
/**
* MUL_INT64 = 9;
*/
MUL_INT64(9),
/**
* DIV_INT64 = 10;
*/
DIV_INT64(10),
/**
* MOD_INT64 = 11;
*/
MOD_INT64(11),
/**
* EXP_INT64 = 12;
*/
EXP_INT64(12),
/**
* FOLDL = 20;
*/
FOLDL(20),
/**
* FOLDR = 21;
*/
FOLDR(21),
/**
* TEXTMAP_EMPTY = 96;
*/
TEXTMAP_EMPTY(96),
/**
* TEXTMAP_INSERT = 97;
*/
TEXTMAP_INSERT(97),
/**
* TEXTMAP_LOOKUP = 98;
*/
TEXTMAP_LOOKUP(98),
/**
* TEXTMAP_DELETE = 99;
*/
TEXTMAP_DELETE(99),
/**
* TEXTMAP_TO_LIST = 100;
*/
TEXTMAP_TO_LIST(100),
/**
* TEXTMAP_SIZE = 101;
*/
TEXTMAP_SIZE(101),
/**
* EXPLODE_TEXT = 23;
*/
EXPLODE_TEXT(23),
/**
* APPEND_TEXT = 24;
*/
APPEND_TEXT(24),
/**
* ERROR = 25;
*/
ERROR(25),
/**
* LEQ_INT64 = 33;
*/
LEQ_INT64(33),
/**
*
* *Available in versions < 1.7*
*
*
* LEQ_DECIMAL = 34;
*/
LEQ_DECIMAL(34),
/**
*
* *Available in versions >= 1.7*
*
*
* LEQ_NUMERIC = 112;
*/
LEQ_NUMERIC(112),
/**
* LEQ_TEXT = 36;
*/
LEQ_TEXT(36),
/**
* LEQ_TIMESTAMP = 37;
*/
LEQ_TIMESTAMP(37),
/**
* LEQ_DATE = 67;
*/
LEQ_DATE(67),
/**
*
* *Available in versions >= 1.1*
*
*
* LEQ_PARTY = 89;
*/
LEQ_PARTY(89),
/**
* LESS_INT64 = 39;
*/
LESS_INT64(39),
/**
*
* *Available in versions < 1.7*
*
*
* LESS_DECIMAL = 40;
*/
LESS_DECIMAL(40),
/**
*
* *Available in versions >= 1.7*
*
*
* LESS_NUMERIC = 113;
*/
LESS_NUMERIC(113),
/**
* LESS_TEXT = 42;
*/
LESS_TEXT(42),
/**
* LESS_TIMESTAMP = 43;
*/
LESS_TIMESTAMP(43),
/**
* LESS_DATE = 68;
*/
LESS_DATE(68),
/**
*
* *Available in versions >= 1.1*
*
*
* LESS_PARTY = 90;
*/
LESS_PARTY(90),
/**
* GEQ_INT64 = 45;
*/
GEQ_INT64(45),
/**
*
* *Available in versions < 1.7*
*
*
* GEQ_DECIMAL = 46;
*/
GEQ_DECIMAL(46),
/**
*
* *Available in versions >= 1.7*
*
*
* GEQ_NUMERIC = 114;
*/
GEQ_NUMERIC(114),
/**
* GEQ_TEXT = 48;
*/
GEQ_TEXT(48),
/**
* GEQ_TIMESTAMP = 49;
*/
GEQ_TIMESTAMP(49),
/**
* GEQ_DATE = 69;
*/
GEQ_DATE(69),
/**
*
* *Available in versions >= 1.1*
*
*
* GEQ_PARTY = 91;
*/
GEQ_PARTY(91),
/**
* GREATER_INT64 = 51;
*/
GREATER_INT64(51),
/**
*
* *Available in versions < 1.7*
*
*
* GREATER_DECIMAL = 52;
*/
GREATER_DECIMAL(52),
/**
*
* *Available in versions >= 1.7*
*
*
* GREATER_NUMERIC = 115;
*/
GREATER_NUMERIC(115),
/**
* GREATER_TEXT = 54;
*/
GREATER_TEXT(54),
/**
* GREATER_TIMESTAMP = 55;
*/
GREATER_TIMESTAMP(55),
/**
* GREATER_DATE = 70;
*/
GREATER_DATE(70),
/**
*
* *Available in versions >= 1.1*
*
*
* GREATER_PARTY = 92;
*/
GREATER_PARTY(92),
/**
* TO_TEXT_INT64 = 57;
*/
TO_TEXT_INT64(57),
/**
*
* *Available in versions < 1.7*
*
*
* TO_TEXT_DECIMAL = 58;
*/
TO_TEXT_DECIMAL(58),
/**
*
* *Available in versions >= 1.7*
*
*
* TO_TEXT_NUMERIC = 116;
*/
TO_TEXT_NUMERIC(116),
/**
* TO_TEXT_TEXT = 60;
*/
TO_TEXT_TEXT(60),
/**
* TO_TEXT_TIMESTAMP = 61;
*/
TO_TEXT_TIMESTAMP(61),
/**
* TO_TEXT_DATE = 71;
*/
TO_TEXT_DATE(71),
/**
*
* legacy, remove in next major version
*
*
* TO_QUOTED_TEXT_PARTY = 63;
*/
TO_QUOTED_TEXT_PARTY(63),
/**
*
* *Available in versions >= 1.2*
*
*
* TO_TEXT_PARTY = 94;
*/
TO_TEXT_PARTY(94),
/**
*
* *Available in versions >= 1.2*, was named FROM_TEXT_PARTY in 1.2, 1.3 and 1.4
*
*
* FROM_TEXT_PARTY = 95;
*/
FROM_TEXT_PARTY(95),
/**
*
* *Available in versions >= 1.5*
*
*
* FROM_TEXT_INT64 = 103;
*/
FROM_TEXT_INT64(103),
/**
*
* *Available in versions 1.5 and 1.6
*
*
* FROM_TEXT_DECIMAL = 104;
*/
FROM_TEXT_DECIMAL(104),
/**
*
* *Available in versions >= 1.7*
*
*
* FROM_TEXT_NUMERIC = 117;
*/
FROM_TEXT_NUMERIC(117),
/**
*
* *Available in versions >= 1.2*
*
*
* SHA256_TEXT = 93;
*/
SHA256_TEXT(93),
/**
*
* Date -> Int64
*
*
* DATE_TO_UNIX_DAYS = 72;
*/
DATE_TO_UNIX_DAYS(72),
/**
*
* Int64 -> Date
*
*
* UNIX_DAYS_TO_DATE = 73;
*/
UNIX_DAYS_TO_DATE(73),
/**
*
* Timestamp -> Int64
*
*
* TIMESTAMP_TO_UNIX_MICROSECONDS = 74;
*/
TIMESTAMP_TO_UNIX_MICROSECONDS(74),
/**
*
* Int64 -> Timestamp
*
*
* UNIX_MICROSECONDS_TO_TIMESTAMP = 75;
*/
UNIX_MICROSECONDS_TO_TIMESTAMP(75),
/**
*
* *Available in versions < 1.7*
*
*
* INT64_TO_DECIMAL = 76;
*/
INT64_TO_DECIMAL(76),
/**
*
* *Available in versions < 1.7*
*
*
* DECIMAL_TO_INT64 = 77;
*/
DECIMAL_TO_INT64(77),
/**
*
* *Available in versions >= 1.7*
*
*
* INT64_TO_NUMERIC = 118;
*/
INT64_TO_NUMERIC(118),
/**
*
* *Available in versions >= 1.7*
*
*
* NUMERIC_TO_INT64 = 119;
*/
NUMERIC_TO_INT64(119),
/**
* IMPLODE_TEXT = 78;
*/
IMPLODE_TEXT(78),
/**
* EQUAL_INT64 = 79;
*/
EQUAL_INT64(79),
/**
*
* *Available in versions < 1.7*
*
*
* EQUAL_DECIMAL = 80;
*/
EQUAL_DECIMAL(80),
/**
*
* *Available in versions >= 1.7*
*
*
* EQUAL_NUMERIC = 120;
*/
EQUAL_NUMERIC(120),
/**
* EQUAL_TEXT = 81;
*/
EQUAL_TEXT(81),
/**
* EQUAL_TIMESTAMP = 82;
*/
EQUAL_TIMESTAMP(82),
/**
* EQUAL_DATE = 83;
*/
EQUAL_DATE(83),
/**
* EQUAL_PARTY = 84;
*/
EQUAL_PARTY(84),
/**
* EQUAL_BOOL = 85;
*/
EQUAL_BOOL(85),
/**
* EQUAL_CONTRACT_ID = 86;
*/
EQUAL_CONTRACT_ID(86),
/**
* EQUAL_LIST = 87;
*/
EQUAL_LIST(87),
/**
* EQUAL_TYPE_REP = 123;
*/
EQUAL_TYPE_REP(123),
/**
* TRACE = 88;
*/
TRACE(88),
/**
* COERCE_CONTRACT_ID = 102;
*/
COERCE_CONTRACT_ID(102),
/**
*
* *Available in versions >= 1.6*
*
*
* TEXT_FROM_CODE_POINTS = 105;
*/
TEXT_FROM_CODE_POINTS(105),
/**
*
* *Available in versions >= 1.6*
*
*
* TEXT_TO_CODE_POINTS = 106;
*/
TEXT_TO_CODE_POINTS(106),
UNRECOGNIZED(-1),
;
/**
*
* *Available in versions < 1.7*
*
*
* ADD_DECIMAL = 0;
*/
public static final int ADD_DECIMAL_VALUE = 0;
/**
*
* *Available in versions < 1.7*
*
*
* SUB_DECIMAL = 1;
*/
public static final int SUB_DECIMAL_VALUE = 1;
/**
*
* *Available in versions < 1.7*
*
*
* MUL_DECIMAL = 2;
*/
public static final int MUL_DECIMAL_VALUE = 2;
/**
*
* *Available in versions < 1.7*
*
*
* DIV_DECIMAL = 3;
*/
public static final int DIV_DECIMAL_VALUE = 3;
/**
*
* *Available in versions < 1.7*
*
*
* ROUND_DECIMAL = 6;
*/
public static final int ROUND_DECIMAL_VALUE = 6;
/**
*
* *Available in versions >= 1.7*
*
*
* ADD_NUMERIC = 107;
*/
public static final int ADD_NUMERIC_VALUE = 107;
/**
*
* *Available in versions >= 1.7*
*
*
* SUB_NUMERIC = 108;
*/
public static final int SUB_NUMERIC_VALUE = 108;
/**
*
* *Available in versions >= 1.7*
*
*
* MUL_NUMERIC = 109;
*/
public static final int MUL_NUMERIC_VALUE = 109;
/**
*
* *Available in versions >= 1.7*
*
*
* DIV_NUMERIC = 110;
*/
public static final int DIV_NUMERIC_VALUE = 110;
/**
*
* *Available in versions >= 1.7*
*
*
* ROUND_NUMERIC = 111;
*/
public static final int ROUND_NUMERIC_VALUE = 111;
/**
*
* *Available in versions >= 1.7*
*
*
* CAST_NUMERIC = 121;
*/
public static final int CAST_NUMERIC_VALUE = 121;
/**
*
* *Available in versions >= 1.7*
*
*
* SHIFT_NUMERIC = 122;
*/
public static final int SHIFT_NUMERIC_VALUE = 122;
/**
* ADD_INT64 = 7;
*/
public static final int ADD_INT64_VALUE = 7;
/**
* SUB_INT64 = 8;
*/
public static final int SUB_INT64_VALUE = 8;
/**
* MUL_INT64 = 9;
*/
public static final int MUL_INT64_VALUE = 9;
/**
* DIV_INT64 = 10;
*/
public static final int DIV_INT64_VALUE = 10;
/**
* MOD_INT64 = 11;
*/
public static final int MOD_INT64_VALUE = 11;
/**
* EXP_INT64 = 12;
*/
public static final int EXP_INT64_VALUE = 12;
/**
* FOLDL = 20;
*/
public static final int FOLDL_VALUE = 20;
/**
* FOLDR = 21;
*/
public static final int FOLDR_VALUE = 21;
/**
* TEXTMAP_EMPTY = 96;
*/
public static final int TEXTMAP_EMPTY_VALUE = 96;
/**
* TEXTMAP_INSERT = 97;
*/
public static final int TEXTMAP_INSERT_VALUE = 97;
/**
* TEXTMAP_LOOKUP = 98;
*/
public static final int TEXTMAP_LOOKUP_VALUE = 98;
/**
* TEXTMAP_DELETE = 99;
*/
public static final int TEXTMAP_DELETE_VALUE = 99;
/**
* TEXTMAP_TO_LIST = 100;
*/
public static final int TEXTMAP_TO_LIST_VALUE = 100;
/**
* TEXTMAP_SIZE = 101;
*/
public static final int TEXTMAP_SIZE_VALUE = 101;
/**
* EXPLODE_TEXT = 23;
*/
public static final int EXPLODE_TEXT_VALUE = 23;
/**
* APPEND_TEXT = 24;
*/
public static final int APPEND_TEXT_VALUE = 24;
/**
* ERROR = 25;
*/
public static final int ERROR_VALUE = 25;
/**
* LEQ_INT64 = 33;
*/
public static final int LEQ_INT64_VALUE = 33;
/**
*
* *Available in versions < 1.7*
*
*
* LEQ_DECIMAL = 34;
*/
public static final int LEQ_DECIMAL_VALUE = 34;
/**
*
* *Available in versions >= 1.7*
*
*
* LEQ_NUMERIC = 112;
*/
public static final int LEQ_NUMERIC_VALUE = 112;
/**
* LEQ_TEXT = 36;
*/
public static final int LEQ_TEXT_VALUE = 36;
/**
* LEQ_TIMESTAMP = 37;
*/
public static final int LEQ_TIMESTAMP_VALUE = 37;
/**
* LEQ_DATE = 67;
*/
public static final int LEQ_DATE_VALUE = 67;
/**
*
* *Available in versions >= 1.1*
*
*
* LEQ_PARTY = 89;
*/
public static final int LEQ_PARTY_VALUE = 89;
/**
* LESS_INT64 = 39;
*/
public static final int LESS_INT64_VALUE = 39;
/**
*
* *Available in versions < 1.7*
*
*
* LESS_DECIMAL = 40;
*/
public static final int LESS_DECIMAL_VALUE = 40;
/**
*
* *Available in versions >= 1.7*
*
*
* LESS_NUMERIC = 113;
*/
public static final int LESS_NUMERIC_VALUE = 113;
/**
* LESS_TEXT = 42;
*/
public static final int LESS_TEXT_VALUE = 42;
/**
* LESS_TIMESTAMP = 43;
*/
public static final int LESS_TIMESTAMP_VALUE = 43;
/**
* LESS_DATE = 68;
*/
public static final int LESS_DATE_VALUE = 68;
/**
*
* *Available in versions >= 1.1*
*
*
* LESS_PARTY = 90;
*/
public static final int LESS_PARTY_VALUE = 90;
/**
* GEQ_INT64 = 45;
*/
public static final int GEQ_INT64_VALUE = 45;
/**
*
* *Available in versions < 1.7*
*
*
* GEQ_DECIMAL = 46;
*/
public static final int GEQ_DECIMAL_VALUE = 46;
/**
*
* *Available in versions >= 1.7*
*
*
* GEQ_NUMERIC = 114;
*/
public static final int GEQ_NUMERIC_VALUE = 114;
/**
* GEQ_TEXT = 48;
*/
public static final int GEQ_TEXT_VALUE = 48;
/**
* GEQ_TIMESTAMP = 49;
*/
public static final int GEQ_TIMESTAMP_VALUE = 49;
/**
* GEQ_DATE = 69;
*/
public static final int GEQ_DATE_VALUE = 69;
/**
*
* *Available in versions >= 1.1*
*
*
* GEQ_PARTY = 91;
*/
public static final int GEQ_PARTY_VALUE = 91;
/**
* GREATER_INT64 = 51;
*/
public static final int GREATER_INT64_VALUE = 51;
/**
*
* *Available in versions < 1.7*
*
*
* GREATER_DECIMAL = 52;
*/
public static final int GREATER_DECIMAL_VALUE = 52;
/**
*
* *Available in versions >= 1.7*
*
*
* GREATER_NUMERIC = 115;
*/
public static final int GREATER_NUMERIC_VALUE = 115;
/**
* GREATER_TEXT = 54;
*/
public static final int GREATER_TEXT_VALUE = 54;
/**
* GREATER_TIMESTAMP = 55;
*/
public static final int GREATER_TIMESTAMP_VALUE = 55;
/**
* GREATER_DATE = 70;
*/
public static final int GREATER_DATE_VALUE = 70;
/**
*
* *Available in versions >= 1.1*
*
*
* GREATER_PARTY = 92;
*/
public static final int GREATER_PARTY_VALUE = 92;
/**
* TO_TEXT_INT64 = 57;
*/
public static final int TO_TEXT_INT64_VALUE = 57;
/**
*
* *Available in versions < 1.7*
*
*
* TO_TEXT_DECIMAL = 58;
*/
public static final int TO_TEXT_DECIMAL_VALUE = 58;
/**
*
* *Available in versions >= 1.7*
*
*
* TO_TEXT_NUMERIC = 116;
*/
public static final int TO_TEXT_NUMERIC_VALUE = 116;
/**
* TO_TEXT_TEXT = 60;
*/
public static final int TO_TEXT_TEXT_VALUE = 60;
/**
* TO_TEXT_TIMESTAMP = 61;
*/
public static final int TO_TEXT_TIMESTAMP_VALUE = 61;
/**
* TO_TEXT_DATE = 71;
*/
public static final int TO_TEXT_DATE_VALUE = 71;
/**
*
* legacy, remove in next major version
*
*
* TO_QUOTED_TEXT_PARTY = 63;
*/
public static final int TO_QUOTED_TEXT_PARTY_VALUE = 63;
/**
*
* *Available in versions >= 1.2*
*
*
* TO_TEXT_PARTY = 94;
*/
public static final int TO_TEXT_PARTY_VALUE = 94;
/**
*
* *Available in versions >= 1.2*, was named FROM_TEXT_PARTY in 1.2, 1.3 and 1.4
*
*
* FROM_TEXT_PARTY = 95;
*/
public static final int FROM_TEXT_PARTY_VALUE = 95;
/**
*
* *Available in versions >= 1.5*
*
*
* FROM_TEXT_INT64 = 103;
*/
public static final int FROM_TEXT_INT64_VALUE = 103;
/**
*
* *Available in versions 1.5 and 1.6
*
*
* FROM_TEXT_DECIMAL = 104;
*/
public static final int FROM_TEXT_DECIMAL_VALUE = 104;
/**
*
* *Available in versions >= 1.7*
*
*
* FROM_TEXT_NUMERIC = 117;
*/
public static final int FROM_TEXT_NUMERIC_VALUE = 117;
/**
*
* *Available in versions >= 1.2*
*
*
* SHA256_TEXT = 93;
*/
public static final int SHA256_TEXT_VALUE = 93;
/**
*
* Date -> Int64
*
*
* DATE_TO_UNIX_DAYS = 72;
*/
public static final int DATE_TO_UNIX_DAYS_VALUE = 72;
/**
*
* Int64 -> Date
*
*
* UNIX_DAYS_TO_DATE = 73;
*/
public static final int UNIX_DAYS_TO_DATE_VALUE = 73;
/**
*
* Timestamp -> Int64
*
*
* TIMESTAMP_TO_UNIX_MICROSECONDS = 74;
*/
public static final int TIMESTAMP_TO_UNIX_MICROSECONDS_VALUE = 74;
/**
*
* Int64 -> Timestamp
*
*
* UNIX_MICROSECONDS_TO_TIMESTAMP = 75;
*/
public static final int UNIX_MICROSECONDS_TO_TIMESTAMP_VALUE = 75;
/**
*
* *Available in versions < 1.7*
*
*
* INT64_TO_DECIMAL = 76;
*/
public static final int INT64_TO_DECIMAL_VALUE = 76;
/**
*
* *Available in versions < 1.7*
*
*
* DECIMAL_TO_INT64 = 77;
*/
public static final int DECIMAL_TO_INT64_VALUE = 77;
/**
*
* *Available in versions >= 1.7*
*
*
* INT64_TO_NUMERIC = 118;
*/
public static final int INT64_TO_NUMERIC_VALUE = 118;
/**
*
* *Available in versions >= 1.7*
*
*
* NUMERIC_TO_INT64 = 119;
*/
public static final int NUMERIC_TO_INT64_VALUE = 119;
/**
* IMPLODE_TEXT = 78;
*/
public static final int IMPLODE_TEXT_VALUE = 78;
/**
* EQUAL_INT64 = 79;
*/
public static final int EQUAL_INT64_VALUE = 79;
/**
*
* *Available in versions < 1.7*
*
*
* EQUAL_DECIMAL = 80;
*/
public static final int EQUAL_DECIMAL_VALUE = 80;
/**
*
* *Available in versions >= 1.7*
*
*
* EQUAL_NUMERIC = 120;
*/
public static final int EQUAL_NUMERIC_VALUE = 120;
/**
* EQUAL_TEXT = 81;
*/
public static final int EQUAL_TEXT_VALUE = 81;
/**
* EQUAL_TIMESTAMP = 82;
*/
public static final int EQUAL_TIMESTAMP_VALUE = 82;
/**
* EQUAL_DATE = 83;
*/
public static final int EQUAL_DATE_VALUE = 83;
/**
* EQUAL_PARTY = 84;
*/
public static final int EQUAL_PARTY_VALUE = 84;
/**
* EQUAL_BOOL = 85;
*/
public static final int EQUAL_BOOL_VALUE = 85;
/**
* EQUAL_CONTRACT_ID = 86;
*/
public static final int EQUAL_CONTRACT_ID_VALUE = 86;
/**
* EQUAL_LIST = 87;
*/
public static final int EQUAL_LIST_VALUE = 87;
/**
* EQUAL_TYPE_REP = 123;
*/
public static final int EQUAL_TYPE_REP_VALUE = 123;
/**
* TRACE = 88;
*/
public static final int TRACE_VALUE = 88;
/**
* COERCE_CONTRACT_ID = 102;
*/
public static final int COERCE_CONTRACT_ID_VALUE = 102;
/**
*
* *Available in versions >= 1.6*
*
*
* TEXT_FROM_CODE_POINTS = 105;
*/
public static final int TEXT_FROM_CODE_POINTS_VALUE = 105;
/**
*
* *Available in versions >= 1.6*
*
*
* TEXT_TO_CODE_POINTS = 106;
*/
public static final int TEXT_TO_CODE_POINTS_VALUE = 106;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static BuiltinFunction valueOf(int value) {
return forNumber(value);
}
public static BuiltinFunction forNumber(int value) {
switch (value) {
case 0: return ADD_DECIMAL;
case 1: return SUB_DECIMAL;
case 2: return MUL_DECIMAL;
case 3: return DIV_DECIMAL;
case 6: return ROUND_DECIMAL;
case 107: return ADD_NUMERIC;
case 108: return SUB_NUMERIC;
case 109: return MUL_NUMERIC;
case 110: return DIV_NUMERIC;
case 111: return ROUND_NUMERIC;
case 121: return CAST_NUMERIC;
case 122: return SHIFT_NUMERIC;
case 7: return ADD_INT64;
case 8: return SUB_INT64;
case 9: return MUL_INT64;
case 10: return DIV_INT64;
case 11: return MOD_INT64;
case 12: return EXP_INT64;
case 20: return FOLDL;
case 21: return FOLDR;
case 96: return TEXTMAP_EMPTY;
case 97: return TEXTMAP_INSERT;
case 98: return TEXTMAP_LOOKUP;
case 99: return TEXTMAP_DELETE;
case 100: return TEXTMAP_TO_LIST;
case 101: return TEXTMAP_SIZE;
case 23: return EXPLODE_TEXT;
case 24: return APPEND_TEXT;
case 25: return ERROR;
case 33: return LEQ_INT64;
case 34: return LEQ_DECIMAL;
case 112: return LEQ_NUMERIC;
case 36: return LEQ_TEXT;
case 37: return LEQ_TIMESTAMP;
case 67: return LEQ_DATE;
case 89: return LEQ_PARTY;
case 39: return LESS_INT64;
case 40: return LESS_DECIMAL;
case 113: return LESS_NUMERIC;
case 42: return LESS_TEXT;
case 43: return LESS_TIMESTAMP;
case 68: return LESS_DATE;
case 90: return LESS_PARTY;
case 45: return GEQ_INT64;
case 46: return GEQ_DECIMAL;
case 114: return GEQ_NUMERIC;
case 48: return GEQ_TEXT;
case 49: return GEQ_TIMESTAMP;
case 69: return GEQ_DATE;
case 91: return GEQ_PARTY;
case 51: return GREATER_INT64;
case 52: return GREATER_DECIMAL;
case 115: return GREATER_NUMERIC;
case 54: return GREATER_TEXT;
case 55: return GREATER_TIMESTAMP;
case 70: return GREATER_DATE;
case 92: return GREATER_PARTY;
case 57: return TO_TEXT_INT64;
case 58: return TO_TEXT_DECIMAL;
case 116: return TO_TEXT_NUMERIC;
case 60: return TO_TEXT_TEXT;
case 61: return TO_TEXT_TIMESTAMP;
case 71: return TO_TEXT_DATE;
case 63: return TO_QUOTED_TEXT_PARTY;
case 94: return TO_TEXT_PARTY;
case 95: return FROM_TEXT_PARTY;
case 103: return FROM_TEXT_INT64;
case 104: return FROM_TEXT_DECIMAL;
case 117: return FROM_TEXT_NUMERIC;
case 93: return SHA256_TEXT;
case 72: return DATE_TO_UNIX_DAYS;
case 73: return UNIX_DAYS_TO_DATE;
case 74: return TIMESTAMP_TO_UNIX_MICROSECONDS;
case 75: return UNIX_MICROSECONDS_TO_TIMESTAMP;
case 76: return INT64_TO_DECIMAL;
case 77: return DECIMAL_TO_INT64;
case 118: return INT64_TO_NUMERIC;
case 119: return NUMERIC_TO_INT64;
case 78: return IMPLODE_TEXT;
case 79: return EQUAL_INT64;
case 80: return EQUAL_DECIMAL;
case 120: return EQUAL_NUMERIC;
case 81: return EQUAL_TEXT;
case 82: return EQUAL_TIMESTAMP;
case 83: return EQUAL_DATE;
case 84: return EQUAL_PARTY;
case 85: return EQUAL_BOOL;
case 86: return EQUAL_CONTRACT_ID;
case 87: return EQUAL_LIST;
case 123: return EQUAL_TYPE_REP;
case 88: return TRACE;
case 102: return COERCE_CONTRACT_ID;
case 105: return TEXT_FROM_CODE_POINTS;
case 106: return TEXT_TO_CODE_POINTS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
BuiltinFunction> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public BuiltinFunction findValueByNumber(int number) {
return BuiltinFunction.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.getDescriptor().getEnumTypes().get(2);
}
private static final BuiltinFunction[] VALUES = values();
public static BuiltinFunction valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private BuiltinFunction(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:daml_lf_1.BuiltinFunction)
}
public interface UnitOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Unit)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* Canonical encoding in one-ofs for cases that carry no meaningful
* values.
*
*
* Protobuf type {@code daml_lf_1.Unit}
*/
public static final class Unit extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Unit)
UnitOrBuilder {
private static final long serialVersionUID = 0L;
// Use Unit.newBuilder() to construct.
private Unit(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Unit() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Unit();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Unit(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Unit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Unit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Unit.class, com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Unit)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Unit other = (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Unit parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Unit parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Unit parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Unit parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Unit parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Unit parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Unit parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Unit parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Unit parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Unit parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Unit parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Unit parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Unit prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Canonical encoding in one-ofs for cases that carry no meaningful
* values.
*
*
* Protobuf type {@code daml_lf_1.Unit}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Unit)
com.digitalasset.daml_lf_1_8.DamlLf1.UnitOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Unit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Unit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Unit.class, com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Unit.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Unit_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Unit getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Unit build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Unit result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Unit buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Unit result = new com.digitalasset.daml_lf_1_8.DamlLf1.Unit(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Unit) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Unit)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Unit other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Unit parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Unit)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Unit)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Unit DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Unit();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Unit getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Unit parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Unit(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Unit getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PackageRefOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.PackageRef)
com.google.protobuf.MessageOrBuilder {
/**
*
* Reference to the package of which the package this reference
* belongs.
*
*
* .daml_lf_1.Unit self = 1[json_name = "self"];
*/
boolean hasSelf();
/**
*
* Reference to the package of which the package this reference
* belongs.
*
*
* .daml_lf_1.Unit self = 1[json_name = "self"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Unit getSelf();
/**
*
* Reference to the package of which the package this reference
* belongs.
*
*
* .daml_lf_1.Unit self = 1[json_name = "self"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.UnitOrBuilder getSelfOrBuilder();
/**
*
* A `Package identifier` for an imported Package.
* *Must be a list of valid packageId string*
*
*
* string package_id_str = 2[json_name = "packageIdStr"];
*/
java.lang.String getPackageIdStr();
/**
*
* A `Package identifier` for an imported Package.
* *Must be a list of valid packageId string*
*
*
* string package_id_str = 2[json_name = "packageIdStr"];
*/
com.google.protobuf.ByteString
getPackageIdStrBytes();
/**
*
* An index into `interned_package_ids` of the Package containing
* this reference.
* *Must be a valid interned package Id string*
*
*
* int32 package_id_interned_str = 3[json_name = "packageIdInternedStr"];
*/
int getPackageIdInternedStr();
public com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef.SumCase getSumCase();
}
/**
*
* Package reference
*
*
* Protobuf type {@code daml_lf_1.PackageRef}
*/
public static final class PackageRef extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.PackageRef)
PackageRefOrBuilder {
private static final long serialVersionUID = 0L;
// Use PackageRef.newBuilder() to construct.
private PackageRef(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PackageRef() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PackageRef();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PackageRef(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder subBuilder = null;
if (sumCase_ == 1) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Unit.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 1;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
sumCase_ = 2;
sum_ = s;
break;
}
case 24: {
sumCase_ = 3;
sum_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_PackageRef_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_PackageRef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef.class, com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef.Builder.class);
}
private int sumCase_ = 0;
private java.lang.Object sum_;
public enum SumCase
implements com.google.protobuf.Internal.EnumLite {
SELF(1),
PACKAGE_ID_STR(2),
PACKAGE_ID_INTERNED_STR(3),
SUM_NOT_SET(0);
private final int value;
private SumCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SumCase valueOf(int value) {
return forNumber(value);
}
public static SumCase forNumber(int value) {
switch (value) {
case 1: return SELF;
case 2: return PACKAGE_ID_STR;
case 3: return PACKAGE_ID_INTERNED_STR;
case 0: return SUM_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SumCase
getSumCase() {
return SumCase.forNumber(
sumCase_);
}
public static final int SELF_FIELD_NUMBER = 1;
/**
*
* Reference to the package of which the package this reference
* belongs.
*
*
* .daml_lf_1.Unit self = 1[json_name = "self"];
*/
public boolean hasSelf() {
return sumCase_ == 1;
}
/**
*
* Reference to the package of which the package this reference
* belongs.
*
*
* .daml_lf_1.Unit self = 1[json_name = "self"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Unit getSelf() {
if (sumCase_ == 1) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance();
}
/**
*
* Reference to the package of which the package this reference
* belongs.
*
*
* .daml_lf_1.Unit self = 1[json_name = "self"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.UnitOrBuilder getSelfOrBuilder() {
if (sumCase_ == 1) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance();
}
public static final int PACKAGE_ID_STR_FIELD_NUMBER = 2;
/**
*
* A `Package identifier` for an imported Package.
* *Must be a list of valid packageId string*
*
*
* string package_id_str = 2[json_name = "packageIdStr"];
*/
public java.lang.String getPackageIdStr() {
java.lang.Object ref = "";
if (sumCase_ == 2) {
ref = sum_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (sumCase_ == 2) {
sum_ = s;
}
return s;
}
}
/**
*
* A `Package identifier` for an imported Package.
* *Must be a list of valid packageId string*
*
*
* string package_id_str = 2[json_name = "packageIdStr"];
*/
public com.google.protobuf.ByteString
getPackageIdStrBytes() {
java.lang.Object ref = "";
if (sumCase_ == 2) {
ref = sum_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (sumCase_ == 2) {
sum_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PACKAGE_ID_INTERNED_STR_FIELD_NUMBER = 3;
/**
*
* An index into `interned_package_ids` of the Package containing
* this reference.
* *Must be a valid interned package Id string*
*
*
* int32 package_id_interned_str = 3[json_name = "packageIdInternedStr"];
*/
public int getPackageIdInternedStr() {
if (sumCase_ == 3) {
return (java.lang.Integer) sum_;
}
return 0;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (sumCase_ == 1) {
output.writeMessage(1, (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_);
}
if (sumCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sum_);
}
if (sumCase_ == 3) {
output.writeInt32(
3, (int)((java.lang.Integer) sum_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (sumCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_);
}
if (sumCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sum_);
}
if (sumCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
3, (int)((java.lang.Integer) sum_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef other = (com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef) obj;
if (!getSumCase().equals(other.getSumCase())) return false;
switch (sumCase_) {
case 1:
if (!getSelf()
.equals(other.getSelf())) return false;
break;
case 2:
if (!getPackageIdStr()
.equals(other.getPackageIdStr())) return false;
break;
case 3:
if (getPackageIdInternedStr()
!= other.getPackageIdInternedStr()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (sumCase_) {
case 1:
hash = (37 * hash) + SELF_FIELD_NUMBER;
hash = (53 * hash) + getSelf().hashCode();
break;
case 2:
hash = (37 * hash) + PACKAGE_ID_STR_FIELD_NUMBER;
hash = (53 * hash) + getPackageIdStr().hashCode();
break;
case 3:
hash = (37 * hash) + PACKAGE_ID_INTERNED_STR_FIELD_NUMBER;
hash = (53 * hash) + getPackageIdInternedStr();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Package reference
*
*
* Protobuf type {@code daml_lf_1.PackageRef}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.PackageRef)
com.digitalasset.daml_lf_1_8.DamlLf1.PackageRefOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_PackageRef_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_PackageRef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef.class, com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
sumCase_ = 0;
sum_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_PackageRef_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef build() {
com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef result = new com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef(this);
if (sumCase_ == 1) {
if (selfBuilder_ == null) {
result.sum_ = sum_;
} else {
result.sum_ = selfBuilder_.build();
}
}
if (sumCase_ == 2) {
result.sum_ = sum_;
}
if (sumCase_ == 3) {
result.sum_ = sum_;
}
result.sumCase_ = sumCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef.getDefaultInstance()) return this;
switch (other.getSumCase()) {
case SELF: {
mergeSelf(other.getSelf());
break;
}
case PACKAGE_ID_STR: {
sumCase_ = 2;
sum_ = other.sum_;
onChanged();
break;
}
case PACKAGE_ID_INTERNED_STR: {
setPackageIdInternedStr(other.getPackageIdInternedStr());
break;
}
case SUM_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int sumCase_ = 0;
private java.lang.Object sum_;
public SumCase
getSumCase() {
return SumCase.forNumber(
sumCase_);
}
public Builder clearSum() {
sumCase_ = 0;
sum_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Unit, com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.UnitOrBuilder> selfBuilder_;
/**
*
* Reference to the package of which the package this reference
* belongs.
*
*
* .daml_lf_1.Unit self = 1[json_name = "self"];
*/
public boolean hasSelf() {
return sumCase_ == 1;
}
/**
*
* Reference to the package of which the package this reference
* belongs.
*
*
* .daml_lf_1.Unit self = 1[json_name = "self"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Unit getSelf() {
if (selfBuilder_ == null) {
if (sumCase_ == 1) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance();
} else {
if (sumCase_ == 1) {
return selfBuilder_.getMessage();
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance();
}
}
/**
*
* Reference to the package of which the package this reference
* belongs.
*
*
* .daml_lf_1.Unit self = 1[json_name = "self"];
*/
public Builder setSelf(com.digitalasset.daml_lf_1_8.DamlLf1.Unit value) {
if (selfBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sum_ = value;
onChanged();
} else {
selfBuilder_.setMessage(value);
}
sumCase_ = 1;
return this;
}
/**
*
* Reference to the package of which the package this reference
* belongs.
*
*
* .daml_lf_1.Unit self = 1[json_name = "self"];
*/
public Builder setSelf(
com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder builderForValue) {
if (selfBuilder_ == null) {
sum_ = builderForValue.build();
onChanged();
} else {
selfBuilder_.setMessage(builderForValue.build());
}
sumCase_ = 1;
return this;
}
/**
*
* Reference to the package of which the package this reference
* belongs.
*
*
* .daml_lf_1.Unit self = 1[json_name = "self"];
*/
public Builder mergeSelf(com.digitalasset.daml_lf_1_8.DamlLf1.Unit value) {
if (selfBuilder_ == null) {
if (sumCase_ == 1 &&
sum_ != com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance()) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Unit.newBuilder((com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_)
.mergeFrom(value).buildPartial();
} else {
sum_ = value;
}
onChanged();
} else {
if (sumCase_ == 1) {
selfBuilder_.mergeFrom(value);
}
selfBuilder_.setMessage(value);
}
sumCase_ = 1;
return this;
}
/**
*
* Reference to the package of which the package this reference
* belongs.
*
*
* .daml_lf_1.Unit self = 1[json_name = "self"];
*/
public Builder clearSelf() {
if (selfBuilder_ == null) {
if (sumCase_ == 1) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
} else {
if (sumCase_ == 1) {
sumCase_ = 0;
sum_ = null;
}
selfBuilder_.clear();
}
return this;
}
/**
*
* Reference to the package of which the package this reference
* belongs.
*
*
* .daml_lf_1.Unit self = 1[json_name = "self"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder getSelfBuilder() {
return getSelfFieldBuilder().getBuilder();
}
/**
*
* Reference to the package of which the package this reference
* belongs.
*
*
* .daml_lf_1.Unit self = 1[json_name = "self"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.UnitOrBuilder getSelfOrBuilder() {
if ((sumCase_ == 1) && (selfBuilder_ != null)) {
return selfBuilder_.getMessageOrBuilder();
} else {
if (sumCase_ == 1) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance();
}
}
/**
*
* Reference to the package of which the package this reference
* belongs.
*
*
* .daml_lf_1.Unit self = 1[json_name = "self"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Unit, com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.UnitOrBuilder>
getSelfFieldBuilder() {
if (selfBuilder_ == null) {
if (!(sumCase_ == 1)) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance();
}
selfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Unit, com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.UnitOrBuilder>(
(com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_,
getParentForChildren(),
isClean());
sum_ = null;
}
sumCase_ = 1;
onChanged();;
return selfBuilder_;
}
/**
*
* A `Package identifier` for an imported Package.
* *Must be a list of valid packageId string*
*
*
* string package_id_str = 2[json_name = "packageIdStr"];
*/
public java.lang.String getPackageIdStr() {
java.lang.Object ref = "";
if (sumCase_ == 2) {
ref = sum_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (sumCase_ == 2) {
sum_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A `Package identifier` for an imported Package.
* *Must be a list of valid packageId string*
*
*
* string package_id_str = 2[json_name = "packageIdStr"];
*/
public com.google.protobuf.ByteString
getPackageIdStrBytes() {
java.lang.Object ref = "";
if (sumCase_ == 2) {
ref = sum_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (sumCase_ == 2) {
sum_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A `Package identifier` for an imported Package.
* *Must be a list of valid packageId string*
*
*
* string package_id_str = 2[json_name = "packageIdStr"];
*/
public Builder setPackageIdStr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sumCase_ = 2;
sum_ = value;
onChanged();
return this;
}
/**
*
* A `Package identifier` for an imported Package.
* *Must be a list of valid packageId string*
*
*
* string package_id_str = 2[json_name = "packageIdStr"];
*/
public Builder clearPackageIdStr() {
if (sumCase_ == 2) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
return this;
}
/**
*
* A `Package identifier` for an imported Package.
* *Must be a list of valid packageId string*
*
*
* string package_id_str = 2[json_name = "packageIdStr"];
*/
public Builder setPackageIdStrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sumCase_ = 2;
sum_ = value;
onChanged();
return this;
}
/**
*
* An index into `interned_package_ids` of the Package containing
* this reference.
* *Must be a valid interned package Id string*
*
*
* int32 package_id_interned_str = 3[json_name = "packageIdInternedStr"];
*/
public int getPackageIdInternedStr() {
if (sumCase_ == 3) {
return (java.lang.Integer) sum_;
}
return 0;
}
/**
*
* An index into `interned_package_ids` of the Package containing
* this reference.
* *Must be a valid interned package Id string*
*
*
* int32 package_id_interned_str = 3[json_name = "packageIdInternedStr"];
*/
public Builder setPackageIdInternedStr(int value) {
sumCase_ = 3;
sum_ = value;
onChanged();
return this;
}
/**
*
* An index into `interned_package_ids` of the Package containing
* this reference.
* *Must be a valid interned package Id string*
*
*
* int32 package_id_interned_str = 3[json_name = "packageIdInternedStr"];
*/
public Builder clearPackageIdInternedStr() {
if (sumCase_ == 3) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.PackageRef)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.PackageRef)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PackageRef parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PackageRef(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DottedNameOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.DottedName)
com.google.protobuf.MessageOrBuilder {
/**
*
* *Must be a non-empty list of a valid identifiers*
*
*
* repeated string segments = 1[json_name = "segments"];
*/
java.util.List
getSegmentsList();
/**
*
* *Must be a non-empty list of a valid identifiers*
*
*
* repeated string segments = 1[json_name = "segments"];
*/
int getSegmentsCount();
/**
*
* *Must be a non-empty list of a valid identifiers*
*
*
* repeated string segments = 1[json_name = "segments"];
*/
java.lang.String getSegments(int index);
/**
*
* *Must be a non-empty list of a valid identifiers*
*
*
* repeated string segments = 1[json_name = "segments"];
*/
com.google.protobuf.ByteString
getSegmentsBytes(int index);
}
/**
*
* A `name`, e.g. Util.Either.isLeft
* *Available in version < 1.7*
*
*
* Protobuf type {@code daml_lf_1.DottedName}
*/
public static final class DottedName extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.DottedName)
DottedNameOrBuilder {
private static final long serialVersionUID = 0L;
// Use DottedName.newBuilder() to construct.
private DottedName(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DottedName() {
segments_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DottedName();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DottedName(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
segments_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
segments_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
segments_ = segments_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_DottedName_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_DottedName_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.class, com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder.class);
}
public static final int SEGMENTS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList segments_;
/**
*
* *Must be a non-empty list of a valid identifiers*
*
*
* repeated string segments = 1[json_name = "segments"];
*/
public com.google.protobuf.ProtocolStringList
getSegmentsList() {
return segments_;
}
/**
*
* *Must be a non-empty list of a valid identifiers*
*
*
* repeated string segments = 1[json_name = "segments"];
*/
public int getSegmentsCount() {
return segments_.size();
}
/**
*
* *Must be a non-empty list of a valid identifiers*
*
*
* repeated string segments = 1[json_name = "segments"];
*/
public java.lang.String getSegments(int index) {
return segments_.get(index);
}
/**
*
* *Must be a non-empty list of a valid identifiers*
*
*
* repeated string segments = 1[json_name = "segments"];
*/
public com.google.protobuf.ByteString
getSegmentsBytes(int index) {
return segments_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < segments_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, segments_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < segments_.size(); i++) {
dataSize += computeStringSizeNoTag(segments_.getRaw(i));
}
size += dataSize;
size += 1 * getSegmentsList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.DottedName)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName other = (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) obj;
if (!getSegmentsList()
.equals(other.getSegmentsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getSegmentsCount() > 0) {
hash = (37 * hash) + SEGMENTS_FIELD_NUMBER;
hash = (53 * hash) + getSegmentsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.DottedName parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.DottedName parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.DottedName parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.DottedName parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.DottedName parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.DottedName parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.DottedName parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.DottedName parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.DottedName parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.DottedName parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.DottedName parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.DottedName parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.DottedName prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A `name`, e.g. Util.Either.isLeft
* *Available in version < 1.7*
*
*
* Protobuf type {@code daml_lf_1.DottedName}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.DottedName)
com.digitalasset.daml_lf_1_8.DamlLf1.DottedNameOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_DottedName_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_DottedName_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.class, com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
segments_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_DottedName_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.DottedName getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.DottedName build() {
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.DottedName buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName result = new com.digitalasset.daml_lf_1_8.DamlLf1.DottedName(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
segments_ = segments_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.segments_ = segments_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.DottedName)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.DottedName other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance()) return this;
if (!other.segments_.isEmpty()) {
if (segments_.isEmpty()) {
segments_ = other.segments_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSegmentsIsMutable();
segments_.addAll(other.segments_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList segments_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSegmentsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
segments_ = new com.google.protobuf.LazyStringArrayList(segments_);
bitField0_ |= 0x00000001;
}
}
/**
*
* *Must be a non-empty list of a valid identifiers*
*
*
* repeated string segments = 1[json_name = "segments"];
*/
public com.google.protobuf.ProtocolStringList
getSegmentsList() {
return segments_.getUnmodifiableView();
}
/**
*
* *Must be a non-empty list of a valid identifiers*
*
*
* repeated string segments = 1[json_name = "segments"];
*/
public int getSegmentsCount() {
return segments_.size();
}
/**
*
* *Must be a non-empty list of a valid identifiers*
*
*
* repeated string segments = 1[json_name = "segments"];
*/
public java.lang.String getSegments(int index) {
return segments_.get(index);
}
/**
*
* *Must be a non-empty list of a valid identifiers*
*
*
* repeated string segments = 1[json_name = "segments"];
*/
public com.google.protobuf.ByteString
getSegmentsBytes(int index) {
return segments_.getByteString(index);
}
/**
*
* *Must be a non-empty list of a valid identifiers*
*
*
* repeated string segments = 1[json_name = "segments"];
*/
public Builder setSegments(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSegmentsIsMutable();
segments_.set(index, value);
onChanged();
return this;
}
/**
*
* *Must be a non-empty list of a valid identifiers*
*
*
* repeated string segments = 1[json_name = "segments"];
*/
public Builder addSegments(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSegmentsIsMutable();
segments_.add(value);
onChanged();
return this;
}
/**
*
* *Must be a non-empty list of a valid identifiers*
*
*
* repeated string segments = 1[json_name = "segments"];
*/
public Builder addAllSegments(
java.lang.Iterable values) {
ensureSegmentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, segments_);
onChanged();
return this;
}
/**
*
* *Must be a non-empty list of a valid identifiers*
*
*
* repeated string segments = 1[json_name = "segments"];
*/
public Builder clearSegments() {
segments_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* *Must be a non-empty list of a valid identifiers*
*
*
* repeated string segments = 1[json_name = "segments"];
*/
public Builder addSegmentsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSegmentsIsMutable();
segments_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.DottedName)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.DottedName)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.DottedName DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.DottedName();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.DottedName getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DottedName parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DottedName(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.DottedName getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ModuleRefOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.ModuleRef)
com.google.protobuf.MessageOrBuilder {
/**
*
* package where the module is defined.
*
*
* .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"];
*/
boolean hasPackageRef();
/**
*
* package where the module is defined.
*
*
* .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef getPackageRef();
/**
*
* package where the module is defined.
*
*
* .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.PackageRefOrBuilder getPackageRefOrBuilder();
/**
*
* module name
*
*
* .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"];
*/
boolean hasModuleNameDname();
/**
*
* module name
*
*
* .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName getModuleNameDname();
/**
*
* module name
*
*
* .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.DottedNameOrBuilder getModuleNameDnameOrBuilder();
/**
*
* *Available in version >= 1.7*
*
*
* int32 module_name_interned_dname = 3[json_name = "moduleNameInternedDname"];
*/
int getModuleNameInternedDname();
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.ModuleNameCase getModuleNameCase();
}
/**
*
* A fully qualified module reference
*
*
* Protobuf type {@code daml_lf_1.ModuleRef}
*/
public static final class ModuleRef extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.ModuleRef)
ModuleRefOrBuilder {
private static final long serialVersionUID = 0L;
// Use ModuleRef.newBuilder() to construct.
private ModuleRef(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ModuleRef() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ModuleRef();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ModuleRef(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef.Builder subBuilder = null;
if (packageRef_ != null) {
subBuilder = packageRef_.toBuilder();
}
packageRef_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(packageRef_);
packageRef_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder subBuilder = null;
if (moduleNameCase_ == 2) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) moduleName_).toBuilder();
}
moduleName_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) moduleName_);
moduleName_ = subBuilder.buildPartial();
}
moduleNameCase_ = 2;
break;
}
case 24: {
moduleNameCase_ = 3;
moduleName_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_ModuleRef_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_ModuleRef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.class, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder.class);
}
private int moduleNameCase_ = 0;
private java.lang.Object moduleName_;
public enum ModuleNameCase
implements com.google.protobuf.Internal.EnumLite {
MODULE_NAME_DNAME(2),
MODULE_NAME_INTERNED_DNAME(3),
MODULENAME_NOT_SET(0);
private final int value;
private ModuleNameCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ModuleNameCase valueOf(int value) {
return forNumber(value);
}
public static ModuleNameCase forNumber(int value) {
switch (value) {
case 2: return MODULE_NAME_DNAME;
case 3: return MODULE_NAME_INTERNED_DNAME;
case 0: return MODULENAME_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ModuleNameCase
getModuleNameCase() {
return ModuleNameCase.forNumber(
moduleNameCase_);
}
public static final int PACKAGE_REF_FIELD_NUMBER = 1;
private com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef packageRef_;
/**
*
* package where the module is defined.
*
*
* .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"];
*/
public boolean hasPackageRef() {
return packageRef_ != null;
}
/**
*
* package where the module is defined.
*
*
* .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef getPackageRef() {
return packageRef_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef.getDefaultInstance() : packageRef_;
}
/**
*
* package where the module is defined.
*
*
* .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.PackageRefOrBuilder getPackageRefOrBuilder() {
return getPackageRef();
}
public static final int MODULE_NAME_DNAME_FIELD_NUMBER = 2;
/**
*
* module name
*
*
* .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"];
*/
public boolean hasModuleNameDname() {
return moduleNameCase_ == 2;
}
/**
*
* module name
*
*
* .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.DottedName getModuleNameDname() {
if (moduleNameCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) moduleName_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance();
}
/**
*
* module name
*
*
* .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.DottedNameOrBuilder getModuleNameDnameOrBuilder() {
if (moduleNameCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) moduleName_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance();
}
public static final int MODULE_NAME_INTERNED_DNAME_FIELD_NUMBER = 3;
/**
*
* *Available in version >= 1.7*
*
*
* int32 module_name_interned_dname = 3[json_name = "moduleNameInternedDname"];
*/
public int getModuleNameInternedDname() {
if (moduleNameCase_ == 3) {
return (java.lang.Integer) moduleName_;
}
return 0;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (packageRef_ != null) {
output.writeMessage(1, getPackageRef());
}
if (moduleNameCase_ == 2) {
output.writeMessage(2, (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) moduleName_);
}
if (moduleNameCase_ == 3) {
output.writeInt32(
3, (int)((java.lang.Integer) moduleName_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (packageRef_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getPackageRef());
}
if (moduleNameCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) moduleName_);
}
if (moduleNameCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
3, (int)((java.lang.Integer) moduleName_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef other = (com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef) obj;
if (hasPackageRef() != other.hasPackageRef()) return false;
if (hasPackageRef()) {
if (!getPackageRef()
.equals(other.getPackageRef())) return false;
}
if (!getModuleNameCase().equals(other.getModuleNameCase())) return false;
switch (moduleNameCase_) {
case 2:
if (!getModuleNameDname()
.equals(other.getModuleNameDname())) return false;
break;
case 3:
if (getModuleNameInternedDname()
!= other.getModuleNameInternedDname()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasPackageRef()) {
hash = (37 * hash) + PACKAGE_REF_FIELD_NUMBER;
hash = (53 * hash) + getPackageRef().hashCode();
}
switch (moduleNameCase_) {
case 2:
hash = (37 * hash) + MODULE_NAME_DNAME_FIELD_NUMBER;
hash = (53 * hash) + getModuleNameDname().hashCode();
break;
case 3:
hash = (37 * hash) + MODULE_NAME_INTERNED_DNAME_FIELD_NUMBER;
hash = (53 * hash) + getModuleNameInternedDname();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A fully qualified module reference
*
*
* Protobuf type {@code daml_lf_1.ModuleRef}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.ModuleRef)
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_ModuleRef_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_ModuleRef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.class, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (packageRefBuilder_ == null) {
packageRef_ = null;
} else {
packageRef_ = null;
packageRefBuilder_ = null;
}
moduleNameCase_ = 0;
moduleName_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_ModuleRef_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef build() {
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef result = new com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef(this);
if (packageRefBuilder_ == null) {
result.packageRef_ = packageRef_;
} else {
result.packageRef_ = packageRefBuilder_.build();
}
if (moduleNameCase_ == 2) {
if (moduleNameDnameBuilder_ == null) {
result.moduleName_ = moduleName_;
} else {
result.moduleName_ = moduleNameDnameBuilder_.build();
}
}
if (moduleNameCase_ == 3) {
result.moduleName_ = moduleName_;
}
result.moduleNameCase_ = moduleNameCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.getDefaultInstance()) return this;
if (other.hasPackageRef()) {
mergePackageRef(other.getPackageRef());
}
switch (other.getModuleNameCase()) {
case MODULE_NAME_DNAME: {
mergeModuleNameDname(other.getModuleNameDname());
break;
}
case MODULE_NAME_INTERNED_DNAME: {
setModuleNameInternedDname(other.getModuleNameInternedDname());
break;
}
case MODULENAME_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int moduleNameCase_ = 0;
private java.lang.Object moduleName_;
public ModuleNameCase
getModuleNameCase() {
return ModuleNameCase.forNumber(
moduleNameCase_);
}
public Builder clearModuleName() {
moduleNameCase_ = 0;
moduleName_ = null;
onChanged();
return this;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef packageRef_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef, com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.PackageRefOrBuilder> packageRefBuilder_;
/**
*
* package where the module is defined.
*
*
* .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"];
*/
public boolean hasPackageRef() {
return packageRefBuilder_ != null || packageRef_ != null;
}
/**
*
* package where the module is defined.
*
*
* .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef getPackageRef() {
if (packageRefBuilder_ == null) {
return packageRef_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef.getDefaultInstance() : packageRef_;
} else {
return packageRefBuilder_.getMessage();
}
}
/**
*
* package where the module is defined.
*
*
* .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"];
*/
public Builder setPackageRef(com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef value) {
if (packageRefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
packageRef_ = value;
onChanged();
} else {
packageRefBuilder_.setMessage(value);
}
return this;
}
/**
*
* package where the module is defined.
*
*
* .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"];
*/
public Builder setPackageRef(
com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef.Builder builderForValue) {
if (packageRefBuilder_ == null) {
packageRef_ = builderForValue.build();
onChanged();
} else {
packageRefBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* package where the module is defined.
*
*
* .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"];
*/
public Builder mergePackageRef(com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef value) {
if (packageRefBuilder_ == null) {
if (packageRef_ != null) {
packageRef_ =
com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef.newBuilder(packageRef_).mergeFrom(value).buildPartial();
} else {
packageRef_ = value;
}
onChanged();
} else {
packageRefBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* package where the module is defined.
*
*
* .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"];
*/
public Builder clearPackageRef() {
if (packageRefBuilder_ == null) {
packageRef_ = null;
onChanged();
} else {
packageRef_ = null;
packageRefBuilder_ = null;
}
return this;
}
/**
*
* package where the module is defined.
*
*
* .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef.Builder getPackageRefBuilder() {
onChanged();
return getPackageRefFieldBuilder().getBuilder();
}
/**
*
* package where the module is defined.
*
*
* .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.PackageRefOrBuilder getPackageRefOrBuilder() {
if (packageRefBuilder_ != null) {
return packageRefBuilder_.getMessageOrBuilder();
} else {
return packageRef_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef.getDefaultInstance() : packageRef_;
}
}
/**
*
* package where the module is defined.
*
*
* .daml_lf_1.PackageRef package_ref = 1[json_name = "packageRef"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef, com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.PackageRefOrBuilder>
getPackageRefFieldBuilder() {
if (packageRefBuilder_ == null) {
packageRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef, com.digitalasset.daml_lf_1_8.DamlLf1.PackageRef.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.PackageRefOrBuilder>(
getPackageRef(),
getParentForChildren(),
isClean());
packageRef_ = null;
}
return packageRefBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName, com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.DottedNameOrBuilder> moduleNameDnameBuilder_;
/**
*
* module name
*
*
* .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"];
*/
public boolean hasModuleNameDname() {
return moduleNameCase_ == 2;
}
/**
*
* module name
*
*
* .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.DottedName getModuleNameDname() {
if (moduleNameDnameBuilder_ == null) {
if (moduleNameCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) moduleName_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance();
} else {
if (moduleNameCase_ == 2) {
return moduleNameDnameBuilder_.getMessage();
}
return com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance();
}
}
/**
*
* module name
*
*
* .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"];
*/
public Builder setModuleNameDname(com.digitalasset.daml_lf_1_8.DamlLf1.DottedName value) {
if (moduleNameDnameBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
moduleName_ = value;
onChanged();
} else {
moduleNameDnameBuilder_.setMessage(value);
}
moduleNameCase_ = 2;
return this;
}
/**
*
* module name
*
*
* .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"];
*/
public Builder setModuleNameDname(
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder builderForValue) {
if (moduleNameDnameBuilder_ == null) {
moduleName_ = builderForValue.build();
onChanged();
} else {
moduleNameDnameBuilder_.setMessage(builderForValue.build());
}
moduleNameCase_ = 2;
return this;
}
/**
*
* module name
*
*
* .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"];
*/
public Builder mergeModuleNameDname(com.digitalasset.daml_lf_1_8.DamlLf1.DottedName value) {
if (moduleNameDnameBuilder_ == null) {
if (moduleNameCase_ == 2 &&
moduleName_ != com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance()) {
moduleName_ = com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.newBuilder((com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) moduleName_)
.mergeFrom(value).buildPartial();
} else {
moduleName_ = value;
}
onChanged();
} else {
if (moduleNameCase_ == 2) {
moduleNameDnameBuilder_.mergeFrom(value);
}
moduleNameDnameBuilder_.setMessage(value);
}
moduleNameCase_ = 2;
return this;
}
/**
*
* module name
*
*
* .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"];
*/
public Builder clearModuleNameDname() {
if (moduleNameDnameBuilder_ == null) {
if (moduleNameCase_ == 2) {
moduleNameCase_ = 0;
moduleName_ = null;
onChanged();
}
} else {
if (moduleNameCase_ == 2) {
moduleNameCase_ = 0;
moduleName_ = null;
}
moduleNameDnameBuilder_.clear();
}
return this;
}
/**
*
* module name
*
*
* .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder getModuleNameDnameBuilder() {
return getModuleNameDnameFieldBuilder().getBuilder();
}
/**
*
* module name
*
*
* .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.DottedNameOrBuilder getModuleNameDnameOrBuilder() {
if ((moduleNameCase_ == 2) && (moduleNameDnameBuilder_ != null)) {
return moduleNameDnameBuilder_.getMessageOrBuilder();
} else {
if (moduleNameCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) moduleName_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance();
}
}
/**
*
* module name
*
*
* .daml_lf_1.DottedName module_name_dname = 2[json_name = "moduleNameDname"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName, com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.DottedNameOrBuilder>
getModuleNameDnameFieldBuilder() {
if (moduleNameDnameBuilder_ == null) {
if (!(moduleNameCase_ == 2)) {
moduleName_ = com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance();
}
moduleNameDnameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName, com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.DottedNameOrBuilder>(
(com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) moduleName_,
getParentForChildren(),
isClean());
moduleName_ = null;
}
moduleNameCase_ = 2;
onChanged();;
return moduleNameDnameBuilder_;
}
/**
*
* *Available in version >= 1.7*
*
*
* int32 module_name_interned_dname = 3[json_name = "moduleNameInternedDname"];
*/
public int getModuleNameInternedDname() {
if (moduleNameCase_ == 3) {
return (java.lang.Integer) moduleName_;
}
return 0;
}
/**
*
* *Available in version >= 1.7*
*
*
* int32 module_name_interned_dname = 3[json_name = "moduleNameInternedDname"];
*/
public Builder setModuleNameInternedDname(int value) {
moduleNameCase_ = 3;
moduleName_ = value;
onChanged();
return this;
}
/**
*
* *Available in version >= 1.7*
*
*
* int32 module_name_interned_dname = 3[json_name = "moduleNameInternedDname"];
*/
public Builder clearModuleNameInternedDname() {
if (moduleNameCase_ == 3) {
moduleNameCase_ = 0;
moduleName_ = null;
onChanged();
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.ModuleRef)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.ModuleRef)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ModuleRef parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ModuleRef(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TypeConNameOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.TypeConName)
com.google.protobuf.MessageOrBuilder {
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
boolean hasModule();
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef getModule();
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder();
/**
*
* type constructor name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
boolean hasNameDname();
/**
*
* type constructor name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName getNameDname();
/**
*
* type constructor name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder();
/**
*
* *Must be a valid interned name*
*
*
* int32 name_interned_dname = 3[json_name = "nameInternedDname"];
*/
int getNameInternedDname();
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.NameCase getNameCase();
}
/**
*
* A fully qualified reference to a type constructor name.
*
*
* Protobuf type {@code daml_lf_1.TypeConName}
*/
public static final class TypeConName extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.TypeConName)
TypeConNameOrBuilder {
private static final long serialVersionUID = 0L;
// Use TypeConName.newBuilder() to construct.
private TypeConName(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TypeConName() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TypeConName();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TypeConName(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder subBuilder = null;
if (module_ != null) {
subBuilder = module_.toBuilder();
}
module_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(module_);
module_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder subBuilder = null;
if (nameCase_ == 2) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_).toBuilder();
}
name_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_);
name_ = subBuilder.buildPartial();
}
nameCase_ = 2;
break;
}
case 24: {
nameCase_ = 3;
name_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_TypeConName_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_TypeConName_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.class, com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.Builder.class);
}
private int nameCase_ = 0;
private java.lang.Object name_;
public enum NameCase
implements com.google.protobuf.Internal.EnumLite {
NAME_DNAME(2),
NAME_INTERNED_DNAME(3),
NAME_NOT_SET(0);
private final int value;
private NameCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NameCase valueOf(int value) {
return forNumber(value);
}
public static NameCase forNumber(int value) {
switch (value) {
case 2: return NAME_DNAME;
case 3: return NAME_INTERNED_DNAME;
case 0: return NAME_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public NameCase
getNameCase() {
return NameCase.forNumber(
nameCase_);
}
public static final int MODULE_FIELD_NUMBER = 1;
private com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef module_;
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public boolean hasModule() {
return module_ != null;
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef getModule() {
return module_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.getDefaultInstance() : module_;
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() {
return getModule();
}
public static final int NAME_DNAME_FIELD_NUMBER = 2;
/**
*
* type constructor name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public boolean hasNameDname() {
return nameCase_ == 2;
}
/**
*
* type constructor name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.DottedName getNameDname() {
if (nameCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance();
}
/**
*
* type constructor name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() {
if (nameCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance();
}
public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 3;
/**
*
* *Must be a valid interned name*
*
*
* int32 name_interned_dname = 3[json_name = "nameInternedDname"];
*/
public int getNameInternedDname() {
if (nameCase_ == 3) {
return (java.lang.Integer) name_;
}
return 0;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (module_ != null) {
output.writeMessage(1, getModule());
}
if (nameCase_ == 2) {
output.writeMessage(2, (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_);
}
if (nameCase_ == 3) {
output.writeInt32(
3, (int)((java.lang.Integer) name_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (module_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getModule());
}
if (nameCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_);
}
if (nameCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
3, (int)((java.lang.Integer) name_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName other = (com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName) obj;
if (hasModule() != other.hasModule()) return false;
if (hasModule()) {
if (!getModule()
.equals(other.getModule())) return false;
}
if (!getNameCase().equals(other.getNameCase())) return false;
switch (nameCase_) {
case 2:
if (!getNameDname()
.equals(other.getNameDname())) return false;
break;
case 3:
if (getNameInternedDname()
!= other.getNameInternedDname()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasModule()) {
hash = (37 * hash) + MODULE_FIELD_NUMBER;
hash = (53 * hash) + getModule().hashCode();
}
switch (nameCase_) {
case 2:
hash = (37 * hash) + NAME_DNAME_FIELD_NUMBER;
hash = (53 * hash) + getNameDname().hashCode();
break;
case 3:
hash = (37 * hash) + NAME_INTERNED_DNAME_FIELD_NUMBER;
hash = (53 * hash) + getNameInternedDname();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A fully qualified reference to a type constructor name.
*
*
* Protobuf type {@code daml_lf_1.TypeConName}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.TypeConName)
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConNameOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_TypeConName_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_TypeConName_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.class, com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (moduleBuilder_ == null) {
module_ = null;
} else {
module_ = null;
moduleBuilder_ = null;
}
nameCase_ = 0;
name_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_TypeConName_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName build() {
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName result = new com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName(this);
if (moduleBuilder_ == null) {
result.module_ = module_;
} else {
result.module_ = moduleBuilder_.build();
}
if (nameCase_ == 2) {
if (nameDnameBuilder_ == null) {
result.name_ = name_;
} else {
result.name_ = nameDnameBuilder_.build();
}
}
if (nameCase_ == 3) {
result.name_ = name_;
}
result.nameCase_ = nameCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.getDefaultInstance()) return this;
if (other.hasModule()) {
mergeModule(other.getModule());
}
switch (other.getNameCase()) {
case NAME_DNAME: {
mergeNameDname(other.getNameDname());
break;
}
case NAME_INTERNED_DNAME: {
setNameInternedDname(other.getNameInternedDname());
break;
}
case NAME_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int nameCase_ = 0;
private java.lang.Object name_;
public NameCase
getNameCase() {
return NameCase.forNumber(
nameCase_);
}
public Builder clearName() {
nameCase_ = 0;
name_ = null;
onChanged();
return this;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef module_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder> moduleBuilder_;
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public boolean hasModule() {
return moduleBuilder_ != null || module_ != null;
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef getModule() {
if (moduleBuilder_ == null) {
return module_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.getDefaultInstance() : module_;
} else {
return moduleBuilder_.getMessage();
}
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public Builder setModule(com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef value) {
if (moduleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
module_ = value;
onChanged();
} else {
moduleBuilder_.setMessage(value);
}
return this;
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public Builder setModule(
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder builderForValue) {
if (moduleBuilder_ == null) {
module_ = builderForValue.build();
onChanged();
} else {
moduleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public Builder mergeModule(com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef value) {
if (moduleBuilder_ == null) {
if (module_ != null) {
module_ =
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.newBuilder(module_).mergeFrom(value).buildPartial();
} else {
module_ = value;
}
onChanged();
} else {
moduleBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public Builder clearModule() {
if (moduleBuilder_ == null) {
module_ = null;
onChanged();
} else {
module_ = null;
moduleBuilder_ = null;
}
return this;
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder getModuleBuilder() {
onChanged();
return getModuleFieldBuilder().getBuilder();
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() {
if (moduleBuilder_ != null) {
return moduleBuilder_.getMessageOrBuilder();
} else {
return module_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.getDefaultInstance() : module_;
}
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder>
getModuleFieldBuilder() {
if (moduleBuilder_ == null) {
moduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder>(
getModule(),
getParentForChildren(),
isClean());
module_ = null;
}
return moduleBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName, com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.DottedNameOrBuilder> nameDnameBuilder_;
/**
*
* type constructor name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public boolean hasNameDname() {
return nameCase_ == 2;
}
/**
*
* type constructor name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.DottedName getNameDname() {
if (nameDnameBuilder_ == null) {
if (nameCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance();
} else {
if (nameCase_ == 2) {
return nameDnameBuilder_.getMessage();
}
return com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance();
}
}
/**
*
* type constructor name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public Builder setNameDname(com.digitalasset.daml_lf_1_8.DamlLf1.DottedName value) {
if (nameDnameBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
} else {
nameDnameBuilder_.setMessage(value);
}
nameCase_ = 2;
return this;
}
/**
*
* type constructor name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public Builder setNameDname(
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder builderForValue) {
if (nameDnameBuilder_ == null) {
name_ = builderForValue.build();
onChanged();
} else {
nameDnameBuilder_.setMessage(builderForValue.build());
}
nameCase_ = 2;
return this;
}
/**
*
* type constructor name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public Builder mergeNameDname(com.digitalasset.daml_lf_1_8.DamlLf1.DottedName value) {
if (nameDnameBuilder_ == null) {
if (nameCase_ == 2 &&
name_ != com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance()) {
name_ = com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.newBuilder((com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_)
.mergeFrom(value).buildPartial();
} else {
name_ = value;
}
onChanged();
} else {
if (nameCase_ == 2) {
nameDnameBuilder_.mergeFrom(value);
}
nameDnameBuilder_.setMessage(value);
}
nameCase_ = 2;
return this;
}
/**
*
* type constructor name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public Builder clearNameDname() {
if (nameDnameBuilder_ == null) {
if (nameCase_ == 2) {
nameCase_ = 0;
name_ = null;
onChanged();
}
} else {
if (nameCase_ == 2) {
nameCase_ = 0;
name_ = null;
}
nameDnameBuilder_.clear();
}
return this;
}
/**
*
* type constructor name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder getNameDnameBuilder() {
return getNameDnameFieldBuilder().getBuilder();
}
/**
*
* type constructor name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() {
if ((nameCase_ == 2) && (nameDnameBuilder_ != null)) {
return nameDnameBuilder_.getMessageOrBuilder();
} else {
if (nameCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance();
}
}
/**
*
* type constructor name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName, com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.DottedNameOrBuilder>
getNameDnameFieldBuilder() {
if (nameDnameBuilder_ == null) {
if (!(nameCase_ == 2)) {
name_ = com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance();
}
nameDnameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName, com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.DottedNameOrBuilder>(
(com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_,
getParentForChildren(),
isClean());
name_ = null;
}
nameCase_ = 2;
onChanged();;
return nameDnameBuilder_;
}
/**
*
* *Must be a valid interned name*
*
*
* int32 name_interned_dname = 3[json_name = "nameInternedDname"];
*/
public int getNameInternedDname() {
if (nameCase_ == 3) {
return (java.lang.Integer) name_;
}
return 0;
}
/**
*
* *Must be a valid interned name*
*
*
* int32 name_interned_dname = 3[json_name = "nameInternedDname"];
*/
public Builder setNameInternedDname(int value) {
nameCase_ = 3;
name_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned name*
*
*
* int32 name_interned_dname = 3[json_name = "nameInternedDname"];
*/
public Builder clearNameInternedDname() {
if (nameCase_ == 3) {
nameCase_ = 0;
name_ = null;
onChanged();
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.TypeConName)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.TypeConName)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TypeConName parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TypeConName(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TypeSynNameOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.TypeSynName)
com.google.protobuf.MessageOrBuilder {
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
boolean hasModule();
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef getModule();
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder();
/**
*
* type synonym name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
boolean hasNameDname();
/**
*
* type synonym name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName getNameDname();
/**
*
* type synonym name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder();
/**
*
* *Must be a valid interned name*
*
*
* int32 name_interned_dname = 3[json_name = "nameInternedDname"];
*/
int getNameInternedDname();
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName.NameCase getNameCase();
}
/**
*
* A fully qualified reference to a type synonym name.
* *Available in versions >= 1.8*
*
*
* Protobuf type {@code daml_lf_1.TypeSynName}
*/
public static final class TypeSynName extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.TypeSynName)
TypeSynNameOrBuilder {
private static final long serialVersionUID = 0L;
// Use TypeSynName.newBuilder() to construct.
private TypeSynName(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TypeSynName() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TypeSynName();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TypeSynName(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder subBuilder = null;
if (module_ != null) {
subBuilder = module_.toBuilder();
}
module_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(module_);
module_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder subBuilder = null;
if (nameCase_ == 2) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_).toBuilder();
}
name_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_);
name_ = subBuilder.buildPartial();
}
nameCase_ = 2;
break;
}
case 24: {
nameCase_ = 3;
name_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_TypeSynName_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_TypeSynName_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName.class, com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName.Builder.class);
}
private int nameCase_ = 0;
private java.lang.Object name_;
public enum NameCase
implements com.google.protobuf.Internal.EnumLite {
NAME_DNAME(2),
NAME_INTERNED_DNAME(3),
NAME_NOT_SET(0);
private final int value;
private NameCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NameCase valueOf(int value) {
return forNumber(value);
}
public static NameCase forNumber(int value) {
switch (value) {
case 2: return NAME_DNAME;
case 3: return NAME_INTERNED_DNAME;
case 0: return NAME_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public NameCase
getNameCase() {
return NameCase.forNumber(
nameCase_);
}
public static final int MODULE_FIELD_NUMBER = 1;
private com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef module_;
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public boolean hasModule() {
return module_ != null;
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef getModule() {
return module_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.getDefaultInstance() : module_;
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() {
return getModule();
}
public static final int NAME_DNAME_FIELD_NUMBER = 2;
/**
*
* type synonym name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public boolean hasNameDname() {
return nameCase_ == 2;
}
/**
*
* type synonym name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.DottedName getNameDname() {
if (nameCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance();
}
/**
*
* type synonym name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() {
if (nameCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance();
}
public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 3;
/**
*
* *Must be a valid interned name*
*
*
* int32 name_interned_dname = 3[json_name = "nameInternedDname"];
*/
public int getNameInternedDname() {
if (nameCase_ == 3) {
return (java.lang.Integer) name_;
}
return 0;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (module_ != null) {
output.writeMessage(1, getModule());
}
if (nameCase_ == 2) {
output.writeMessage(2, (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_);
}
if (nameCase_ == 3) {
output.writeInt32(
3, (int)((java.lang.Integer) name_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (module_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getModule());
}
if (nameCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_);
}
if (nameCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
3, (int)((java.lang.Integer) name_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName other = (com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName) obj;
if (hasModule() != other.hasModule()) return false;
if (hasModule()) {
if (!getModule()
.equals(other.getModule())) return false;
}
if (!getNameCase().equals(other.getNameCase())) return false;
switch (nameCase_) {
case 2:
if (!getNameDname()
.equals(other.getNameDname())) return false;
break;
case 3:
if (getNameInternedDname()
!= other.getNameInternedDname()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasModule()) {
hash = (37 * hash) + MODULE_FIELD_NUMBER;
hash = (53 * hash) + getModule().hashCode();
}
switch (nameCase_) {
case 2:
hash = (37 * hash) + NAME_DNAME_FIELD_NUMBER;
hash = (53 * hash) + getNameDname().hashCode();
break;
case 3:
hash = (37 * hash) + NAME_INTERNED_DNAME_FIELD_NUMBER;
hash = (53 * hash) + getNameInternedDname();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A fully qualified reference to a type synonym name.
* *Available in versions >= 1.8*
*
*
* Protobuf type {@code daml_lf_1.TypeSynName}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.TypeSynName)
com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynNameOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_TypeSynName_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_TypeSynName_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName.class, com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (moduleBuilder_ == null) {
module_ = null;
} else {
module_ = null;
moduleBuilder_ = null;
}
nameCase_ = 0;
name_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_TypeSynName_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName build() {
com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName result = new com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName(this);
if (moduleBuilder_ == null) {
result.module_ = module_;
} else {
result.module_ = moduleBuilder_.build();
}
if (nameCase_ == 2) {
if (nameDnameBuilder_ == null) {
result.name_ = name_;
} else {
result.name_ = nameDnameBuilder_.build();
}
}
if (nameCase_ == 3) {
result.name_ = name_;
}
result.nameCase_ = nameCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName.getDefaultInstance()) return this;
if (other.hasModule()) {
mergeModule(other.getModule());
}
switch (other.getNameCase()) {
case NAME_DNAME: {
mergeNameDname(other.getNameDname());
break;
}
case NAME_INTERNED_DNAME: {
setNameInternedDname(other.getNameInternedDname());
break;
}
case NAME_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int nameCase_ = 0;
private java.lang.Object name_;
public NameCase
getNameCase() {
return NameCase.forNumber(
nameCase_);
}
public Builder clearName() {
nameCase_ = 0;
name_ = null;
onChanged();
return this;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef module_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder> moduleBuilder_;
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public boolean hasModule() {
return moduleBuilder_ != null || module_ != null;
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef getModule() {
if (moduleBuilder_ == null) {
return module_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.getDefaultInstance() : module_;
} else {
return moduleBuilder_.getMessage();
}
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public Builder setModule(com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef value) {
if (moduleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
module_ = value;
onChanged();
} else {
moduleBuilder_.setMessage(value);
}
return this;
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public Builder setModule(
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder builderForValue) {
if (moduleBuilder_ == null) {
module_ = builderForValue.build();
onChanged();
} else {
moduleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public Builder mergeModule(com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef value) {
if (moduleBuilder_ == null) {
if (module_ != null) {
module_ =
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.newBuilder(module_).mergeFrom(value).buildPartial();
} else {
module_ = value;
}
onChanged();
} else {
moduleBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public Builder clearModule() {
if (moduleBuilder_ == null) {
module_ = null;
onChanged();
} else {
module_ = null;
moduleBuilder_ = null;
}
return this;
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder getModuleBuilder() {
onChanged();
return getModuleFieldBuilder().getBuilder();
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() {
if (moduleBuilder_ != null) {
return moduleBuilder_.getMessageOrBuilder();
} else {
return module_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.getDefaultInstance() : module_;
}
}
/**
*
* Module where the type is defined.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder>
getModuleFieldBuilder() {
if (moduleBuilder_ == null) {
moduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder>(
getModule(),
getParentForChildren(),
isClean());
module_ = null;
}
return moduleBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName, com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.DottedNameOrBuilder> nameDnameBuilder_;
/**
*
* type synonym name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public boolean hasNameDname() {
return nameCase_ == 2;
}
/**
*
* type synonym name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.DottedName getNameDname() {
if (nameDnameBuilder_ == null) {
if (nameCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance();
} else {
if (nameCase_ == 2) {
return nameDnameBuilder_.getMessage();
}
return com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance();
}
}
/**
*
* type synonym name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public Builder setNameDname(com.digitalasset.daml_lf_1_8.DamlLf1.DottedName value) {
if (nameDnameBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
} else {
nameDnameBuilder_.setMessage(value);
}
nameCase_ = 2;
return this;
}
/**
*
* type synonym name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public Builder setNameDname(
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder builderForValue) {
if (nameDnameBuilder_ == null) {
name_ = builderForValue.build();
onChanged();
} else {
nameDnameBuilder_.setMessage(builderForValue.build());
}
nameCase_ = 2;
return this;
}
/**
*
* type synonym name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public Builder mergeNameDname(com.digitalasset.daml_lf_1_8.DamlLf1.DottedName value) {
if (nameDnameBuilder_ == null) {
if (nameCase_ == 2 &&
name_ != com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance()) {
name_ = com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.newBuilder((com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_)
.mergeFrom(value).buildPartial();
} else {
name_ = value;
}
onChanged();
} else {
if (nameCase_ == 2) {
nameDnameBuilder_.mergeFrom(value);
}
nameDnameBuilder_.setMessage(value);
}
nameCase_ = 2;
return this;
}
/**
*
* type synonym name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public Builder clearNameDname() {
if (nameDnameBuilder_ == null) {
if (nameCase_ == 2) {
nameCase_ = 0;
name_ = null;
onChanged();
}
} else {
if (nameCase_ == 2) {
nameCase_ = 0;
name_ = null;
}
nameDnameBuilder_.clear();
}
return this;
}
/**
*
* type synonym name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder getNameDnameBuilder() {
return getNameDnameFieldBuilder().getBuilder();
}
/**
*
* type synonym name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.DottedNameOrBuilder getNameDnameOrBuilder() {
if ((nameCase_ == 2) && (nameDnameBuilder_ != null)) {
return nameDnameBuilder_.getMessageOrBuilder();
} else {
if (nameCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance();
}
}
/**
*
* type synonym name.
*
*
* .daml_lf_1.DottedName name_dname = 2[json_name = "nameDname"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName, com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.DottedNameOrBuilder>
getNameDnameFieldBuilder() {
if (nameDnameBuilder_ == null) {
if (!(nameCase_ == 2)) {
name_ = com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.getDefaultInstance();
}
nameDnameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.DottedName, com.digitalasset.daml_lf_1_8.DamlLf1.DottedName.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.DottedNameOrBuilder>(
(com.digitalasset.daml_lf_1_8.DamlLf1.DottedName) name_,
getParentForChildren(),
isClean());
name_ = null;
}
nameCase_ = 2;
onChanged();;
return nameDnameBuilder_;
}
/**
*
* *Must be a valid interned name*
*
*
* int32 name_interned_dname = 3[json_name = "nameInternedDname"];
*/
public int getNameInternedDname() {
if (nameCase_ == 3) {
return (java.lang.Integer) name_;
}
return 0;
}
/**
*
* *Must be a valid interned name*
*
*
* int32 name_interned_dname = 3[json_name = "nameInternedDname"];
*/
public Builder setNameInternedDname(int value) {
nameCase_ = 3;
name_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned name*
*
*
* int32 name_interned_dname = 3[json_name = "nameInternedDname"];
*/
public Builder clearNameInternedDname() {
if (nameCase_ == 3) {
nameCase_ = 0;
name_ = null;
onChanged();
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.TypeSynName)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.TypeSynName)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TypeSynName parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TypeSynName(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValNameOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.ValName)
com.google.protobuf.MessageOrBuilder {
/**
*
* Module where the value is defined
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
boolean hasModule();
/**
*
* Module where the value is defined
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef getModule();
/**
*
* Module where the value is defined
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder();
/**
*
* *Must be a non-empty list of valid identifier*
*
*
* repeated string name_dname = 2[json_name = "nameDname"];
*/
java.util.List
getNameDnameList();
/**
*
* *Must be a non-empty list of valid identifier*
*
*
* repeated string name_dname = 2[json_name = "nameDname"];
*/
int getNameDnameCount();
/**
*
* *Must be a non-empty list of valid identifier*
*
*
* repeated string name_dname = 2[json_name = "nameDname"];
*/
java.lang.String getNameDname(int index);
/**
*
* *Must be a non-empty list of valid identifier*
*
*
* repeated string name_dname = 2[json_name = "nameDname"];
*/
com.google.protobuf.ByteString
getNameDnameBytes(int index);
/**
*
* *Must be a valid interned name*
*
*
* int32 name_interned_dname = 3[json_name = "nameInternedDname"];
*/
int getNameInternedDname();
}
/**
*
* A fully qualified reference to a value definition.
*
*
* Protobuf type {@code daml_lf_1.ValName}
*/
public static final class ValName extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.ValName)
ValNameOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValName.newBuilder() to construct.
private ValName(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValName() {
nameDname_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ValName();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ValName(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder subBuilder = null;
if (module_ != null) {
subBuilder = module_.toBuilder();
}
module_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(module_);
module_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
nameDname_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
nameDname_.add(s);
break;
}
case 24: {
nameInternedDname_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
nameDname_ = nameDname_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_ValName_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_ValName_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.ValName.class, com.digitalasset.daml_lf_1_8.DamlLf1.ValName.Builder.class);
}
public static final int MODULE_FIELD_NUMBER = 1;
private com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef module_;
/**
*
* Module where the value is defined
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public boolean hasModule() {
return module_ != null;
}
/**
*
* Module where the value is defined
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef getModule() {
return module_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.getDefaultInstance() : module_;
}
/**
*
* Module where the value is defined
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() {
return getModule();
}
public static final int NAME_DNAME_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList nameDname_;
/**
*
* *Must be a non-empty list of valid identifier*
*
*
* repeated string name_dname = 2[json_name = "nameDname"];
*/
public com.google.protobuf.ProtocolStringList
getNameDnameList() {
return nameDname_;
}
/**
*
* *Must be a non-empty list of valid identifier*
*
*
* repeated string name_dname = 2[json_name = "nameDname"];
*/
public int getNameDnameCount() {
return nameDname_.size();
}
/**
*
* *Must be a non-empty list of valid identifier*
*
*
* repeated string name_dname = 2[json_name = "nameDname"];
*/
public java.lang.String getNameDname(int index) {
return nameDname_.get(index);
}
/**
*
* *Must be a non-empty list of valid identifier*
*
*
* repeated string name_dname = 2[json_name = "nameDname"];
*/
public com.google.protobuf.ByteString
getNameDnameBytes(int index) {
return nameDname_.getByteString(index);
}
public static final int NAME_INTERNED_DNAME_FIELD_NUMBER = 3;
private int nameInternedDname_;
/**
*
* *Must be a valid interned name*
*
*
* int32 name_interned_dname = 3[json_name = "nameInternedDname"];
*/
public int getNameInternedDname() {
return nameInternedDname_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (module_ != null) {
output.writeMessage(1, getModule());
}
for (int i = 0; i < nameDname_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nameDname_.getRaw(i));
}
if (nameInternedDname_ != 0) {
output.writeInt32(3, nameInternedDname_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (module_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getModule());
}
{
int dataSize = 0;
for (int i = 0; i < nameDname_.size(); i++) {
dataSize += computeStringSizeNoTag(nameDname_.getRaw(i));
}
size += dataSize;
size += 1 * getNameDnameList().size();
}
if (nameInternedDname_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, nameInternedDname_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.ValName)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.ValName other = (com.digitalasset.daml_lf_1_8.DamlLf1.ValName) obj;
if (hasModule() != other.hasModule()) return false;
if (hasModule()) {
if (!getModule()
.equals(other.getModule())) return false;
}
if (!getNameDnameList()
.equals(other.getNameDnameList())) return false;
if (getNameInternedDname()
!= other.getNameInternedDname()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasModule()) {
hash = (37 * hash) + MODULE_FIELD_NUMBER;
hash = (53 * hash) + getModule().hashCode();
}
if (getNameDnameCount() > 0) {
hash = (37 * hash) + NAME_DNAME_FIELD_NUMBER;
hash = (53 * hash) + getNameDnameList().hashCode();
}
hash = (37 * hash) + NAME_INTERNED_DNAME_FIELD_NUMBER;
hash = (53 * hash) + getNameInternedDname();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ValName parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ValName parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ValName parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ValName parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ValName parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ValName parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ValName parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ValName parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ValName parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ValName parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ValName parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ValName parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.ValName prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A fully qualified reference to a value definition.
*
*
* Protobuf type {@code daml_lf_1.ValName}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.ValName)
com.digitalasset.daml_lf_1_8.DamlLf1.ValNameOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_ValName_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_ValName_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.ValName.class, com.digitalasset.daml_lf_1_8.DamlLf1.ValName.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.ValName.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (moduleBuilder_ == null) {
module_ = null;
} else {
module_ = null;
moduleBuilder_ = null;
}
nameDname_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
nameInternedDname_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_ValName_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.ValName getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.ValName.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.ValName build() {
com.digitalasset.daml_lf_1_8.DamlLf1.ValName result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.ValName buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.ValName result = new com.digitalasset.daml_lf_1_8.DamlLf1.ValName(this);
int from_bitField0_ = bitField0_;
if (moduleBuilder_ == null) {
result.module_ = module_;
} else {
result.module_ = moduleBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
nameDname_ = nameDname_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.nameDname_ = nameDname_;
result.nameInternedDname_ = nameInternedDname_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.ValName) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.ValName)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.ValName other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.ValName.getDefaultInstance()) return this;
if (other.hasModule()) {
mergeModule(other.getModule());
}
if (!other.nameDname_.isEmpty()) {
if (nameDname_.isEmpty()) {
nameDname_ = other.nameDname_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNameDnameIsMutable();
nameDname_.addAll(other.nameDname_);
}
onChanged();
}
if (other.getNameInternedDname() != 0) {
setNameInternedDname(other.getNameInternedDname());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.ValName parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.ValName) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef module_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder> moduleBuilder_;
/**
*
* Module where the value is defined
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public boolean hasModule() {
return moduleBuilder_ != null || module_ != null;
}
/**
*
* Module where the value is defined
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef getModule() {
if (moduleBuilder_ == null) {
return module_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.getDefaultInstance() : module_;
} else {
return moduleBuilder_.getMessage();
}
}
/**
*
* Module where the value is defined
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public Builder setModule(com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef value) {
if (moduleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
module_ = value;
onChanged();
} else {
moduleBuilder_.setMessage(value);
}
return this;
}
/**
*
* Module where the value is defined
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public Builder setModule(
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder builderForValue) {
if (moduleBuilder_ == null) {
module_ = builderForValue.build();
onChanged();
} else {
moduleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Module where the value is defined
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public Builder mergeModule(com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef value) {
if (moduleBuilder_ == null) {
if (module_ != null) {
module_ =
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.newBuilder(module_).mergeFrom(value).buildPartial();
} else {
module_ = value;
}
onChanged();
} else {
moduleBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Module where the value is defined
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public Builder clearModule() {
if (moduleBuilder_ == null) {
module_ = null;
onChanged();
} else {
module_ = null;
moduleBuilder_ = null;
}
return this;
}
/**
*
* Module where the value is defined
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder getModuleBuilder() {
onChanged();
return getModuleFieldBuilder().getBuilder();
}
/**
*
* Module where the value is defined
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() {
if (moduleBuilder_ != null) {
return moduleBuilder_.getMessageOrBuilder();
} else {
return module_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.getDefaultInstance() : module_;
}
}
/**
*
* Module where the value is defined
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder>
getModuleFieldBuilder() {
if (moduleBuilder_ == null) {
moduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder>(
getModule(),
getParentForChildren(),
isClean());
module_ = null;
}
return moduleBuilder_;
}
private com.google.protobuf.LazyStringList nameDname_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureNameDnameIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
nameDname_ = new com.google.protobuf.LazyStringArrayList(nameDname_);
bitField0_ |= 0x00000001;
}
}
/**
*
* *Must be a non-empty list of valid identifier*
*
*
* repeated string name_dname = 2[json_name = "nameDname"];
*/
public com.google.protobuf.ProtocolStringList
getNameDnameList() {
return nameDname_.getUnmodifiableView();
}
/**
*
* *Must be a non-empty list of valid identifier*
*
*
* repeated string name_dname = 2[json_name = "nameDname"];
*/
public int getNameDnameCount() {
return nameDname_.size();
}
/**
*
* *Must be a non-empty list of valid identifier*
*
*
* repeated string name_dname = 2[json_name = "nameDname"];
*/
public java.lang.String getNameDname(int index) {
return nameDname_.get(index);
}
/**
*
* *Must be a non-empty list of valid identifier*
*
*
* repeated string name_dname = 2[json_name = "nameDname"];
*/
public com.google.protobuf.ByteString
getNameDnameBytes(int index) {
return nameDname_.getByteString(index);
}
/**
*
* *Must be a non-empty list of valid identifier*
*
*
* repeated string name_dname = 2[json_name = "nameDname"];
*/
public Builder setNameDname(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureNameDnameIsMutable();
nameDname_.set(index, value);
onChanged();
return this;
}
/**
*
* *Must be a non-empty list of valid identifier*
*
*
* repeated string name_dname = 2[json_name = "nameDname"];
*/
public Builder addNameDname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureNameDnameIsMutable();
nameDname_.add(value);
onChanged();
return this;
}
/**
*
* *Must be a non-empty list of valid identifier*
*
*
* repeated string name_dname = 2[json_name = "nameDname"];
*/
public Builder addAllNameDname(
java.lang.Iterable values) {
ensureNameDnameIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, nameDname_);
onChanged();
return this;
}
/**
*
* *Must be a non-empty list of valid identifier*
*
*
* repeated string name_dname = 2[json_name = "nameDname"];
*/
public Builder clearNameDname() {
nameDname_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* *Must be a non-empty list of valid identifier*
*
*
* repeated string name_dname = 2[json_name = "nameDname"];
*/
public Builder addNameDnameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureNameDnameIsMutable();
nameDname_.add(value);
onChanged();
return this;
}
private int nameInternedDname_ ;
/**
*
* *Must be a valid interned name*
*
*
* int32 name_interned_dname = 3[json_name = "nameInternedDname"];
*/
public int getNameInternedDname() {
return nameInternedDname_;
}
/**
*
* *Must be a valid interned name*
*
*
* int32 name_interned_dname = 3[json_name = "nameInternedDname"];
*/
public Builder setNameInternedDname(int value) {
nameInternedDname_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned name*
*
*
* int32 name_interned_dname = 3[json_name = "nameInternedDname"];
*/
public Builder clearNameInternedDname() {
nameInternedDname_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.ValName)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.ValName)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.ValName DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.ValName();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.ValName getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValName parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ValName(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.ValName getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FieldWithTypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.FieldWithType)
com.google.protobuf.MessageOrBuilder {
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
java.lang.String getFieldStr();
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
com.google.protobuf.ByteString
getFieldStrBytes();
/**
*
* *Must a valid interned identifier*
*
*
* int32 field_interned_str = 3[json_name = "fieldInternedStr"];
*/
int getFieldInternedStr();
/**
*
* Type associated
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
boolean hasType();
/**
*
* Type associated
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type getType();
/**
*
* Type associated
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getTypeOrBuilder();
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.FieldCase getFieldCase();
}
/**
*
* A field name definition in a record or a variant associated with a type.
*
*
* Protobuf type {@code daml_lf_1.FieldWithType}
*/
public static final class FieldWithType extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.FieldWithType)
FieldWithTypeOrBuilder {
private static final long serialVersionUID = 0L;
// Use FieldWithType.newBuilder() to construct.
private FieldWithType(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FieldWithType() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FieldWithType();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FieldWithType(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
fieldCase_ = 1;
field_ = s;
break;
}
case 18: {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder subBuilder = null;
if (type_ != null) {
subBuilder = type_.toBuilder();
}
type_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(type_);
type_ = subBuilder.buildPartial();
}
break;
}
case 24: {
fieldCase_ = 3;
field_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_FieldWithType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_FieldWithType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.class, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.Builder.class);
}
private int fieldCase_ = 0;
private java.lang.Object field_;
public enum FieldCase
implements com.google.protobuf.Internal.EnumLite {
FIELD_STR(1),
FIELD_INTERNED_STR(3),
FIELD_NOT_SET(0);
private final int value;
private FieldCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FieldCase valueOf(int value) {
return forNumber(value);
}
public static FieldCase forNumber(int value) {
switch (value) {
case 1: return FIELD_STR;
case 3: return FIELD_INTERNED_STR;
case 0: return FIELD_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public FieldCase
getFieldCase() {
return FieldCase.forNumber(
fieldCase_);
}
public static final int FIELD_STR_FIELD_NUMBER = 1;
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public java.lang.String getFieldStr() {
java.lang.Object ref = "";
if (fieldCase_ == 1) {
ref = field_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (fieldCase_ == 1) {
field_ = s;
}
return s;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public com.google.protobuf.ByteString
getFieldStrBytes() {
java.lang.Object ref = "";
if (fieldCase_ == 1) {
ref = field_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (fieldCase_ == 1) {
field_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 3;
/**
*
* *Must a valid interned identifier*
*
*
* int32 field_interned_str = 3[json_name = "fieldInternedStr"];
*/
public int getFieldInternedStr() {
if (fieldCase_ == 3) {
return (java.lang.Integer) field_;
}
return 0;
}
public static final int TYPE_FIELD_NUMBER = 2;
private com.digitalasset.daml_lf_1_8.DamlLf1.Type type_;
/**
*
* Type associated
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public boolean hasType() {
return type_ != null;
}
/**
*
* Type associated
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getType() {
return type_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance() : type_;
}
/**
*
* Type associated
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getTypeOrBuilder() {
return getType();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (fieldCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_);
}
if (type_ != null) {
output.writeMessage(2, getType());
}
if (fieldCase_ == 3) {
output.writeInt32(
3, (int)((java.lang.Integer) field_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (fieldCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, field_);
}
if (type_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getType());
}
if (fieldCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
3, (int)((java.lang.Integer) field_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType other = (com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType) obj;
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (!getType()
.equals(other.getType())) return false;
}
if (!getFieldCase().equals(other.getFieldCase())) return false;
switch (fieldCase_) {
case 1:
if (!getFieldStr()
.equals(other.getFieldStr())) return false;
break;
case 3:
if (getFieldInternedStr()
!= other.getFieldInternedStr()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
switch (fieldCase_) {
case 1:
hash = (37 * hash) + FIELD_STR_FIELD_NUMBER;
hash = (53 * hash) + getFieldStr().hashCode();
break;
case 3:
hash = (37 * hash) + FIELD_INTERNED_STR_FIELD_NUMBER;
hash = (53 * hash) + getFieldInternedStr();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A field name definition in a record or a variant associated with a type.
*
*
* Protobuf type {@code daml_lf_1.FieldWithType}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.FieldWithType)
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithTypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_FieldWithType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_FieldWithType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.class, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (typeBuilder_ == null) {
type_ = null;
} else {
type_ = null;
typeBuilder_ = null;
}
fieldCase_ = 0;
field_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_FieldWithType_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType build() {
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType result = new com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType(this);
if (fieldCase_ == 1) {
result.field_ = field_;
}
if (fieldCase_ == 3) {
result.field_ = field_;
}
if (typeBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = typeBuilder_.build();
}
result.fieldCase_ = fieldCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.getDefaultInstance()) return this;
if (other.hasType()) {
mergeType(other.getType());
}
switch (other.getFieldCase()) {
case FIELD_STR: {
fieldCase_ = 1;
field_ = other.field_;
onChanged();
break;
}
case FIELD_INTERNED_STR: {
setFieldInternedStr(other.getFieldInternedStr());
break;
}
case FIELD_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int fieldCase_ = 0;
private java.lang.Object field_;
public FieldCase
getFieldCase() {
return FieldCase.forNumber(
fieldCase_);
}
public Builder clearField() {
fieldCase_ = 0;
field_ = null;
onChanged();
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public java.lang.String getFieldStr() {
java.lang.Object ref = "";
if (fieldCase_ == 1) {
ref = field_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (fieldCase_ == 1) {
field_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public com.google.protobuf.ByteString
getFieldStrBytes() {
java.lang.Object ref = "";
if (fieldCase_ == 1) {
ref = field_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (fieldCase_ == 1) {
field_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public Builder setFieldStr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fieldCase_ = 1;
field_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public Builder clearFieldStr() {
if (fieldCase_ == 1) {
fieldCase_ = 0;
field_ = null;
onChanged();
}
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public Builder setFieldStrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fieldCase_ = 1;
field_ = value;
onChanged();
return this;
}
/**
*
* *Must a valid interned identifier*
*
*
* int32 field_interned_str = 3[json_name = "fieldInternedStr"];
*/
public int getFieldInternedStr() {
if (fieldCase_ == 3) {
return (java.lang.Integer) field_;
}
return 0;
}
/**
*
* *Must a valid interned identifier*
*
*
* int32 field_interned_str = 3[json_name = "fieldInternedStr"];
*/
public Builder setFieldInternedStr(int value) {
fieldCase_ = 3;
field_ = value;
onChanged();
return this;
}
/**
*
* *Must a valid interned identifier*
*
*
* int32 field_interned_str = 3[json_name = "fieldInternedStr"];
*/
public Builder clearFieldInternedStr() {
if (fieldCase_ == 3) {
fieldCase_ = 0;
field_ = null;
onChanged();
}
return this;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.Type type_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder> typeBuilder_;
/**
*
* Type associated
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public boolean hasType() {
return typeBuilder_ != null || type_ != null;
}
/**
*
* Type associated
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getType() {
if (typeBuilder_ == null) {
return type_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance() : type_;
} else {
return typeBuilder_.getMessage();
}
}
/**
*
* Type associated
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public Builder setType(com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (typeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
typeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Type associated
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public Builder setType(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder builderForValue) {
if (typeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
typeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Type associated
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public Builder mergeType(com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (typeBuilder_ == null) {
if (type_ != null) {
type_ =
com.digitalasset.daml_lf_1_8.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
typeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Type associated
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public Builder clearType() {
if (typeBuilder_ == null) {
type_ = null;
onChanged();
} else {
type_ = null;
typeBuilder_ = null;
}
return this;
}
/**
*
* Type associated
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder getTypeBuilder() {
onChanged();
return getTypeFieldBuilder().getBuilder();
}
/**
*
* Type associated
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getTypeOrBuilder() {
if (typeBuilder_ != null) {
return typeBuilder_.getMessageOrBuilder();
} else {
return type_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance() : type_;
}
}
/**
*
* Type associated
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getTypeFieldBuilder() {
if (typeBuilder_ == null) {
typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>(
getType(),
getParentForChildren(),
isClean());
type_ = null;
}
return typeBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.FieldWithType)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.FieldWithType)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FieldWithType parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FieldWithType(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface VarWithTypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.VarWithType)
com.google.protobuf.MessageOrBuilder {
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
java.lang.String getVarStr();
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
com.google.protobuf.ByteString
getVarStrBytes();
/**
*
* *Must be a valid interned identifier*
*
*
* int32 var_interned_str = 3[json_name = "varInternedStr"];
*/
int getVarInternedStr();
/**
*
* Type of the bound variable
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
boolean hasType();
/**
*
* Type of the bound variable
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type getType();
/**
*
* Type of the bound variable
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getTypeOrBuilder();
public com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType.VarCase getVarCase();
}
/**
*
* Binder associated with a type.
*
*
* Protobuf type {@code daml_lf_1.VarWithType}
*/
public static final class VarWithType extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.VarWithType)
VarWithTypeOrBuilder {
private static final long serialVersionUID = 0L;
// Use VarWithType.newBuilder() to construct.
private VarWithType(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VarWithType() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new VarWithType();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private VarWithType(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
varCase_ = 1;
var_ = s;
break;
}
case 18: {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder subBuilder = null;
if (type_ != null) {
subBuilder = type_.toBuilder();
}
type_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(type_);
type_ = subBuilder.buildPartial();
}
break;
}
case 24: {
varCase_ = 3;
var_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_VarWithType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_VarWithType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType.class, com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType.Builder.class);
}
private int varCase_ = 0;
private java.lang.Object var_;
public enum VarCase
implements com.google.protobuf.Internal.EnumLite {
VAR_STR(1),
VAR_INTERNED_STR(3),
VAR_NOT_SET(0);
private final int value;
private VarCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static VarCase valueOf(int value) {
return forNumber(value);
}
public static VarCase forNumber(int value) {
switch (value) {
case 1: return VAR_STR;
case 3: return VAR_INTERNED_STR;
case 0: return VAR_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public VarCase
getVarCase() {
return VarCase.forNumber(
varCase_);
}
public static final int VAR_STR_FIELD_NUMBER = 1;
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public java.lang.String getVarStr() {
java.lang.Object ref = "";
if (varCase_ == 1) {
ref = var_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (varCase_ == 1) {
var_ = s;
}
return s;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public com.google.protobuf.ByteString
getVarStrBytes() {
java.lang.Object ref = "";
if (varCase_ == 1) {
ref = var_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (varCase_ == 1) {
var_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VAR_INTERNED_STR_FIELD_NUMBER = 3;
/**
*
* *Must be a valid interned identifier*
*
*
* int32 var_interned_str = 3[json_name = "varInternedStr"];
*/
public int getVarInternedStr() {
if (varCase_ == 3) {
return (java.lang.Integer) var_;
}
return 0;
}
public static final int TYPE_FIELD_NUMBER = 2;
private com.digitalasset.daml_lf_1_8.DamlLf1.Type type_;
/**
*
* Type of the bound variable
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public boolean hasType() {
return type_ != null;
}
/**
*
* Type of the bound variable
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getType() {
return type_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance() : type_;
}
/**
*
* Type of the bound variable
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getTypeOrBuilder() {
return getType();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (varCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_);
}
if (type_ != null) {
output.writeMessage(2, getType());
}
if (varCase_ == 3) {
output.writeInt32(
3, (int)((java.lang.Integer) var_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (varCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_);
}
if (type_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getType());
}
if (varCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
3, (int)((java.lang.Integer) var_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType other = (com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType) obj;
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (!getType()
.equals(other.getType())) return false;
}
if (!getVarCase().equals(other.getVarCase())) return false;
switch (varCase_) {
case 1:
if (!getVarStr()
.equals(other.getVarStr())) return false;
break;
case 3:
if (getVarInternedStr()
!= other.getVarInternedStr()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
switch (varCase_) {
case 1:
hash = (37 * hash) + VAR_STR_FIELD_NUMBER;
hash = (53 * hash) + getVarStr().hashCode();
break;
case 3:
hash = (37 * hash) + VAR_INTERNED_STR_FIELD_NUMBER;
hash = (53 * hash) + getVarInternedStr();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Binder associated with a type.
*
*
* Protobuf type {@code daml_lf_1.VarWithType}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.VarWithType)
com.digitalasset.daml_lf_1_8.DamlLf1.VarWithTypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_VarWithType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_VarWithType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType.class, com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (typeBuilder_ == null) {
type_ = null;
} else {
type_ = null;
typeBuilder_ = null;
}
varCase_ = 0;
var_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_VarWithType_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType build() {
com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType result = new com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType(this);
if (varCase_ == 1) {
result.var_ = var_;
}
if (varCase_ == 3) {
result.var_ = var_;
}
if (typeBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = typeBuilder_.build();
}
result.varCase_ = varCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType.getDefaultInstance()) return this;
if (other.hasType()) {
mergeType(other.getType());
}
switch (other.getVarCase()) {
case VAR_STR: {
varCase_ = 1;
var_ = other.var_;
onChanged();
break;
}
case VAR_INTERNED_STR: {
setVarInternedStr(other.getVarInternedStr());
break;
}
case VAR_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int varCase_ = 0;
private java.lang.Object var_;
public VarCase
getVarCase() {
return VarCase.forNumber(
varCase_);
}
public Builder clearVar() {
varCase_ = 0;
var_ = null;
onChanged();
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public java.lang.String getVarStr() {
java.lang.Object ref = "";
if (varCase_ == 1) {
ref = var_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (varCase_ == 1) {
var_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public com.google.protobuf.ByteString
getVarStrBytes() {
java.lang.Object ref = "";
if (varCase_ == 1) {
ref = var_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (varCase_ == 1) {
var_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public Builder setVarStr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
varCase_ = 1;
var_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public Builder clearVarStr() {
if (varCase_ == 1) {
varCase_ = 0;
var_ = null;
onChanged();
}
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public Builder setVarStrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
varCase_ = 1;
var_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 var_interned_str = 3[json_name = "varInternedStr"];
*/
public int getVarInternedStr() {
if (varCase_ == 3) {
return (java.lang.Integer) var_;
}
return 0;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 var_interned_str = 3[json_name = "varInternedStr"];
*/
public Builder setVarInternedStr(int value) {
varCase_ = 3;
var_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 var_interned_str = 3[json_name = "varInternedStr"];
*/
public Builder clearVarInternedStr() {
if (varCase_ == 3) {
varCase_ = 0;
var_ = null;
onChanged();
}
return this;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.Type type_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder> typeBuilder_;
/**
*
* Type of the bound variable
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public boolean hasType() {
return typeBuilder_ != null || type_ != null;
}
/**
*
* Type of the bound variable
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getType() {
if (typeBuilder_ == null) {
return type_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance() : type_;
} else {
return typeBuilder_.getMessage();
}
}
/**
*
* Type of the bound variable
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public Builder setType(com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (typeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
typeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Type of the bound variable
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public Builder setType(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder builderForValue) {
if (typeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
typeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Type of the bound variable
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public Builder mergeType(com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (typeBuilder_ == null) {
if (type_ != null) {
type_ =
com.digitalasset.daml_lf_1_8.DamlLf1.Type.newBuilder(type_).mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
typeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Type of the bound variable
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public Builder clearType() {
if (typeBuilder_ == null) {
type_ = null;
onChanged();
} else {
type_ = null;
typeBuilder_ = null;
}
return this;
}
/**
*
* Type of the bound variable
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder getTypeBuilder() {
onChanged();
return getTypeFieldBuilder().getBuilder();
}
/**
*
* Type of the bound variable
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getTypeOrBuilder() {
if (typeBuilder_ != null) {
return typeBuilder_.getMessageOrBuilder();
} else {
return type_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance() : type_;
}
}
/**
*
* Type of the bound variable
*
*
* .daml_lf_1.Type type = 2[json_name = "type"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getTypeFieldBuilder() {
if (typeBuilder_ == null) {
typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>(
getType(),
getParentForChildren(),
isClean());
type_ = null;
}
return typeBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.VarWithType)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.VarWithType)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VarWithType parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VarWithType(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TypeVarWithKindOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.TypeVarWithKind)
com.google.protobuf.MessageOrBuilder {
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
java.lang.String getVarStr();
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
com.google.protobuf.ByteString
getVarStrBytes();
/**
*
* *Must be a valid interned identifier*
*
*
* int32 var_interned_str = 3[json_name = "varInternedStr"];
*/
int getVarInternedStr();
/**
*
* Kind of the bound variable
*
*
* .daml_lf_1.Kind kind = 2[json_name = "kind"];
*/
boolean hasKind();
/**
*
* Kind of the bound variable
*
*
* .daml_lf_1.Kind kind = 2[json_name = "kind"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Kind getKind();
/**
*
* Kind of the bound variable
*
*
* .daml_lf_1.Kind kind = 2[json_name = "kind"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder getKindOrBuilder();
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.VarCase getVarCase();
}
/**
*
* Type binder associated with a kind.
*
*
* Protobuf type {@code daml_lf_1.TypeVarWithKind}
*/
public static final class TypeVarWithKind extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.TypeVarWithKind)
TypeVarWithKindOrBuilder {
private static final long serialVersionUID = 0L;
// Use TypeVarWithKind.newBuilder() to construct.
private TypeVarWithKind(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TypeVarWithKind() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TypeVarWithKind();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TypeVarWithKind(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
varCase_ = 1;
var_ = s;
break;
}
case 18: {
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder subBuilder = null;
if (kind_ != null) {
subBuilder = kind_.toBuilder();
}
kind_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Kind.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(kind_);
kind_ = subBuilder.buildPartial();
}
break;
}
case 24: {
varCase_ = 3;
var_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_TypeVarWithKind_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_TypeVarWithKind_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.class, com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.Builder.class);
}
private int varCase_ = 0;
private java.lang.Object var_;
public enum VarCase
implements com.google.protobuf.Internal.EnumLite {
VAR_STR(1),
VAR_INTERNED_STR(3),
VAR_NOT_SET(0);
private final int value;
private VarCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static VarCase valueOf(int value) {
return forNumber(value);
}
public static VarCase forNumber(int value) {
switch (value) {
case 1: return VAR_STR;
case 3: return VAR_INTERNED_STR;
case 0: return VAR_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public VarCase
getVarCase() {
return VarCase.forNumber(
varCase_);
}
public static final int VAR_STR_FIELD_NUMBER = 1;
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public java.lang.String getVarStr() {
java.lang.Object ref = "";
if (varCase_ == 1) {
ref = var_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (varCase_ == 1) {
var_ = s;
}
return s;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public com.google.protobuf.ByteString
getVarStrBytes() {
java.lang.Object ref = "";
if (varCase_ == 1) {
ref = var_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (varCase_ == 1) {
var_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VAR_INTERNED_STR_FIELD_NUMBER = 3;
/**
*
* *Must be a valid interned identifier*
*
*
* int32 var_interned_str = 3[json_name = "varInternedStr"];
*/
public int getVarInternedStr() {
if (varCase_ == 3) {
return (java.lang.Integer) var_;
}
return 0;
}
public static final int KIND_FIELD_NUMBER = 2;
private com.digitalasset.daml_lf_1_8.DamlLf1.Kind kind_;
/**
*
* Kind of the bound variable
*
*
* .daml_lf_1.Kind kind = 2[json_name = "kind"];
*/
public boolean hasKind() {
return kind_ != null;
}
/**
*
* Kind of the bound variable
*
*
* .daml_lf_1.Kind kind = 2[json_name = "kind"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind getKind() {
return kind_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Kind.getDefaultInstance() : kind_;
}
/**
*
* Kind of the bound variable
*
*
* .daml_lf_1.Kind kind = 2[json_name = "kind"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder getKindOrBuilder() {
return getKind();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (varCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_);
}
if (kind_ != null) {
output.writeMessage(2, getKind());
}
if (varCase_ == 3) {
output.writeInt32(
3, (int)((java.lang.Integer) var_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (varCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_);
}
if (kind_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getKind());
}
if (varCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
3, (int)((java.lang.Integer) var_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind other = (com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind) obj;
if (hasKind() != other.hasKind()) return false;
if (hasKind()) {
if (!getKind()
.equals(other.getKind())) return false;
}
if (!getVarCase().equals(other.getVarCase())) return false;
switch (varCase_) {
case 1:
if (!getVarStr()
.equals(other.getVarStr())) return false;
break;
case 3:
if (getVarInternedStr()
!= other.getVarInternedStr()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKind()) {
hash = (37 * hash) + KIND_FIELD_NUMBER;
hash = (53 * hash) + getKind().hashCode();
}
switch (varCase_) {
case 1:
hash = (37 * hash) + VAR_STR_FIELD_NUMBER;
hash = (53 * hash) + getVarStr().hashCode();
break;
case 3:
hash = (37 * hash) + VAR_INTERNED_STR_FIELD_NUMBER;
hash = (53 * hash) + getVarInternedStr();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Type binder associated with a kind.
*
*
* Protobuf type {@code daml_lf_1.TypeVarWithKind}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.TypeVarWithKind)
com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKindOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_TypeVarWithKind_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_TypeVarWithKind_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.class, com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (kindBuilder_ == null) {
kind_ = null;
} else {
kind_ = null;
kindBuilder_ = null;
}
varCase_ = 0;
var_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_TypeVarWithKind_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind build() {
com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind result = new com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind(this);
if (varCase_ == 1) {
result.var_ = var_;
}
if (varCase_ == 3) {
result.var_ = var_;
}
if (kindBuilder_ == null) {
result.kind_ = kind_;
} else {
result.kind_ = kindBuilder_.build();
}
result.varCase_ = varCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.getDefaultInstance()) return this;
if (other.hasKind()) {
mergeKind(other.getKind());
}
switch (other.getVarCase()) {
case VAR_STR: {
varCase_ = 1;
var_ = other.var_;
onChanged();
break;
}
case VAR_INTERNED_STR: {
setVarInternedStr(other.getVarInternedStr());
break;
}
case VAR_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int varCase_ = 0;
private java.lang.Object var_;
public VarCase
getVarCase() {
return VarCase.forNumber(
varCase_);
}
public Builder clearVar() {
varCase_ = 0;
var_ = null;
onChanged();
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public java.lang.String getVarStr() {
java.lang.Object ref = "";
if (varCase_ == 1) {
ref = var_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (varCase_ == 1) {
var_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public com.google.protobuf.ByteString
getVarStrBytes() {
java.lang.Object ref = "";
if (varCase_ == 1) {
ref = var_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (varCase_ == 1) {
var_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public Builder setVarStr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
varCase_ = 1;
var_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public Builder clearVarStr() {
if (varCase_ == 1) {
varCase_ = 0;
var_ = null;
onChanged();
}
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public Builder setVarStrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
varCase_ = 1;
var_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 var_interned_str = 3[json_name = "varInternedStr"];
*/
public int getVarInternedStr() {
if (varCase_ == 3) {
return (java.lang.Integer) var_;
}
return 0;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 var_interned_str = 3[json_name = "varInternedStr"];
*/
public Builder setVarInternedStr(int value) {
varCase_ = 3;
var_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 var_interned_str = 3[json_name = "varInternedStr"];
*/
public Builder clearVarInternedStr() {
if (varCase_ == 3) {
varCase_ = 0;
var_ = null;
onChanged();
}
return this;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.Kind kind_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Kind, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder> kindBuilder_;
/**
*
* Kind of the bound variable
*
*
* .daml_lf_1.Kind kind = 2[json_name = "kind"];
*/
public boolean hasKind() {
return kindBuilder_ != null || kind_ != null;
}
/**
*
* Kind of the bound variable
*
*
* .daml_lf_1.Kind kind = 2[json_name = "kind"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind getKind() {
if (kindBuilder_ == null) {
return kind_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Kind.getDefaultInstance() : kind_;
} else {
return kindBuilder_.getMessage();
}
}
/**
*
* Kind of the bound variable
*
*
* .daml_lf_1.Kind kind = 2[json_name = "kind"];
*/
public Builder setKind(com.digitalasset.daml_lf_1_8.DamlLf1.Kind value) {
if (kindBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kind_ = value;
onChanged();
} else {
kindBuilder_.setMessage(value);
}
return this;
}
/**
*
* Kind of the bound variable
*
*
* .daml_lf_1.Kind kind = 2[json_name = "kind"];
*/
public Builder setKind(
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder builderForValue) {
if (kindBuilder_ == null) {
kind_ = builderForValue.build();
onChanged();
} else {
kindBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Kind of the bound variable
*
*
* .daml_lf_1.Kind kind = 2[json_name = "kind"];
*/
public Builder mergeKind(com.digitalasset.daml_lf_1_8.DamlLf1.Kind value) {
if (kindBuilder_ == null) {
if (kind_ != null) {
kind_ =
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.newBuilder(kind_).mergeFrom(value).buildPartial();
} else {
kind_ = value;
}
onChanged();
} else {
kindBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Kind of the bound variable
*
*
* .daml_lf_1.Kind kind = 2[json_name = "kind"];
*/
public Builder clearKind() {
if (kindBuilder_ == null) {
kind_ = null;
onChanged();
} else {
kind_ = null;
kindBuilder_ = null;
}
return this;
}
/**
*
* Kind of the bound variable
*
*
* .daml_lf_1.Kind kind = 2[json_name = "kind"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder getKindBuilder() {
onChanged();
return getKindFieldBuilder().getBuilder();
}
/**
*
* Kind of the bound variable
*
*
* .daml_lf_1.Kind kind = 2[json_name = "kind"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder getKindOrBuilder() {
if (kindBuilder_ != null) {
return kindBuilder_.getMessageOrBuilder();
} else {
return kind_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.getDefaultInstance() : kind_;
}
}
/**
*
* Kind of the bound variable
*
*
* .daml_lf_1.Kind kind = 2[json_name = "kind"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Kind, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder>
getKindFieldBuilder() {
if (kindBuilder_ == null) {
kindBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Kind, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder>(
getKind(),
getParentForChildren(),
isClean());
kind_ = null;
}
return kindBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.TypeVarWithKind)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.TypeVarWithKind)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TypeVarWithKind parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TypeVarWithKind(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FieldWithExprOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.FieldWithExpr)
com.google.protobuf.MessageOrBuilder {
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
java.lang.String getFieldStr();
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
com.google.protobuf.ByteString
getFieldStrBytes();
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 3[json_name = "fieldInternedStr"];
*/
int getFieldInternedStr();
/**
*
* Value of the field
*
*
* .daml_lf_1.Expr expr = 2[json_name = "expr"];
*/
boolean hasExpr();
/**
*
* Value of the field
*
*
* .daml_lf_1.Expr expr = 2[json_name = "expr"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr getExpr();
/**
*
* Value of the field
*
*
* .daml_lf_1.Expr expr = 2[json_name = "expr"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getExprOrBuilder();
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.FieldCase getFieldCase();
}
/**
*
* A field in a record with its value.
*
*
* Protobuf type {@code daml_lf_1.FieldWithExpr}
*/
public static final class FieldWithExpr extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.FieldWithExpr)
FieldWithExprOrBuilder {
private static final long serialVersionUID = 0L;
// Use FieldWithExpr.newBuilder() to construct.
private FieldWithExpr(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FieldWithExpr() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FieldWithExpr();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FieldWithExpr(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
fieldCase_ = 1;
field_ = s;
break;
}
case 18: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder subBuilder = null;
if (expr_ != null) {
subBuilder = expr_.toBuilder();
}
expr_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(expr_);
expr_ = subBuilder.buildPartial();
}
break;
}
case 24: {
fieldCase_ = 3;
field_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_FieldWithExpr_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_FieldWithExpr_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.class, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder.class);
}
private int fieldCase_ = 0;
private java.lang.Object field_;
public enum FieldCase
implements com.google.protobuf.Internal.EnumLite {
FIELD_STR(1),
FIELD_INTERNED_STR(3),
FIELD_NOT_SET(0);
private final int value;
private FieldCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FieldCase valueOf(int value) {
return forNumber(value);
}
public static FieldCase forNumber(int value) {
switch (value) {
case 1: return FIELD_STR;
case 3: return FIELD_INTERNED_STR;
case 0: return FIELD_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public FieldCase
getFieldCase() {
return FieldCase.forNumber(
fieldCase_);
}
public static final int FIELD_STR_FIELD_NUMBER = 1;
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public java.lang.String getFieldStr() {
java.lang.Object ref = "";
if (fieldCase_ == 1) {
ref = field_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (fieldCase_ == 1) {
field_ = s;
}
return s;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public com.google.protobuf.ByteString
getFieldStrBytes() {
java.lang.Object ref = "";
if (fieldCase_ == 1) {
ref = field_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (fieldCase_ == 1) {
field_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 3;
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 3[json_name = "fieldInternedStr"];
*/
public int getFieldInternedStr() {
if (fieldCase_ == 3) {
return (java.lang.Integer) field_;
}
return 0;
}
public static final int EXPR_FIELD_NUMBER = 2;
private com.digitalasset.daml_lf_1_8.DamlLf1.Expr expr_;
/**
*
* Value of the field
*
*
* .daml_lf_1.Expr expr = 2[json_name = "expr"];
*/
public boolean hasExpr() {
return expr_ != null;
}
/**
*
* Value of the field
*
*
* .daml_lf_1.Expr expr = 2[json_name = "expr"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr getExpr() {
return expr_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : expr_;
}
/**
*
* Value of the field
*
*
* .daml_lf_1.Expr expr = 2[json_name = "expr"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getExprOrBuilder() {
return getExpr();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (fieldCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_);
}
if (expr_ != null) {
output.writeMessage(2, getExpr());
}
if (fieldCase_ == 3) {
output.writeInt32(
3, (int)((java.lang.Integer) field_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (fieldCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, field_);
}
if (expr_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getExpr());
}
if (fieldCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
3, (int)((java.lang.Integer) field_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr other = (com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr) obj;
if (hasExpr() != other.hasExpr()) return false;
if (hasExpr()) {
if (!getExpr()
.equals(other.getExpr())) return false;
}
if (!getFieldCase().equals(other.getFieldCase())) return false;
switch (fieldCase_) {
case 1:
if (!getFieldStr()
.equals(other.getFieldStr())) return false;
break;
case 3:
if (getFieldInternedStr()
!= other.getFieldInternedStr()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasExpr()) {
hash = (37 * hash) + EXPR_FIELD_NUMBER;
hash = (53 * hash) + getExpr().hashCode();
}
switch (fieldCase_) {
case 1:
hash = (37 * hash) + FIELD_STR_FIELD_NUMBER;
hash = (53 * hash) + getFieldStr().hashCode();
break;
case 3:
hash = (37 * hash) + FIELD_INTERNED_STR_FIELD_NUMBER;
hash = (53 * hash) + getFieldInternedStr();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A field in a record with its value.
*
*
* Protobuf type {@code daml_lf_1.FieldWithExpr}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.FieldWithExpr)
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExprOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_FieldWithExpr_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_FieldWithExpr_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.class, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (exprBuilder_ == null) {
expr_ = null;
} else {
expr_ = null;
exprBuilder_ = null;
}
fieldCase_ = 0;
field_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_FieldWithExpr_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr build() {
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr result = new com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr(this);
if (fieldCase_ == 1) {
result.field_ = field_;
}
if (fieldCase_ == 3) {
result.field_ = field_;
}
if (exprBuilder_ == null) {
result.expr_ = expr_;
} else {
result.expr_ = exprBuilder_.build();
}
result.fieldCase_ = fieldCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.getDefaultInstance()) return this;
if (other.hasExpr()) {
mergeExpr(other.getExpr());
}
switch (other.getFieldCase()) {
case FIELD_STR: {
fieldCase_ = 1;
field_ = other.field_;
onChanged();
break;
}
case FIELD_INTERNED_STR: {
setFieldInternedStr(other.getFieldInternedStr());
break;
}
case FIELD_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int fieldCase_ = 0;
private java.lang.Object field_;
public FieldCase
getFieldCase() {
return FieldCase.forNumber(
fieldCase_);
}
public Builder clearField() {
fieldCase_ = 0;
field_ = null;
onChanged();
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public java.lang.String getFieldStr() {
java.lang.Object ref = "";
if (fieldCase_ == 1) {
ref = field_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (fieldCase_ == 1) {
field_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public com.google.protobuf.ByteString
getFieldStrBytes() {
java.lang.Object ref = "";
if (fieldCase_ == 1) {
ref = field_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (fieldCase_ == 1) {
field_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public Builder setFieldStr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fieldCase_ = 1;
field_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public Builder clearFieldStr() {
if (fieldCase_ == 1) {
fieldCase_ = 0;
field_ = null;
onChanged();
}
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public Builder setFieldStrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fieldCase_ = 1;
field_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 3[json_name = "fieldInternedStr"];
*/
public int getFieldInternedStr() {
if (fieldCase_ == 3) {
return (java.lang.Integer) field_;
}
return 0;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 3[json_name = "fieldInternedStr"];
*/
public Builder setFieldInternedStr(int value) {
fieldCase_ = 3;
field_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 3[json_name = "fieldInternedStr"];
*/
public Builder clearFieldInternedStr() {
if (fieldCase_ == 3) {
fieldCase_ = 0;
field_ = null;
onChanged();
}
return this;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.Expr expr_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder> exprBuilder_;
/**
*
* Value of the field
*
*
* .daml_lf_1.Expr expr = 2[json_name = "expr"];
*/
public boolean hasExpr() {
return exprBuilder_ != null || expr_ != null;
}
/**
*
* Value of the field
*
*
* .daml_lf_1.Expr expr = 2[json_name = "expr"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr getExpr() {
if (exprBuilder_ == null) {
return expr_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : expr_;
} else {
return exprBuilder_.getMessage();
}
}
/**
*
* Value of the field
*
*
* .daml_lf_1.Expr expr = 2[json_name = "expr"];
*/
public Builder setExpr(com.digitalasset.daml_lf_1_8.DamlLf1.Expr value) {
if (exprBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expr_ = value;
onChanged();
} else {
exprBuilder_.setMessage(value);
}
return this;
}
/**
*
* Value of the field
*
*
* .daml_lf_1.Expr expr = 2[json_name = "expr"];
*/
public Builder setExpr(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder builderForValue) {
if (exprBuilder_ == null) {
expr_ = builderForValue.build();
onChanged();
} else {
exprBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Value of the field
*
*
* .daml_lf_1.Expr expr = 2[json_name = "expr"];
*/
public Builder mergeExpr(com.digitalasset.daml_lf_1_8.DamlLf1.Expr value) {
if (exprBuilder_ == null) {
if (expr_ != null) {
expr_ =
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.newBuilder(expr_).mergeFrom(value).buildPartial();
} else {
expr_ = value;
}
onChanged();
} else {
exprBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Value of the field
*
*
* .daml_lf_1.Expr expr = 2[json_name = "expr"];
*/
public Builder clearExpr() {
if (exprBuilder_ == null) {
expr_ = null;
onChanged();
} else {
expr_ = null;
exprBuilder_ = null;
}
return this;
}
/**
*
* Value of the field
*
*
* .daml_lf_1.Expr expr = 2[json_name = "expr"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder getExprBuilder() {
onChanged();
return getExprFieldBuilder().getBuilder();
}
/**
*
* Value of the field
*
*
* .daml_lf_1.Expr expr = 2[json_name = "expr"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getExprOrBuilder() {
if (exprBuilder_ != null) {
return exprBuilder_.getMessageOrBuilder();
} else {
return expr_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : expr_;
}
}
/**
*
* Value of the field
*
*
* .daml_lf_1.Expr expr = 2[json_name = "expr"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder>
getExprFieldBuilder() {
if (exprBuilder_ == null) {
exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder>(
getExpr(),
getParentForChildren(),
isClean());
expr_ = null;
}
return exprBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.FieldWithExpr)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.FieldWithExpr)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FieldWithExpr parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FieldWithExpr(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BindingOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Binding)
com.google.protobuf.MessageOrBuilder {
/**
*
* The binder (expression variable and type)
*
*
* .daml_lf_1.VarWithType binder = 1[json_name = "binder"];
*/
boolean hasBinder();
/**
*
* The binder (expression variable and type)
*
*
* .daml_lf_1.VarWithType binder = 1[json_name = "binder"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType getBinder();
/**
*
* The binder (expression variable and type)
*
*
* .daml_lf_1.VarWithType binder = 1[json_name = "binder"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.VarWithTypeOrBuilder getBinderOrBuilder();
/**
*
* The value to which the variable is bound.
*
*
* .daml_lf_1.Expr bound = 2[json_name = "bound"];
*/
boolean hasBound();
/**
*
* The value to which the variable is bound.
*
*
* .daml_lf_1.Expr bound = 2[json_name = "bound"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr getBound();
/**
*
* The value to which the variable is bound.
*
*
* .daml_lf_1.Expr bound = 2[json_name = "bound"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getBoundOrBuilder();
}
/**
*
* A binding of a typed binder to an expression
*
*
* Protobuf type {@code daml_lf_1.Binding}
*/
public static final class Binding extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Binding)
BindingOrBuilder {
private static final long serialVersionUID = 0L;
// Use Binding.newBuilder() to construct.
private Binding(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Binding() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Binding();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Binding(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType.Builder subBuilder = null;
if (binder_ != null) {
subBuilder = binder_.toBuilder();
}
binder_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(binder_);
binder_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder subBuilder = null;
if (bound_ != null) {
subBuilder = bound_.toBuilder();
}
bound_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(bound_);
bound_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Binding_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Binding_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Binding.class, com.digitalasset.daml_lf_1_8.DamlLf1.Binding.Builder.class);
}
public static final int BINDER_FIELD_NUMBER = 1;
private com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType binder_;
/**
*
* The binder (expression variable and type)
*
*
* .daml_lf_1.VarWithType binder = 1[json_name = "binder"];
*/
public boolean hasBinder() {
return binder_ != null;
}
/**
*
* The binder (expression variable and type)
*
*
* .daml_lf_1.VarWithType binder = 1[json_name = "binder"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType getBinder() {
return binder_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType.getDefaultInstance() : binder_;
}
/**
*
* The binder (expression variable and type)
*
*
* .daml_lf_1.VarWithType binder = 1[json_name = "binder"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.VarWithTypeOrBuilder getBinderOrBuilder() {
return getBinder();
}
public static final int BOUND_FIELD_NUMBER = 2;
private com.digitalasset.daml_lf_1_8.DamlLf1.Expr bound_;
/**
*
* The value to which the variable is bound.
*
*
* .daml_lf_1.Expr bound = 2[json_name = "bound"];
*/
public boolean hasBound() {
return bound_ != null;
}
/**
*
* The value to which the variable is bound.
*
*
* .daml_lf_1.Expr bound = 2[json_name = "bound"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr getBound() {
return bound_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : bound_;
}
/**
*
* The value to which the variable is bound.
*
*
* .daml_lf_1.Expr bound = 2[json_name = "bound"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getBoundOrBuilder() {
return getBound();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (binder_ != null) {
output.writeMessage(1, getBinder());
}
if (bound_ != null) {
output.writeMessage(2, getBound());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (binder_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBinder());
}
if (bound_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBound());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Binding)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Binding other = (com.digitalasset.daml_lf_1_8.DamlLf1.Binding) obj;
if (hasBinder() != other.hasBinder()) return false;
if (hasBinder()) {
if (!getBinder()
.equals(other.getBinder())) return false;
}
if (hasBound() != other.hasBound()) return false;
if (hasBound()) {
if (!getBound()
.equals(other.getBound())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasBinder()) {
hash = (37 * hash) + BINDER_FIELD_NUMBER;
hash = (53 * hash) + getBinder().hashCode();
}
if (hasBound()) {
hash = (37 * hash) + BOUND_FIELD_NUMBER;
hash = (53 * hash) + getBound().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Binding parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Binding parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Binding parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Binding parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Binding parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Binding parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Binding parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Binding parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Binding parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Binding parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Binding parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Binding parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Binding prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A binding of a typed binder to an expression
*
*
* Protobuf type {@code daml_lf_1.Binding}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Binding)
com.digitalasset.daml_lf_1_8.DamlLf1.BindingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Binding_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Binding_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Binding.class, com.digitalasset.daml_lf_1_8.DamlLf1.Binding.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Binding.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (binderBuilder_ == null) {
binder_ = null;
} else {
binder_ = null;
binderBuilder_ = null;
}
if (boundBuilder_ == null) {
bound_ = null;
} else {
bound_ = null;
boundBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Binding_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Binding getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Binding.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Binding build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Binding result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Binding buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Binding result = new com.digitalasset.daml_lf_1_8.DamlLf1.Binding(this);
if (binderBuilder_ == null) {
result.binder_ = binder_;
} else {
result.binder_ = binderBuilder_.build();
}
if (boundBuilder_ == null) {
result.bound_ = bound_;
} else {
result.bound_ = boundBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Binding) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Binding)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Binding other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Binding.getDefaultInstance()) return this;
if (other.hasBinder()) {
mergeBinder(other.getBinder());
}
if (other.hasBound()) {
mergeBound(other.getBound());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Binding parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Binding) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType binder_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType, com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.VarWithTypeOrBuilder> binderBuilder_;
/**
*
* The binder (expression variable and type)
*
*
* .daml_lf_1.VarWithType binder = 1[json_name = "binder"];
*/
public boolean hasBinder() {
return binderBuilder_ != null || binder_ != null;
}
/**
*
* The binder (expression variable and type)
*
*
* .daml_lf_1.VarWithType binder = 1[json_name = "binder"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType getBinder() {
if (binderBuilder_ == null) {
return binder_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType.getDefaultInstance() : binder_;
} else {
return binderBuilder_.getMessage();
}
}
/**
*
* The binder (expression variable and type)
*
*
* .daml_lf_1.VarWithType binder = 1[json_name = "binder"];
*/
public Builder setBinder(com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType value) {
if (binderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
binder_ = value;
onChanged();
} else {
binderBuilder_.setMessage(value);
}
return this;
}
/**
*
* The binder (expression variable and type)
*
*
* .daml_lf_1.VarWithType binder = 1[json_name = "binder"];
*/
public Builder setBinder(
com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType.Builder builderForValue) {
if (binderBuilder_ == null) {
binder_ = builderForValue.build();
onChanged();
} else {
binderBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The binder (expression variable and type)
*
*
* .daml_lf_1.VarWithType binder = 1[json_name = "binder"];
*/
public Builder mergeBinder(com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType value) {
if (binderBuilder_ == null) {
if (binder_ != null) {
binder_ =
com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType.newBuilder(binder_).mergeFrom(value).buildPartial();
} else {
binder_ = value;
}
onChanged();
} else {
binderBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The binder (expression variable and type)
*
*
* .daml_lf_1.VarWithType binder = 1[json_name = "binder"];
*/
public Builder clearBinder() {
if (binderBuilder_ == null) {
binder_ = null;
onChanged();
} else {
binder_ = null;
binderBuilder_ = null;
}
return this;
}
/**
*
* The binder (expression variable and type)
*
*
* .daml_lf_1.VarWithType binder = 1[json_name = "binder"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType.Builder getBinderBuilder() {
onChanged();
return getBinderFieldBuilder().getBuilder();
}
/**
*
* The binder (expression variable and type)
*
*
* .daml_lf_1.VarWithType binder = 1[json_name = "binder"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.VarWithTypeOrBuilder getBinderOrBuilder() {
if (binderBuilder_ != null) {
return binderBuilder_.getMessageOrBuilder();
} else {
return binder_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType.getDefaultInstance() : binder_;
}
}
/**
*
* The binder (expression variable and type)
*
*
* .daml_lf_1.VarWithType binder = 1[json_name = "binder"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType, com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.VarWithTypeOrBuilder>
getBinderFieldBuilder() {
if (binderBuilder_ == null) {
binderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType, com.digitalasset.daml_lf_1_8.DamlLf1.VarWithType.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.VarWithTypeOrBuilder>(
getBinder(),
getParentForChildren(),
isClean());
binder_ = null;
}
return binderBuilder_;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.Expr bound_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder> boundBuilder_;
/**
*
* The value to which the variable is bound.
*
*
* .daml_lf_1.Expr bound = 2[json_name = "bound"];
*/
public boolean hasBound() {
return boundBuilder_ != null || bound_ != null;
}
/**
*
* The value to which the variable is bound.
*
*
* .daml_lf_1.Expr bound = 2[json_name = "bound"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr getBound() {
if (boundBuilder_ == null) {
return bound_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : bound_;
} else {
return boundBuilder_.getMessage();
}
}
/**
*
* The value to which the variable is bound.
*
*
* .daml_lf_1.Expr bound = 2[json_name = "bound"];
*/
public Builder setBound(com.digitalasset.daml_lf_1_8.DamlLf1.Expr value) {
if (boundBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bound_ = value;
onChanged();
} else {
boundBuilder_.setMessage(value);
}
return this;
}
/**
*
* The value to which the variable is bound.
*
*
* .daml_lf_1.Expr bound = 2[json_name = "bound"];
*/
public Builder setBound(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder builderForValue) {
if (boundBuilder_ == null) {
bound_ = builderForValue.build();
onChanged();
} else {
boundBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The value to which the variable is bound.
*
*
* .daml_lf_1.Expr bound = 2[json_name = "bound"];
*/
public Builder mergeBound(com.digitalasset.daml_lf_1_8.DamlLf1.Expr value) {
if (boundBuilder_ == null) {
if (bound_ != null) {
bound_ =
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.newBuilder(bound_).mergeFrom(value).buildPartial();
} else {
bound_ = value;
}
onChanged();
} else {
boundBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The value to which the variable is bound.
*
*
* .daml_lf_1.Expr bound = 2[json_name = "bound"];
*/
public Builder clearBound() {
if (boundBuilder_ == null) {
bound_ = null;
onChanged();
} else {
bound_ = null;
boundBuilder_ = null;
}
return this;
}
/**
*
* The value to which the variable is bound.
*
*
* .daml_lf_1.Expr bound = 2[json_name = "bound"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder getBoundBuilder() {
onChanged();
return getBoundFieldBuilder().getBuilder();
}
/**
*
* The value to which the variable is bound.
*
*
* .daml_lf_1.Expr bound = 2[json_name = "bound"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getBoundOrBuilder() {
if (boundBuilder_ != null) {
return boundBuilder_.getMessageOrBuilder();
} else {
return bound_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : bound_;
}
}
/**
*
* The value to which the variable is bound.
*
*
* .daml_lf_1.Expr bound = 2[json_name = "bound"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder>
getBoundFieldBuilder() {
if (boundBuilder_ == null) {
boundBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder>(
getBound(),
getParentForChildren(),
isClean());
bound_ = null;
}
return boundBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Binding)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Binding)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Binding DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Binding();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Binding getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Binding parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Binding(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Binding getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface KindOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Kind)
com.google.protobuf.MessageOrBuilder {
/**
*
* Kind of monomorphic type.
*
*
* .daml_lf_1.Unit star = 1[json_name = "star"];
*/
boolean hasStar();
/**
*
* Kind of monomorphic type.
*
*
* .daml_lf_1.Unit star = 1[json_name = "star"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Unit getStar();
/**
*
* Kind of monomorphic type.
*
*
* .daml_lf_1.Unit star = 1[json_name = "star"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.UnitOrBuilder getStarOrBuilder();
/**
*
* Kind of polymorphic type.
*
*
* .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"];
*/
boolean hasArrow();
/**
*
* Kind of polymorphic type.
*
*
* .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow getArrow();
/**
*
* Kind of polymorphic type.
*
*
* .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.ArrowOrBuilder getArrowOrBuilder();
/**
*
* kind of TNat type;
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Unit nat = 3[json_name = "nat"];
*/
boolean hasNat();
/**
*
* kind of TNat type;
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Unit nat = 3[json_name = "nat"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Unit getNat();
/**
*
* kind of TNat type;
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Unit nat = 3[json_name = "nat"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.UnitOrBuilder getNatOrBuilder();
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind.SumCase getSumCase();
}
/**
*
* Kinds
*
*
* Protobuf type {@code daml_lf_1.Kind}
*/
public static final class Kind extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Kind)
KindOrBuilder {
private static final long serialVersionUID = 0L;
// Use Kind.newBuilder() to construct.
private Kind(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Kind() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Kind();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Kind(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder subBuilder = null;
if (sumCase_ == 1) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Unit.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 1;
break;
}
case 18: {
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.Builder subBuilder = null;
if (sumCase_ == 2) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 2;
break;
}
case 26: {
com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder subBuilder = null;
if (sumCase_ == 3) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Unit.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 3;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Kind_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Kind_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.class, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder.class);
}
public interface ArrowOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Kind.Arrow)
com.google.protobuf.MessageOrBuilder {
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
java.util.List
getParamsList();
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Kind getParams(int index);
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
int getParamsCount();
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder>
getParamsOrBuilderList();
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder getParamsOrBuilder(
int index);
/**
* .daml_lf_1.Kind result = 2[json_name = "result"];
*/
boolean hasResult();
/**
* .daml_lf_1.Kind result = 2[json_name = "result"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Kind getResult();
/**
* .daml_lf_1.Kind result = 2[json_name = "result"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder getResultOrBuilder();
}
/**
*
* The kind of polimorphic type.
*
*
* Protobuf type {@code daml_lf_1.Kind.Arrow}
*/
public static final class Arrow extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Kind.Arrow)
ArrowOrBuilder {
private static final long serialVersionUID = 0L;
// Use Arrow.newBuilder() to construct.
private Arrow(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Arrow() {
params_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Arrow();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Arrow(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
params_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
params_.add(
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Kind.parser(), extensionRegistry));
break;
}
case 18: {
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder subBuilder = null;
if (result_ != null) {
subBuilder = result_.toBuilder();
}
result_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Kind.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(result_);
result_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
params_ = java.util.Collections.unmodifiableList(params_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Kind_Arrow_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Kind_Arrow_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.class, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.Builder.class);
}
public static final int PARAMS_FIELD_NUMBER = 1;
private java.util.List params_;
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public java.util.List getParamsList() {
return params_;
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder>
getParamsOrBuilderList() {
return params_;
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public int getParamsCount() {
return params_.size();
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind getParams(int index) {
return params_.get(index);
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder getParamsOrBuilder(
int index) {
return params_.get(index);
}
public static final int RESULT_FIELD_NUMBER = 2;
private com.digitalasset.daml_lf_1_8.DamlLf1.Kind result_;
/**
* .daml_lf_1.Kind result = 2[json_name = "result"];
*/
public boolean hasResult() {
return result_ != null;
}
/**
* .daml_lf_1.Kind result = 2[json_name = "result"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind getResult() {
return result_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Kind.getDefaultInstance() : result_;
}
/**
* .daml_lf_1.Kind result = 2[json_name = "result"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder getResultOrBuilder() {
return getResult();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < params_.size(); i++) {
output.writeMessage(1, params_.get(i));
}
if (result_ != null) {
output.writeMessage(2, getResult());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < params_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, params_.get(i));
}
if (result_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getResult());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow other = (com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow) obj;
if (!getParamsList()
.equals(other.getParamsList())) return false;
if (hasResult() != other.hasResult()) return false;
if (hasResult()) {
if (!getResult()
.equals(other.getResult())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getParamsCount() > 0) {
hash = (37 * hash) + PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getParamsList().hashCode();
}
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* The kind of polimorphic type.
*
*
* Protobuf type {@code daml_lf_1.Kind.Arrow}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Kind.Arrow)
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.ArrowOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Kind_Arrow_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Kind_Arrow_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.class, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getParamsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (paramsBuilder_ == null) {
params_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
paramsBuilder_.clear();
}
if (resultBuilder_ == null) {
result_ = null;
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Kind_Arrow_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow result = new com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow(this);
int from_bitField0_ = bitField0_;
if (paramsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
params_ = java.util.Collections.unmodifiableList(params_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.params_ = params_;
} else {
result.params_ = paramsBuilder_.build();
}
if (resultBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.getDefaultInstance()) return this;
if (paramsBuilder_ == null) {
if (!other.params_.isEmpty()) {
if (params_.isEmpty()) {
params_ = other.params_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureParamsIsMutable();
params_.addAll(other.params_);
}
onChanged();
}
} else {
if (!other.params_.isEmpty()) {
if (paramsBuilder_.isEmpty()) {
paramsBuilder_.dispose();
paramsBuilder_ = null;
params_ = other.params_;
bitField0_ = (bitField0_ & ~0x00000001);
paramsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getParamsFieldBuilder() : null;
} else {
paramsBuilder_.addAllMessages(other.params_);
}
}
}
if (other.hasResult()) {
mergeResult(other.getResult());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List params_ =
java.util.Collections.emptyList();
private void ensureParamsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
params_ = new java.util.ArrayList(params_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Kind, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder> paramsBuilder_;
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public java.util.List getParamsList() {
if (paramsBuilder_ == null) {
return java.util.Collections.unmodifiableList(params_);
} else {
return paramsBuilder_.getMessageList();
}
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public int getParamsCount() {
if (paramsBuilder_ == null) {
return params_.size();
} else {
return paramsBuilder_.getCount();
}
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind getParams(int index) {
if (paramsBuilder_ == null) {
return params_.get(index);
} else {
return paramsBuilder_.getMessage(index);
}
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public Builder setParams(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Kind value) {
if (paramsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamsIsMutable();
params_.set(index, value);
onChanged();
} else {
paramsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public Builder setParams(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder builderForValue) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
params_.set(index, builderForValue.build());
onChanged();
} else {
paramsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public Builder addParams(com.digitalasset.daml_lf_1_8.DamlLf1.Kind value) {
if (paramsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamsIsMutable();
params_.add(value);
onChanged();
} else {
paramsBuilder_.addMessage(value);
}
return this;
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public Builder addParams(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Kind value) {
if (paramsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamsIsMutable();
params_.add(index, value);
onChanged();
} else {
paramsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public Builder addParams(
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder builderForValue) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
params_.add(builderForValue.build());
onChanged();
} else {
paramsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public Builder addParams(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder builderForValue) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
params_.add(index, builderForValue.build());
onChanged();
} else {
paramsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public Builder addAllParams(
java.lang.Iterable extends com.digitalasset.daml_lf_1_8.DamlLf1.Kind> values) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, params_);
onChanged();
} else {
paramsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public Builder clearParams() {
if (paramsBuilder_ == null) {
params_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
paramsBuilder_.clear();
}
return this;
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public Builder removeParams(int index) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
params_.remove(index);
onChanged();
} else {
paramsBuilder_.remove(index);
}
return this;
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder getParamsBuilder(
int index) {
return getParamsFieldBuilder().getBuilder(index);
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder getParamsOrBuilder(
int index) {
if (paramsBuilder_ == null) {
return params_.get(index); } else {
return paramsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder>
getParamsOrBuilderList() {
if (paramsBuilder_ != null) {
return paramsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(params_);
}
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder addParamsBuilder() {
return getParamsFieldBuilder().addBuilder(
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.getDefaultInstance());
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder addParamsBuilder(
int index) {
return getParamsFieldBuilder().addBuilder(
index, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.getDefaultInstance());
}
/**
*
* parameter of the kind
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Kind params = 1[json_name = "params"];
*/
public java.util.List
getParamsBuilderList() {
return getParamsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Kind, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder>
getParamsFieldBuilder() {
if (paramsBuilder_ == null) {
paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Kind, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder>(
params_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
params_ = null;
}
return paramsBuilder_;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.Kind result_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Kind, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder> resultBuilder_;
/**
* .daml_lf_1.Kind result = 2[json_name = "result"];
*/
public boolean hasResult() {
return resultBuilder_ != null || result_ != null;
}
/**
* .daml_lf_1.Kind result = 2[json_name = "result"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind getResult() {
if (resultBuilder_ == null) {
return result_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Kind.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
* .daml_lf_1.Kind result = 2[json_name = "result"];
*/
public Builder setResult(com.digitalasset.daml_lf_1_8.DamlLf1.Kind value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultBuilder_.setMessage(value);
}
return this;
}
/**
* .daml_lf_1.Kind result = 2[json_name = "result"];
*/
public Builder setResult(
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .daml_lf_1.Kind result = 2[json_name = "result"];
*/
public Builder mergeResult(com.digitalasset.daml_lf_1_8.DamlLf1.Kind value) {
if (resultBuilder_ == null) {
if (result_ != null) {
result_ =
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.newBuilder(result_).mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
resultBuilder_.mergeFrom(value);
}
return this;
}
/**
* .daml_lf_1.Kind result = 2[json_name = "result"];
*/
public Builder clearResult() {
if (resultBuilder_ == null) {
result_ = null;
onChanged();
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
/**
* .daml_lf_1.Kind result = 2[json_name = "result"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder getResultBuilder() {
onChanged();
return getResultFieldBuilder().getBuilder();
}
/**
* .daml_lf_1.Kind result = 2[json_name = "result"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.getDefaultInstance() : result_;
}
}
/**
* .daml_lf_1.Kind result = 2[json_name = "result"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Kind, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Kind, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Kind.Arrow)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Kind.Arrow)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Arrow parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Arrow(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int sumCase_ = 0;
private java.lang.Object sum_;
public enum SumCase
implements com.google.protobuf.Internal.EnumLite {
STAR(1),
ARROW(2),
NAT(3),
SUM_NOT_SET(0);
private final int value;
private SumCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SumCase valueOf(int value) {
return forNumber(value);
}
public static SumCase forNumber(int value) {
switch (value) {
case 1: return STAR;
case 2: return ARROW;
case 3: return NAT;
case 0: return SUM_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SumCase
getSumCase() {
return SumCase.forNumber(
sumCase_);
}
public static final int STAR_FIELD_NUMBER = 1;
/**
*
* Kind of monomorphic type.
*
*
* .daml_lf_1.Unit star = 1[json_name = "star"];
*/
public boolean hasStar() {
return sumCase_ == 1;
}
/**
*
* Kind of monomorphic type.
*
*
* .daml_lf_1.Unit star = 1[json_name = "star"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Unit getStar() {
if (sumCase_ == 1) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance();
}
/**
*
* Kind of monomorphic type.
*
*
* .daml_lf_1.Unit star = 1[json_name = "star"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.UnitOrBuilder getStarOrBuilder() {
if (sumCase_ == 1) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance();
}
public static final int ARROW_FIELD_NUMBER = 2;
/**
*
* Kind of polymorphic type.
*
*
* .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"];
*/
public boolean hasArrow() {
return sumCase_ == 2;
}
/**
*
* Kind of polymorphic type.
*
*
* .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow getArrow() {
if (sumCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.getDefaultInstance();
}
/**
*
* Kind of polymorphic type.
*
*
* .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind.ArrowOrBuilder getArrowOrBuilder() {
if (sumCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.getDefaultInstance();
}
public static final int NAT_FIELD_NUMBER = 3;
/**
*
* kind of TNat type;
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Unit nat = 3[json_name = "nat"];
*/
public boolean hasNat() {
return sumCase_ == 3;
}
/**
*
* kind of TNat type;
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Unit nat = 3[json_name = "nat"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Unit getNat() {
if (sumCase_ == 3) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance();
}
/**
*
* kind of TNat type;
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Unit nat = 3[json_name = "nat"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.UnitOrBuilder getNatOrBuilder() {
if (sumCase_ == 3) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (sumCase_ == 1) {
output.writeMessage(1, (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_);
}
if (sumCase_ == 2) {
output.writeMessage(2, (com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow) sum_);
}
if (sumCase_ == 3) {
output.writeMessage(3, (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (sumCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_);
}
if (sumCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow) sum_);
}
if (sumCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Kind)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Kind other = (com.digitalasset.daml_lf_1_8.DamlLf1.Kind) obj;
if (!getSumCase().equals(other.getSumCase())) return false;
switch (sumCase_) {
case 1:
if (!getStar()
.equals(other.getStar())) return false;
break;
case 2:
if (!getArrow()
.equals(other.getArrow())) return false;
break;
case 3:
if (!getNat()
.equals(other.getNat())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (sumCase_) {
case 1:
hash = (37 * hash) + STAR_FIELD_NUMBER;
hash = (53 * hash) + getStar().hashCode();
break;
case 2:
hash = (37 * hash) + ARROW_FIELD_NUMBER;
hash = (53 * hash) + getArrow().hashCode();
break;
case 3:
hash = (37 * hash) + NAT_FIELD_NUMBER;
hash = (53 * hash) + getNat().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Kind prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Kinds
*
*
* Protobuf type {@code daml_lf_1.Kind}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Kind)
com.digitalasset.daml_lf_1_8.DamlLf1.KindOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Kind_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Kind_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.class, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Kind.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
sumCase_ = 0;
sum_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Kind_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Kind.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Kind result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Kind result = new com.digitalasset.daml_lf_1_8.DamlLf1.Kind(this);
if (sumCase_ == 1) {
if (starBuilder_ == null) {
result.sum_ = sum_;
} else {
result.sum_ = starBuilder_.build();
}
}
if (sumCase_ == 2) {
if (arrowBuilder_ == null) {
result.sum_ = sum_;
} else {
result.sum_ = arrowBuilder_.build();
}
}
if (sumCase_ == 3) {
if (natBuilder_ == null) {
result.sum_ = sum_;
} else {
result.sum_ = natBuilder_.build();
}
}
result.sumCase_ = sumCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Kind) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Kind)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Kind other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Kind.getDefaultInstance()) return this;
switch (other.getSumCase()) {
case STAR: {
mergeStar(other.getStar());
break;
}
case ARROW: {
mergeArrow(other.getArrow());
break;
}
case NAT: {
mergeNat(other.getNat());
break;
}
case SUM_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Kind parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Kind) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int sumCase_ = 0;
private java.lang.Object sum_;
public SumCase
getSumCase() {
return SumCase.forNumber(
sumCase_);
}
public Builder clearSum() {
sumCase_ = 0;
sum_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Unit, com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.UnitOrBuilder> starBuilder_;
/**
*
* Kind of monomorphic type.
*
*
* .daml_lf_1.Unit star = 1[json_name = "star"];
*/
public boolean hasStar() {
return sumCase_ == 1;
}
/**
*
* Kind of monomorphic type.
*
*
* .daml_lf_1.Unit star = 1[json_name = "star"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Unit getStar() {
if (starBuilder_ == null) {
if (sumCase_ == 1) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance();
} else {
if (sumCase_ == 1) {
return starBuilder_.getMessage();
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance();
}
}
/**
*
* Kind of monomorphic type.
*
*
* .daml_lf_1.Unit star = 1[json_name = "star"];
*/
public Builder setStar(com.digitalasset.daml_lf_1_8.DamlLf1.Unit value) {
if (starBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sum_ = value;
onChanged();
} else {
starBuilder_.setMessage(value);
}
sumCase_ = 1;
return this;
}
/**
*
* Kind of monomorphic type.
*
*
* .daml_lf_1.Unit star = 1[json_name = "star"];
*/
public Builder setStar(
com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder builderForValue) {
if (starBuilder_ == null) {
sum_ = builderForValue.build();
onChanged();
} else {
starBuilder_.setMessage(builderForValue.build());
}
sumCase_ = 1;
return this;
}
/**
*
* Kind of monomorphic type.
*
*
* .daml_lf_1.Unit star = 1[json_name = "star"];
*/
public Builder mergeStar(com.digitalasset.daml_lf_1_8.DamlLf1.Unit value) {
if (starBuilder_ == null) {
if (sumCase_ == 1 &&
sum_ != com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance()) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Unit.newBuilder((com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_)
.mergeFrom(value).buildPartial();
} else {
sum_ = value;
}
onChanged();
} else {
if (sumCase_ == 1) {
starBuilder_.mergeFrom(value);
}
starBuilder_.setMessage(value);
}
sumCase_ = 1;
return this;
}
/**
*
* Kind of monomorphic type.
*
*
* .daml_lf_1.Unit star = 1[json_name = "star"];
*/
public Builder clearStar() {
if (starBuilder_ == null) {
if (sumCase_ == 1) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
} else {
if (sumCase_ == 1) {
sumCase_ = 0;
sum_ = null;
}
starBuilder_.clear();
}
return this;
}
/**
*
* Kind of monomorphic type.
*
*
* .daml_lf_1.Unit star = 1[json_name = "star"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder getStarBuilder() {
return getStarFieldBuilder().getBuilder();
}
/**
*
* Kind of monomorphic type.
*
*
* .daml_lf_1.Unit star = 1[json_name = "star"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.UnitOrBuilder getStarOrBuilder() {
if ((sumCase_ == 1) && (starBuilder_ != null)) {
return starBuilder_.getMessageOrBuilder();
} else {
if (sumCase_ == 1) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance();
}
}
/**
*
* Kind of monomorphic type.
*
*
* .daml_lf_1.Unit star = 1[json_name = "star"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Unit, com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.UnitOrBuilder>
getStarFieldBuilder() {
if (starBuilder_ == null) {
if (!(sumCase_ == 1)) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance();
}
starBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Unit, com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.UnitOrBuilder>(
(com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_,
getParentForChildren(),
isClean());
sum_ = null;
}
sumCase_ = 1;
onChanged();;
return starBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.ArrowOrBuilder> arrowBuilder_;
/**
*
* Kind of polymorphic type.
*
*
* .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"];
*/
public boolean hasArrow() {
return sumCase_ == 2;
}
/**
*
* Kind of polymorphic type.
*
*
* .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow getArrow() {
if (arrowBuilder_ == null) {
if (sumCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.getDefaultInstance();
} else {
if (sumCase_ == 2) {
return arrowBuilder_.getMessage();
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.getDefaultInstance();
}
}
/**
*
* Kind of polymorphic type.
*
*
* .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"];
*/
public Builder setArrow(com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow value) {
if (arrowBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sum_ = value;
onChanged();
} else {
arrowBuilder_.setMessage(value);
}
sumCase_ = 2;
return this;
}
/**
*
* Kind of polymorphic type.
*
*
* .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"];
*/
public Builder setArrow(
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.Builder builderForValue) {
if (arrowBuilder_ == null) {
sum_ = builderForValue.build();
onChanged();
} else {
arrowBuilder_.setMessage(builderForValue.build());
}
sumCase_ = 2;
return this;
}
/**
*
* Kind of polymorphic type.
*
*
* .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"];
*/
public Builder mergeArrow(com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow value) {
if (arrowBuilder_ == null) {
if (sumCase_ == 2 &&
sum_ != com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.getDefaultInstance()) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.newBuilder((com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow) sum_)
.mergeFrom(value).buildPartial();
} else {
sum_ = value;
}
onChanged();
} else {
if (sumCase_ == 2) {
arrowBuilder_.mergeFrom(value);
}
arrowBuilder_.setMessage(value);
}
sumCase_ = 2;
return this;
}
/**
*
* Kind of polymorphic type.
*
*
* .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"];
*/
public Builder clearArrow() {
if (arrowBuilder_ == null) {
if (sumCase_ == 2) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
} else {
if (sumCase_ == 2) {
sumCase_ = 0;
sum_ = null;
}
arrowBuilder_.clear();
}
return this;
}
/**
*
* Kind of polymorphic type.
*
*
* .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.Builder getArrowBuilder() {
return getArrowFieldBuilder().getBuilder();
}
/**
*
* Kind of polymorphic type.
*
*
* .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind.ArrowOrBuilder getArrowOrBuilder() {
if ((sumCase_ == 2) && (arrowBuilder_ != null)) {
return arrowBuilder_.getMessageOrBuilder();
} else {
if (sumCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.getDefaultInstance();
}
}
/**
*
* Kind of polymorphic type.
*
*
* .daml_lf_1.Kind.Arrow arrow = 2[json_name = "arrow"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.ArrowOrBuilder>
getArrowFieldBuilder() {
if (arrowBuilder_ == null) {
if (!(sumCase_ == 2)) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.getDefaultInstance();
}
arrowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Kind.ArrowOrBuilder>(
(com.digitalasset.daml_lf_1_8.DamlLf1.Kind.Arrow) sum_,
getParentForChildren(),
isClean());
sum_ = null;
}
sumCase_ = 2;
onChanged();;
return arrowBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Unit, com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.UnitOrBuilder> natBuilder_;
/**
*
* kind of TNat type;
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Unit nat = 3[json_name = "nat"];
*/
public boolean hasNat() {
return sumCase_ == 3;
}
/**
*
* kind of TNat type;
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Unit nat = 3[json_name = "nat"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Unit getNat() {
if (natBuilder_ == null) {
if (sumCase_ == 3) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance();
} else {
if (sumCase_ == 3) {
return natBuilder_.getMessage();
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance();
}
}
/**
*
* kind of TNat type;
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Unit nat = 3[json_name = "nat"];
*/
public Builder setNat(com.digitalasset.daml_lf_1_8.DamlLf1.Unit value) {
if (natBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sum_ = value;
onChanged();
} else {
natBuilder_.setMessage(value);
}
sumCase_ = 3;
return this;
}
/**
*
* kind of TNat type;
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Unit nat = 3[json_name = "nat"];
*/
public Builder setNat(
com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder builderForValue) {
if (natBuilder_ == null) {
sum_ = builderForValue.build();
onChanged();
} else {
natBuilder_.setMessage(builderForValue.build());
}
sumCase_ = 3;
return this;
}
/**
*
* kind of TNat type;
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Unit nat = 3[json_name = "nat"];
*/
public Builder mergeNat(com.digitalasset.daml_lf_1_8.DamlLf1.Unit value) {
if (natBuilder_ == null) {
if (sumCase_ == 3 &&
sum_ != com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance()) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Unit.newBuilder((com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_)
.mergeFrom(value).buildPartial();
} else {
sum_ = value;
}
onChanged();
} else {
if (sumCase_ == 3) {
natBuilder_.mergeFrom(value);
}
natBuilder_.setMessage(value);
}
sumCase_ = 3;
return this;
}
/**
*
* kind of TNat type;
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Unit nat = 3[json_name = "nat"];
*/
public Builder clearNat() {
if (natBuilder_ == null) {
if (sumCase_ == 3) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
} else {
if (sumCase_ == 3) {
sumCase_ = 0;
sum_ = null;
}
natBuilder_.clear();
}
return this;
}
/**
*
* kind of TNat type;
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Unit nat = 3[json_name = "nat"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder getNatBuilder() {
return getNatFieldBuilder().getBuilder();
}
/**
*
* kind of TNat type;
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Unit nat = 3[json_name = "nat"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.UnitOrBuilder getNatOrBuilder() {
if ((sumCase_ == 3) && (natBuilder_ != null)) {
return natBuilder_.getMessageOrBuilder();
} else {
if (sumCase_ == 3) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance();
}
}
/**
*
* kind of TNat type;
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Unit nat = 3[json_name = "nat"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Unit, com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.UnitOrBuilder>
getNatFieldBuilder() {
if (natBuilder_ == null) {
if (!(sumCase_ == 3)) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Unit.getDefaultInstance();
}
natBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Unit, com.digitalasset.daml_lf_1_8.DamlLf1.Unit.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.UnitOrBuilder>(
(com.digitalasset.daml_lf_1_8.DamlLf1.Unit) sum_,
getParentForChildren(),
isClean());
sum_ = null;
}
sumCase_ = 3;
onChanged();;
return natBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Kind)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Kind)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Kind DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Kind();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Kind getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Kind parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Kind(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Kind getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Type)
com.google.protobuf.MessageOrBuilder {
/**
* .daml_lf_1.Type.Var var = 1[json_name = "var"];
*/
boolean hasVar();
/**
* .daml_lf_1.Type.Var var = 1[json_name = "var"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var getVar();
/**
* .daml_lf_1.Type.Var var = 1[json_name = "var"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.VarOrBuilder getVarOrBuilder();
/**
* .daml_lf_1.Type.Con con = 2[json_name = "con"];
*/
boolean hasCon();
/**
* .daml_lf_1.Type.Con con = 2[json_name = "con"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con getCon();
/**
* .daml_lf_1.Type.Con con = 2[json_name = "con"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder getConOrBuilder();
/**
*
* FixMe: renamed
*
*
* .daml_lf_1.Type.Prim prim = 3[json_name = "prim"];
*/
boolean hasPrim();
/**
*
* FixMe: renamed
*
*
* .daml_lf_1.Type.Prim prim = 3[json_name = "prim"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim getPrim();
/**
*
* FixMe: renamed
*
*
* .daml_lf_1.Type.Prim prim = 3[json_name = "prim"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.PrimOrBuilder getPrimOrBuilder();
/**
* .daml_lf_1.Type.Fun fun = 4[json_name = "fun"];
*/
boolean hasFun();
/**
* .daml_lf_1.Type.Fun fun = 4[json_name = "fun"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun getFun();
/**
* .daml_lf_1.Type.Fun fun = 4[json_name = "fun"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.FunOrBuilder getFunOrBuilder();
/**
* .daml_lf_1.Type.Forall forall = 5[json_name = "forall"];
*/
boolean hasForall();
/**
* .daml_lf_1.Type.Forall forall = 5[json_name = "forall"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall getForall();
/**
* .daml_lf_1.Type.Forall forall = 5[json_name = "forall"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.ForallOrBuilder getForallOrBuilder();
/**
* .daml_lf_1.Type.Struct struct = 7[json_name = "struct"];
*/
boolean hasStruct();
/**
* .daml_lf_1.Type.Struct struct = 7[json_name = "struct"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct getStruct();
/**
* .daml_lf_1.Type.Struct struct = 7[json_name = "struct"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.StructOrBuilder getStructOrBuilder();
/**
*
* *Available in versions >= 1.7*
* *Must be between 0 and 37 (bounds inclusive)*
* use standard signed long for future usage.
*
*
* sint64 nat = 11[json_name = "nat"];
*/
long getNat();
/**
*
* *Available in versions >= 1.8*
*
*
* .daml_lf_1.Type.Syn syn = 12[json_name = "syn"];
*/
boolean hasSyn();
/**
*
* *Available in versions >= 1.8*
*
*
* .daml_lf_1.Type.Syn syn = 12[json_name = "syn"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn getSyn();
/**
*
* *Available in versions >= 1.8*
*
*
* .daml_lf_1.Type.Syn syn = 12[json_name = "syn"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.SynOrBuilder getSynOrBuilder();
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.SumCase getSumCase();
}
/**
*
* Types
*
*
* Protobuf type {@code daml_lf_1.Type}
*/
public static final class Type extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Type)
TypeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Type.newBuilder() to construct.
private Type(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Type() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Type();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Type(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.Builder subBuilder = null;
if (sumCase_ == 1) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 1;
break;
}
case 18: {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder subBuilder = null;
if (sumCase_ == 2) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 2;
break;
}
case 26: {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.Builder subBuilder = null;
if (sumCase_ == 3) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 3;
break;
}
case 34: {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.Builder subBuilder = null;
if (sumCase_ == 4) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 4;
break;
}
case 42: {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.Builder subBuilder = null;
if (sumCase_ == 5) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 5;
break;
}
case 58: {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.Builder subBuilder = null;
if (sumCase_ == 7) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 7;
break;
}
case 88: {
sumCase_ = 11;
sum_ = input.readSInt64();
break;
}
case 98: {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.Builder subBuilder = null;
if (sumCase_ == 12) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 12;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.class, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder.class);
}
public interface VarOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Type.Var)
com.google.protobuf.MessageOrBuilder {
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
java.lang.String getVarStr();
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
com.google.protobuf.ByteString
getVarStrBytes();
/**
*
* *Must be a valid interned identifier*
*
*
* int32 var_interned_str = 3[json_name = "varInternedStr"];
*/
int getVarInternedStr();
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
java.util.List
getArgsList();
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type getArgs(int index);
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
int getArgsCount();
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getArgsOrBuilderList();
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getArgsOrBuilder(
int index);
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.VarCase getVarCase();
}
/**
*
* Possibly applied type variable 'TyVar'
*
*
* Protobuf type {@code daml_lf_1.Type.Var}
*/
public static final class Var extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Type.Var)
VarOrBuilder {
private static final long serialVersionUID = 0L;
// Use Var.newBuilder() to construct.
private Var(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Var() {
args_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Var();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Var(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
varCase_ = 1;
var_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
args_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
args_.add(
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.parser(), extensionRegistry));
break;
}
case 24: {
varCase_ = 3;
var_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
args_ = java.util.Collections.unmodifiableList(args_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Var_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Var_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.class, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.Builder.class);
}
private int varCase_ = 0;
private java.lang.Object var_;
public enum VarCase
implements com.google.protobuf.Internal.EnumLite {
VAR_STR(1),
VAR_INTERNED_STR(3),
VAR_NOT_SET(0);
private final int value;
private VarCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static VarCase valueOf(int value) {
return forNumber(value);
}
public static VarCase forNumber(int value) {
switch (value) {
case 1: return VAR_STR;
case 3: return VAR_INTERNED_STR;
case 0: return VAR_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public VarCase
getVarCase() {
return VarCase.forNumber(
varCase_);
}
public static final int VAR_STR_FIELD_NUMBER = 1;
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public java.lang.String getVarStr() {
java.lang.Object ref = "";
if (varCase_ == 1) {
ref = var_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (varCase_ == 1) {
var_ = s;
}
return s;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public com.google.protobuf.ByteString
getVarStrBytes() {
java.lang.Object ref = "";
if (varCase_ == 1) {
ref = var_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (varCase_ == 1) {
var_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VAR_INTERNED_STR_FIELD_NUMBER = 3;
/**
*
* *Must be a valid interned identifier*
*
*
* int32 var_interned_str = 3[json_name = "varInternedStr"];
*/
public int getVarInternedStr() {
if (varCase_ == 3) {
return (java.lang.Integer) var_;
}
return 0;
}
public static final int ARGS_FIELD_NUMBER = 2;
private java.util.List args_;
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List getArgsList() {
return args_;
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getArgsOrBuilderList() {
return args_;
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public int getArgsCount() {
return args_.size();
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getArgs(int index) {
return args_.get(index);
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getArgsOrBuilder(
int index) {
return args_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (varCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_);
}
for (int i = 0; i < args_.size(); i++) {
output.writeMessage(2, args_.get(i));
}
if (varCase_ == 3) {
output.writeInt32(
3, (int)((java.lang.Integer) var_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (varCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_);
}
for (int i = 0; i < args_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, args_.get(i));
}
if (varCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
3, (int)((java.lang.Integer) var_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var other = (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var) obj;
if (!getArgsList()
.equals(other.getArgsList())) return false;
if (!getVarCase().equals(other.getVarCase())) return false;
switch (varCase_) {
case 1:
if (!getVarStr()
.equals(other.getVarStr())) return false;
break;
case 3:
if (getVarInternedStr()
!= other.getVarInternedStr()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getArgsCount() > 0) {
hash = (37 * hash) + ARGS_FIELD_NUMBER;
hash = (53 * hash) + getArgsList().hashCode();
}
switch (varCase_) {
case 1:
hash = (37 * hash) + VAR_STR_FIELD_NUMBER;
hash = (53 * hash) + getVarStr().hashCode();
break;
case 3:
hash = (37 * hash) + VAR_INTERNED_STR_FIELD_NUMBER;
hash = (53 * hash) + getVarInternedStr();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Possibly applied type variable 'TyVar'
*
*
* Protobuf type {@code daml_lf_1.Type.Var}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Type.Var)
com.digitalasset.daml_lf_1_8.DamlLf1.Type.VarOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Var_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Var_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.class, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getArgsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (argsBuilder_ == null) {
args_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
argsBuilder_.clear();
}
varCase_ = 0;
var_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Var_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var result = new com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var(this);
int from_bitField0_ = bitField0_;
if (varCase_ == 1) {
result.var_ = var_;
}
if (varCase_ == 3) {
result.var_ = var_;
}
if (argsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
args_ = java.util.Collections.unmodifiableList(args_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.args_ = args_;
} else {
result.args_ = argsBuilder_.build();
}
result.varCase_ = varCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.getDefaultInstance()) return this;
if (argsBuilder_ == null) {
if (!other.args_.isEmpty()) {
if (args_.isEmpty()) {
args_ = other.args_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureArgsIsMutable();
args_.addAll(other.args_);
}
onChanged();
}
} else {
if (!other.args_.isEmpty()) {
if (argsBuilder_.isEmpty()) {
argsBuilder_.dispose();
argsBuilder_ = null;
args_ = other.args_;
bitField0_ = (bitField0_ & ~0x00000001);
argsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getArgsFieldBuilder() : null;
} else {
argsBuilder_.addAllMessages(other.args_);
}
}
}
switch (other.getVarCase()) {
case VAR_STR: {
varCase_ = 1;
var_ = other.var_;
onChanged();
break;
}
case VAR_INTERNED_STR: {
setVarInternedStr(other.getVarInternedStr());
break;
}
case VAR_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int varCase_ = 0;
private java.lang.Object var_;
public VarCase
getVarCase() {
return VarCase.forNumber(
varCase_);
}
public Builder clearVar() {
varCase_ = 0;
var_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public java.lang.String getVarStr() {
java.lang.Object ref = "";
if (varCase_ == 1) {
ref = var_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (varCase_ == 1) {
var_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public com.google.protobuf.ByteString
getVarStrBytes() {
java.lang.Object ref = "";
if (varCase_ == 1) {
ref = var_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (varCase_ == 1) {
var_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public Builder setVarStr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
varCase_ = 1;
var_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public Builder clearVarStr() {
if (varCase_ == 1) {
varCase_ = 0;
var_ = null;
onChanged();
}
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
public Builder setVarStrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
varCase_ = 1;
var_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 var_interned_str = 3[json_name = "varInternedStr"];
*/
public int getVarInternedStr() {
if (varCase_ == 3) {
return (java.lang.Integer) var_;
}
return 0;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 var_interned_str = 3[json_name = "varInternedStr"];
*/
public Builder setVarInternedStr(int value) {
varCase_ = 3;
var_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 var_interned_str = 3[json_name = "varInternedStr"];
*/
public Builder clearVarInternedStr() {
if (varCase_ == 3) {
varCase_ = 0;
var_ = null;
onChanged();
}
return this;
}
private java.util.List args_ =
java.util.Collections.emptyList();
private void ensureArgsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
args_ = new java.util.ArrayList(args_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder> argsBuilder_;
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List getArgsList() {
if (argsBuilder_ == null) {
return java.util.Collections.unmodifiableList(args_);
} else {
return argsBuilder_.getMessageList();
}
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public int getArgsCount() {
if (argsBuilder_ == null) {
return args_.size();
} else {
return argsBuilder_.getCount();
}
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getArgs(int index) {
if (argsBuilder_ == null) {
return args_.get(index);
} else {
return argsBuilder_.getMessage(index);
}
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder setArgs(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.set(index, value);
onChanged();
} else {
argsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder setArgs(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder builderForValue) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.set(index, builderForValue.build());
onChanged();
} else {
argsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addArgs(com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.add(value);
onChanged();
} else {
argsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addArgs(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.add(index, value);
onChanged();
} else {
argsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addArgs(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder builderForValue) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.add(builderForValue.build());
onChanged();
} else {
argsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addArgs(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder builderForValue) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.add(index, builderForValue.build());
onChanged();
} else {
argsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addAllArgs(
java.lang.Iterable extends com.digitalasset.daml_lf_1_8.DamlLf1.Type> values) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, args_);
onChanged();
} else {
argsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder clearArgs() {
if (argsBuilder_ == null) {
args_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
argsBuilder_.clear();
}
return this;
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder removeArgs(int index) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.remove(index);
onChanged();
} else {
argsBuilder_.remove(index);
}
return this;
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder getArgsBuilder(
int index) {
return getArgsFieldBuilder().getBuilder(index);
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getArgsOrBuilder(
int index) {
if (argsBuilder_ == null) {
return args_.get(index); } else {
return argsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getArgsOrBuilderList() {
if (argsBuilder_ != null) {
return argsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(args_);
}
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder addArgsBuilder() {
return getArgsFieldBuilder().addBuilder(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance());
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder addArgsBuilder(
int index) {
return getArgsFieldBuilder().addBuilder(
index, com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance());
}
/**
*
* Types to which the variable is applied
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List
getArgsBuilderList() {
return getArgsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getArgsFieldBuilder() {
if (argsBuilder_ == null) {
argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>(
args_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
args_ = null;
}
return argsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Type.Var)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Type.Var)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Var parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Var(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Type.Con)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
boolean hasTycon();
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName getTycon();
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConNameOrBuilder getTyconOrBuilder();
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
java.util.List
getArgsList();
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type getArgs(int index);
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
int getArgsCount();
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getArgsOrBuilderList();
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getArgsOrBuilder(
int index);
}
/**
*
* Possibly applied type constructor 'TyCon'
*
*
* Protobuf type {@code daml_lf_1.Type.Con}
*/
public static final class Con extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Type.Con)
ConOrBuilder {
private static final long serialVersionUID = 0L;
// Use Con.newBuilder() to construct.
private Con(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Con() {
args_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Con();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Con(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.Builder subBuilder = null;
if (tycon_ != null) {
subBuilder = tycon_.toBuilder();
}
tycon_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tycon_);
tycon_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
args_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
args_.add(
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
args_ = java.util.Collections.unmodifiableList(args_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Con_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Con_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.class, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder.class);
}
public static final int TYCON_FIELD_NUMBER = 1;
private com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName tycon_;
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public boolean hasTycon() {
return tycon_ != null;
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName getTycon() {
return tycon_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.getDefaultInstance() : tycon_;
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeConNameOrBuilder getTyconOrBuilder() {
return getTycon();
}
public static final int ARGS_FIELD_NUMBER = 2;
private java.util.List args_;
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List getArgsList() {
return args_;
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getArgsOrBuilderList() {
return args_;
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public int getArgsCount() {
return args_.size();
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getArgs(int index) {
return args_.get(index);
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getArgsOrBuilder(
int index) {
return args_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (tycon_ != null) {
output.writeMessage(1, getTycon());
}
for (int i = 0; i < args_.size(); i++) {
output.writeMessage(2, args_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (tycon_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTycon());
}
for (int i = 0; i < args_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, args_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con other = (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con) obj;
if (hasTycon() != other.hasTycon()) return false;
if (hasTycon()) {
if (!getTycon()
.equals(other.getTycon())) return false;
}
if (!getArgsList()
.equals(other.getArgsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTycon()) {
hash = (37 * hash) + TYCON_FIELD_NUMBER;
hash = (53 * hash) + getTycon().hashCode();
}
if (getArgsCount() > 0) {
hash = (37 * hash) + ARGS_FIELD_NUMBER;
hash = (53 * hash) + getArgsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Possibly applied type constructor 'TyCon'
*
*
* Protobuf type {@code daml_lf_1.Type.Con}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Type.Con)
com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Con_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Con_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.class, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getArgsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (tyconBuilder_ == null) {
tycon_ = null;
} else {
tycon_ = null;
tyconBuilder_ = null;
}
if (argsBuilder_ == null) {
args_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
argsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Con_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con result = new com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con(this);
int from_bitField0_ = bitField0_;
if (tyconBuilder_ == null) {
result.tycon_ = tycon_;
} else {
result.tycon_ = tyconBuilder_.build();
}
if (argsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
args_ = java.util.Collections.unmodifiableList(args_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.args_ = args_;
} else {
result.args_ = argsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance()) return this;
if (other.hasTycon()) {
mergeTycon(other.getTycon());
}
if (argsBuilder_ == null) {
if (!other.args_.isEmpty()) {
if (args_.isEmpty()) {
args_ = other.args_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureArgsIsMutable();
args_.addAll(other.args_);
}
onChanged();
}
} else {
if (!other.args_.isEmpty()) {
if (argsBuilder_.isEmpty()) {
argsBuilder_.dispose();
argsBuilder_ = null;
args_ = other.args_;
bitField0_ = (bitField0_ & ~0x00000001);
argsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getArgsFieldBuilder() : null;
} else {
argsBuilder_.addAllMessages(other.args_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName tycon_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeConNameOrBuilder> tyconBuilder_;
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public boolean hasTycon() {
return tyconBuilder_ != null || tycon_ != null;
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName getTycon() {
if (tyconBuilder_ == null) {
return tycon_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.getDefaultInstance() : tycon_;
} else {
return tyconBuilder_.getMessage();
}
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public Builder setTycon(com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName value) {
if (tyconBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tycon_ = value;
onChanged();
} else {
tyconBuilder_.setMessage(value);
}
return this;
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public Builder setTycon(
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.Builder builderForValue) {
if (tyconBuilder_ == null) {
tycon_ = builderForValue.build();
onChanged();
} else {
tyconBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public Builder mergeTycon(com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName value) {
if (tyconBuilder_ == null) {
if (tycon_ != null) {
tycon_ =
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.newBuilder(tycon_).mergeFrom(value).buildPartial();
} else {
tycon_ = value;
}
onChanged();
} else {
tyconBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public Builder clearTycon() {
if (tyconBuilder_ == null) {
tycon_ = null;
onChanged();
} else {
tycon_ = null;
tyconBuilder_ = null;
}
return this;
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.Builder getTyconBuilder() {
onChanged();
return getTyconFieldBuilder().getBuilder();
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeConNameOrBuilder getTyconOrBuilder() {
if (tyconBuilder_ != null) {
return tyconBuilder_.getMessageOrBuilder();
} else {
return tycon_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.getDefaultInstance() : tycon_;
}
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeConNameOrBuilder>
getTyconFieldBuilder() {
if (tyconBuilder_ == null) {
tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeConNameOrBuilder>(
getTycon(),
getParentForChildren(),
isClean());
tycon_ = null;
}
return tyconBuilder_;
}
private java.util.List args_ =
java.util.Collections.emptyList();
private void ensureArgsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
args_ = new java.util.ArrayList(args_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder> argsBuilder_;
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List getArgsList() {
if (argsBuilder_ == null) {
return java.util.Collections.unmodifiableList(args_);
} else {
return argsBuilder_.getMessageList();
}
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public int getArgsCount() {
if (argsBuilder_ == null) {
return args_.size();
} else {
return argsBuilder_.getCount();
}
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getArgs(int index) {
if (argsBuilder_ == null) {
return args_.get(index);
} else {
return argsBuilder_.getMessage(index);
}
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder setArgs(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.set(index, value);
onChanged();
} else {
argsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder setArgs(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder builderForValue) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.set(index, builderForValue.build());
onChanged();
} else {
argsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addArgs(com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.add(value);
onChanged();
} else {
argsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addArgs(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.add(index, value);
onChanged();
} else {
argsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addArgs(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder builderForValue) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.add(builderForValue.build());
onChanged();
} else {
argsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addArgs(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder builderForValue) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.add(index, builderForValue.build());
onChanged();
} else {
argsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addAllArgs(
java.lang.Iterable extends com.digitalasset.daml_lf_1_8.DamlLf1.Type> values) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, args_);
onChanged();
} else {
argsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder clearArgs() {
if (argsBuilder_ == null) {
args_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
argsBuilder_.clear();
}
return this;
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder removeArgs(int index) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.remove(index);
onChanged();
} else {
argsBuilder_.remove(index);
}
return this;
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder getArgsBuilder(
int index) {
return getArgsFieldBuilder().getBuilder(index);
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getArgsOrBuilder(
int index) {
if (argsBuilder_ == null) {
return args_.get(index); } else {
return argsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getArgsOrBuilderList() {
if (argsBuilder_ != null) {
return argsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(args_);
}
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder addArgsBuilder() {
return getArgsFieldBuilder().addBuilder(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance());
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder addArgsBuilder(
int index) {
return getArgsFieldBuilder().addBuilder(
index, com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance());
}
/**
*
* Type to which the constructor name is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List
getArgsBuilderList() {
return getArgsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getArgsFieldBuilder() {
if (argsBuilder_ == null) {
argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>(
args_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
args_ = null;
}
return argsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Type.Con)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Type.Con)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Con parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Con(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SynOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Type.Syn)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the type synonym
*
*
* .daml_lf_1.TypeSynName tysyn = 1[json_name = "tysyn"];
*/
boolean hasTysyn();
/**
*
* Name of the type synonym
*
*
* .daml_lf_1.TypeSynName tysyn = 1[json_name = "tysyn"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName getTysyn();
/**
*
* Name of the type synonym
*
*
* .daml_lf_1.TypeSynName tysyn = 1[json_name = "tysyn"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynNameOrBuilder getTysynOrBuilder();
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
java.util.List
getArgsList();
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type getArgs(int index);
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
int getArgsCount();
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getArgsOrBuilderList();
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getArgsOrBuilder(
int index);
}
/**
*
* Fully applied type constructor 'TySyn'
* *Available in versions >= 1.8*
*
*
* Protobuf type {@code daml_lf_1.Type.Syn}
*/
public static final class Syn extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Type.Syn)
SynOrBuilder {
private static final long serialVersionUID = 0L;
// Use Syn.newBuilder() to construct.
private Syn(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Syn() {
args_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Syn();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Syn(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName.Builder subBuilder = null;
if (tysyn_ != null) {
subBuilder = tysyn_.toBuilder();
}
tysyn_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tysyn_);
tysyn_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
args_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
args_.add(
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
args_ = java.util.Collections.unmodifiableList(args_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Syn_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Syn_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.class, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.Builder.class);
}
public static final int TYSYN_FIELD_NUMBER = 1;
private com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName tysyn_;
/**
*
* Name of the type synonym
*
*
* .daml_lf_1.TypeSynName tysyn = 1[json_name = "tysyn"];
*/
public boolean hasTysyn() {
return tysyn_ != null;
}
/**
*
* Name of the type synonym
*
*
* .daml_lf_1.TypeSynName tysyn = 1[json_name = "tysyn"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName getTysyn() {
return tysyn_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName.getDefaultInstance() : tysyn_;
}
/**
*
* Name of the type synonym
*
*
* .daml_lf_1.TypeSynName tysyn = 1[json_name = "tysyn"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynNameOrBuilder getTysynOrBuilder() {
return getTysyn();
}
public static final int ARGS_FIELD_NUMBER = 2;
private java.util.List args_;
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List getArgsList() {
return args_;
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getArgsOrBuilderList() {
return args_;
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public int getArgsCount() {
return args_.size();
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getArgs(int index) {
return args_.get(index);
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getArgsOrBuilder(
int index) {
return args_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (tysyn_ != null) {
output.writeMessage(1, getTysyn());
}
for (int i = 0; i < args_.size(); i++) {
output.writeMessage(2, args_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (tysyn_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTysyn());
}
for (int i = 0; i < args_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, args_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn other = (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn) obj;
if (hasTysyn() != other.hasTysyn()) return false;
if (hasTysyn()) {
if (!getTysyn()
.equals(other.getTysyn())) return false;
}
if (!getArgsList()
.equals(other.getArgsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTysyn()) {
hash = (37 * hash) + TYSYN_FIELD_NUMBER;
hash = (53 * hash) + getTysyn().hashCode();
}
if (getArgsCount() > 0) {
hash = (37 * hash) + ARGS_FIELD_NUMBER;
hash = (53 * hash) + getArgsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Fully applied type constructor 'TySyn'
* *Available in versions >= 1.8*
*
*
* Protobuf type {@code daml_lf_1.Type.Syn}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Type.Syn)
com.digitalasset.daml_lf_1_8.DamlLf1.Type.SynOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Syn_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Syn_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.class, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getArgsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (tysynBuilder_ == null) {
tysyn_ = null;
} else {
tysyn_ = null;
tysynBuilder_ = null;
}
if (argsBuilder_ == null) {
args_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
argsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Syn_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn result = new com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn(this);
int from_bitField0_ = bitField0_;
if (tysynBuilder_ == null) {
result.tysyn_ = tysyn_;
} else {
result.tysyn_ = tysynBuilder_.build();
}
if (argsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
args_ = java.util.Collections.unmodifiableList(args_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.args_ = args_;
} else {
result.args_ = argsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.getDefaultInstance()) return this;
if (other.hasTysyn()) {
mergeTysyn(other.getTysyn());
}
if (argsBuilder_ == null) {
if (!other.args_.isEmpty()) {
if (args_.isEmpty()) {
args_ = other.args_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureArgsIsMutable();
args_.addAll(other.args_);
}
onChanged();
}
} else {
if (!other.args_.isEmpty()) {
if (argsBuilder_.isEmpty()) {
argsBuilder_.dispose();
argsBuilder_ = null;
args_ = other.args_;
bitField0_ = (bitField0_ & ~0x00000001);
argsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getArgsFieldBuilder() : null;
} else {
argsBuilder_.addAllMessages(other.args_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName tysyn_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName, com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynNameOrBuilder> tysynBuilder_;
/**
*
* Name of the type synonym
*
*
* .daml_lf_1.TypeSynName tysyn = 1[json_name = "tysyn"];
*/
public boolean hasTysyn() {
return tysynBuilder_ != null || tysyn_ != null;
}
/**
*
* Name of the type synonym
*
*
* .daml_lf_1.TypeSynName tysyn = 1[json_name = "tysyn"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName getTysyn() {
if (tysynBuilder_ == null) {
return tysyn_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName.getDefaultInstance() : tysyn_;
} else {
return tysynBuilder_.getMessage();
}
}
/**
*
* Name of the type synonym
*
*
* .daml_lf_1.TypeSynName tysyn = 1[json_name = "tysyn"];
*/
public Builder setTysyn(com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName value) {
if (tysynBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tysyn_ = value;
onChanged();
} else {
tysynBuilder_.setMessage(value);
}
return this;
}
/**
*
* Name of the type synonym
*
*
* .daml_lf_1.TypeSynName tysyn = 1[json_name = "tysyn"];
*/
public Builder setTysyn(
com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName.Builder builderForValue) {
if (tysynBuilder_ == null) {
tysyn_ = builderForValue.build();
onChanged();
} else {
tysynBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Name of the type synonym
*
*
* .daml_lf_1.TypeSynName tysyn = 1[json_name = "tysyn"];
*/
public Builder mergeTysyn(com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName value) {
if (tysynBuilder_ == null) {
if (tysyn_ != null) {
tysyn_ =
com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName.newBuilder(tysyn_).mergeFrom(value).buildPartial();
} else {
tysyn_ = value;
}
onChanged();
} else {
tysynBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Name of the type synonym
*
*
* .daml_lf_1.TypeSynName tysyn = 1[json_name = "tysyn"];
*/
public Builder clearTysyn() {
if (tysynBuilder_ == null) {
tysyn_ = null;
onChanged();
} else {
tysyn_ = null;
tysynBuilder_ = null;
}
return this;
}
/**
*
* Name of the type synonym
*
*
* .daml_lf_1.TypeSynName tysyn = 1[json_name = "tysyn"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName.Builder getTysynBuilder() {
onChanged();
return getTysynFieldBuilder().getBuilder();
}
/**
*
* Name of the type synonym
*
*
* .daml_lf_1.TypeSynName tysyn = 1[json_name = "tysyn"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynNameOrBuilder getTysynOrBuilder() {
if (tysynBuilder_ != null) {
return tysynBuilder_.getMessageOrBuilder();
} else {
return tysyn_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName.getDefaultInstance() : tysyn_;
}
}
/**
*
* Name of the type synonym
*
*
* .daml_lf_1.TypeSynName tysyn = 1[json_name = "tysyn"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName, com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynNameOrBuilder>
getTysynFieldBuilder() {
if (tysynBuilder_ == null) {
tysynBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName, com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynName.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeSynNameOrBuilder>(
getTysyn(),
getParentForChildren(),
isClean());
tysyn_ = null;
}
return tysynBuilder_;
}
private java.util.List args_ =
java.util.Collections.emptyList();
private void ensureArgsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
args_ = new java.util.ArrayList(args_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder> argsBuilder_;
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List getArgsList() {
if (argsBuilder_ == null) {
return java.util.Collections.unmodifiableList(args_);
} else {
return argsBuilder_.getMessageList();
}
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public int getArgsCount() {
if (argsBuilder_ == null) {
return args_.size();
} else {
return argsBuilder_.getCount();
}
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getArgs(int index) {
if (argsBuilder_ == null) {
return args_.get(index);
} else {
return argsBuilder_.getMessage(index);
}
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder setArgs(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.set(index, value);
onChanged();
} else {
argsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder setArgs(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder builderForValue) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.set(index, builderForValue.build());
onChanged();
} else {
argsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addArgs(com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.add(value);
onChanged();
} else {
argsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addArgs(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.add(index, value);
onChanged();
} else {
argsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addArgs(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder builderForValue) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.add(builderForValue.build());
onChanged();
} else {
argsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addArgs(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder builderForValue) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.add(index, builderForValue.build());
onChanged();
} else {
argsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addAllArgs(
java.lang.Iterable extends com.digitalasset.daml_lf_1_8.DamlLf1.Type> values) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, args_);
onChanged();
} else {
argsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder clearArgs() {
if (argsBuilder_ == null) {
args_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
argsBuilder_.clear();
}
return this;
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder removeArgs(int index) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.remove(index);
onChanged();
} else {
argsBuilder_.remove(index);
}
return this;
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder getArgsBuilder(
int index) {
return getArgsFieldBuilder().getBuilder(index);
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getArgsOrBuilder(
int index) {
if (argsBuilder_ == null) {
return args_.get(index); } else {
return argsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getArgsOrBuilderList() {
if (argsBuilder_ != null) {
return argsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(args_);
}
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder addArgsBuilder() {
return getArgsFieldBuilder().addBuilder(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance());
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder addArgsBuilder(
int index) {
return getArgsFieldBuilder().addBuilder(
index, com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance());
}
/**
*
* Types to which the synonym is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List
getArgsBuilderList() {
return getArgsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getArgsFieldBuilder() {
if (argsBuilder_ == null) {
argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>(
args_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
args_ = null;
}
return argsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Type.Syn)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Type.Syn)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Syn parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Syn(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PrimOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Type.Prim)
com.google.protobuf.MessageOrBuilder {
/**
*
* Builtin type
* FixMe: Rename
*
*
* .daml_lf_1.PrimType prim = 1[json_name = "prim"];
*/
int getPrimValue();
/**
*
* Builtin type
* FixMe: Rename
*
*
* .daml_lf_1.PrimType prim = 1[json_name = "prim"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.PrimType getPrim();
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
java.util.List
getArgsList();
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type getArgs(int index);
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
int getArgsCount();
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getArgsOrBuilderList();
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getArgsOrBuilder(
int index);
}
/**
*
* Possibly applied builtin types
*
*
* Protobuf type {@code daml_lf_1.Type.Prim}
*/
public static final class Prim extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Type.Prim)
PrimOrBuilder {
private static final long serialVersionUID = 0L;
// Use Prim.newBuilder() to construct.
private Prim(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Prim() {
prim_ = 0;
args_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Prim();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Prim(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
prim_ = rawValue;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
args_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
args_.add(
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
args_ = java.util.Collections.unmodifiableList(args_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Prim_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Prim_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.class, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.Builder.class);
}
public static final int PRIM_FIELD_NUMBER = 1;
private int prim_;
/**
*
* Builtin type
* FixMe: Rename
*
*
* .daml_lf_1.PrimType prim = 1[json_name = "prim"];
*/
public int getPrimValue() {
return prim_;
}
/**
*
* Builtin type
* FixMe: Rename
*
*
* .daml_lf_1.PrimType prim = 1[json_name = "prim"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.PrimType getPrim() {
@SuppressWarnings("deprecation")
com.digitalasset.daml_lf_1_8.DamlLf1.PrimType result = com.digitalasset.daml_lf_1_8.DamlLf1.PrimType.valueOf(prim_);
return result == null ? com.digitalasset.daml_lf_1_8.DamlLf1.PrimType.UNRECOGNIZED : result;
}
public static final int ARGS_FIELD_NUMBER = 2;
private java.util.List args_;
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List getArgsList() {
return args_;
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getArgsOrBuilderList() {
return args_;
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public int getArgsCount() {
return args_.size();
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getArgs(int index) {
return args_.get(index);
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getArgsOrBuilder(
int index) {
return args_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (prim_ != com.digitalasset.daml_lf_1_8.DamlLf1.PrimType.UNIT.getNumber()) {
output.writeEnum(1, prim_);
}
for (int i = 0; i < args_.size(); i++) {
output.writeMessage(2, args_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (prim_ != com.digitalasset.daml_lf_1_8.DamlLf1.PrimType.UNIT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, prim_);
}
for (int i = 0; i < args_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, args_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim other = (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim) obj;
if (prim_ != other.prim_) return false;
if (!getArgsList()
.equals(other.getArgsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PRIM_FIELD_NUMBER;
hash = (53 * hash) + prim_;
if (getArgsCount() > 0) {
hash = (37 * hash) + ARGS_FIELD_NUMBER;
hash = (53 * hash) + getArgsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Possibly applied builtin types
*
*
* Protobuf type {@code daml_lf_1.Type.Prim}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Type.Prim)
com.digitalasset.daml_lf_1_8.DamlLf1.Type.PrimOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Prim_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Prim_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.class, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getArgsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
prim_ = 0;
if (argsBuilder_ == null) {
args_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
argsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Prim_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim result = new com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim(this);
int from_bitField0_ = bitField0_;
result.prim_ = prim_;
if (argsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
args_ = java.util.Collections.unmodifiableList(args_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.args_ = args_;
} else {
result.args_ = argsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.getDefaultInstance()) return this;
if (other.prim_ != 0) {
setPrimValue(other.getPrimValue());
}
if (argsBuilder_ == null) {
if (!other.args_.isEmpty()) {
if (args_.isEmpty()) {
args_ = other.args_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureArgsIsMutable();
args_.addAll(other.args_);
}
onChanged();
}
} else {
if (!other.args_.isEmpty()) {
if (argsBuilder_.isEmpty()) {
argsBuilder_.dispose();
argsBuilder_ = null;
args_ = other.args_;
bitField0_ = (bitField0_ & ~0x00000001);
argsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getArgsFieldBuilder() : null;
} else {
argsBuilder_.addAllMessages(other.args_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int prim_ = 0;
/**
*
* Builtin type
* FixMe: Rename
*
*
* .daml_lf_1.PrimType prim = 1[json_name = "prim"];
*/
public int getPrimValue() {
return prim_;
}
/**
*
* Builtin type
* FixMe: Rename
*
*
* .daml_lf_1.PrimType prim = 1[json_name = "prim"];
*/
public Builder setPrimValue(int value) {
prim_ = value;
onChanged();
return this;
}
/**
*
* Builtin type
* FixMe: Rename
*
*
* .daml_lf_1.PrimType prim = 1[json_name = "prim"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.PrimType getPrim() {
@SuppressWarnings("deprecation")
com.digitalasset.daml_lf_1_8.DamlLf1.PrimType result = com.digitalasset.daml_lf_1_8.DamlLf1.PrimType.valueOf(prim_);
return result == null ? com.digitalasset.daml_lf_1_8.DamlLf1.PrimType.UNRECOGNIZED : result;
}
/**
*
* Builtin type
* FixMe: Rename
*
*
* .daml_lf_1.PrimType prim = 1[json_name = "prim"];
*/
public Builder setPrim(com.digitalasset.daml_lf_1_8.DamlLf1.PrimType value) {
if (value == null) {
throw new NullPointerException();
}
prim_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Builtin type
* FixMe: Rename
*
*
* .daml_lf_1.PrimType prim = 1[json_name = "prim"];
*/
public Builder clearPrim() {
prim_ = 0;
onChanged();
return this;
}
private java.util.List args_ =
java.util.Collections.emptyList();
private void ensureArgsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
args_ = new java.util.ArrayList(args_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder> argsBuilder_;
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List getArgsList() {
if (argsBuilder_ == null) {
return java.util.Collections.unmodifiableList(args_);
} else {
return argsBuilder_.getMessageList();
}
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public int getArgsCount() {
if (argsBuilder_ == null) {
return args_.size();
} else {
return argsBuilder_.getCount();
}
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getArgs(int index) {
if (argsBuilder_ == null) {
return args_.get(index);
} else {
return argsBuilder_.getMessage(index);
}
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder setArgs(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.set(index, value);
onChanged();
} else {
argsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder setArgs(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder builderForValue) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.set(index, builderForValue.build());
onChanged();
} else {
argsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addArgs(com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.add(value);
onChanged();
} else {
argsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addArgs(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.add(index, value);
onChanged();
} else {
argsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addArgs(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder builderForValue) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.add(builderForValue.build());
onChanged();
} else {
argsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addArgs(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder builderForValue) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.add(index, builderForValue.build());
onChanged();
} else {
argsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder addAllArgs(
java.lang.Iterable extends com.digitalasset.daml_lf_1_8.DamlLf1.Type> values) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, args_);
onChanged();
} else {
argsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder clearArgs() {
if (argsBuilder_ == null) {
args_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
argsBuilder_.clear();
}
return this;
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public Builder removeArgs(int index) {
if (argsBuilder_ == null) {
ensureArgsIsMutable();
args_.remove(index);
onChanged();
} else {
argsBuilder_.remove(index);
}
return this;
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder getArgsBuilder(
int index) {
return getArgsFieldBuilder().getBuilder(index);
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getArgsOrBuilder(
int index) {
if (argsBuilder_ == null) {
return args_.get(index); } else {
return argsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getArgsOrBuilderList() {
if (argsBuilder_ != null) {
return argsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(args_);
}
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder addArgsBuilder() {
return getArgsFieldBuilder().addBuilder(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance());
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder addArgsBuilder(
int index) {
return getArgsFieldBuilder().addBuilder(
index, com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance());
}
/**
*
* Types to which the builtin type is applied.
*
*
* repeated .daml_lf_1.Type args = 2[json_name = "args"];
*/
public java.util.List
getArgsBuilderList() {
return getArgsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getArgsFieldBuilder() {
if (argsBuilder_ == null) {
argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>(
args_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
args_ = null;
}
return argsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Type.Prim)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Type.Prim)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Prim parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Prim(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FunOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Type.Fun)
com.google.protobuf.MessageOrBuilder {
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
java.util.List
getParamsList();
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type getParams(int index);
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
int getParamsCount();
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getParamsOrBuilderList();
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getParamsOrBuilder(
int index);
/**
*
* type of the result
*
*
* .daml_lf_1.Type result = 2[json_name = "result"];
*/
boolean hasResult();
/**
*
* type of the result
*
*
* .daml_lf_1.Type result = 2[json_name = "result"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type getResult();
/**
*
* type of the result
*
*
* .daml_lf_1.Type result = 2[json_name = "result"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getResultOrBuilder();
}
/**
*
* n-ary function type
* *Available in versions < 1.2*
*
*
* Protobuf type {@code daml_lf_1.Type.Fun}
*/
public static final class Fun extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Type.Fun)
FunOrBuilder {
private static final long serialVersionUID = 0L;
// Use Fun.newBuilder() to construct.
private Fun(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Fun() {
params_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Fun();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Fun(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
params_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
params_.add(
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.parser(), extensionRegistry));
break;
}
case 18: {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder subBuilder = null;
if (result_ != null) {
subBuilder = result_.toBuilder();
}
result_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(result_);
result_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
params_ = java.util.Collections.unmodifiableList(params_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Fun_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Fun_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.class, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.Builder.class);
}
public static final int PARAMS_FIELD_NUMBER = 1;
private java.util.List params_;
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public java.util.List getParamsList() {
return params_;
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getParamsOrBuilderList() {
return params_;
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public int getParamsCount() {
return params_.size();
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getParams(int index) {
return params_.get(index);
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getParamsOrBuilder(
int index) {
return params_.get(index);
}
public static final int RESULT_FIELD_NUMBER = 2;
private com.digitalasset.daml_lf_1_8.DamlLf1.Type result_;
/**
*
* type of the result
*
*
* .daml_lf_1.Type result = 2[json_name = "result"];
*/
public boolean hasResult() {
return result_ != null;
}
/**
*
* type of the result
*
*
* .daml_lf_1.Type result = 2[json_name = "result"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getResult() {
return result_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance() : result_;
}
/**
*
* type of the result
*
*
* .daml_lf_1.Type result = 2[json_name = "result"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getResultOrBuilder() {
return getResult();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < params_.size(); i++) {
output.writeMessage(1, params_.get(i));
}
if (result_ != null) {
output.writeMessage(2, getResult());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < params_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, params_.get(i));
}
if (result_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getResult());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun other = (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun) obj;
if (!getParamsList()
.equals(other.getParamsList())) return false;
if (hasResult() != other.hasResult()) return false;
if (hasResult()) {
if (!getResult()
.equals(other.getResult())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getParamsCount() > 0) {
hash = (37 * hash) + PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getParamsList().hashCode();
}
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* n-ary function type
* *Available in versions < 1.2*
*
*
* Protobuf type {@code daml_lf_1.Type.Fun}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Type.Fun)
com.digitalasset.daml_lf_1_8.DamlLf1.Type.FunOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Fun_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Fun_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.class, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getParamsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (paramsBuilder_ == null) {
params_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
paramsBuilder_.clear();
}
if (resultBuilder_ == null) {
result_ = null;
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Fun_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun result = new com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun(this);
int from_bitField0_ = bitField0_;
if (paramsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
params_ = java.util.Collections.unmodifiableList(params_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.params_ = params_;
} else {
result.params_ = paramsBuilder_.build();
}
if (resultBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.getDefaultInstance()) return this;
if (paramsBuilder_ == null) {
if (!other.params_.isEmpty()) {
if (params_.isEmpty()) {
params_ = other.params_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureParamsIsMutable();
params_.addAll(other.params_);
}
onChanged();
}
} else {
if (!other.params_.isEmpty()) {
if (paramsBuilder_.isEmpty()) {
paramsBuilder_.dispose();
paramsBuilder_ = null;
params_ = other.params_;
bitField0_ = (bitField0_ & ~0x00000001);
paramsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getParamsFieldBuilder() : null;
} else {
paramsBuilder_.addAllMessages(other.params_);
}
}
}
if (other.hasResult()) {
mergeResult(other.getResult());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List params_ =
java.util.Collections.emptyList();
private void ensureParamsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
params_ = new java.util.ArrayList(params_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder> paramsBuilder_;
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public java.util.List getParamsList() {
if (paramsBuilder_ == null) {
return java.util.Collections.unmodifiableList(params_);
} else {
return paramsBuilder_.getMessageList();
}
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public int getParamsCount() {
if (paramsBuilder_ == null) {
return params_.size();
} else {
return paramsBuilder_.getCount();
}
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getParams(int index) {
if (paramsBuilder_ == null) {
return params_.get(index);
} else {
return paramsBuilder_.getMessage(index);
}
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public Builder setParams(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (paramsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamsIsMutable();
params_.set(index, value);
onChanged();
} else {
paramsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public Builder setParams(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder builderForValue) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
params_.set(index, builderForValue.build());
onChanged();
} else {
paramsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public Builder addParams(com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (paramsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamsIsMutable();
params_.add(value);
onChanged();
} else {
paramsBuilder_.addMessage(value);
}
return this;
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public Builder addParams(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (paramsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamsIsMutable();
params_.add(index, value);
onChanged();
} else {
paramsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public Builder addParams(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder builderForValue) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
params_.add(builderForValue.build());
onChanged();
} else {
paramsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public Builder addParams(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder builderForValue) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
params_.add(index, builderForValue.build());
onChanged();
} else {
paramsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public Builder addAllParams(
java.lang.Iterable extends com.digitalasset.daml_lf_1_8.DamlLf1.Type> values) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, params_);
onChanged();
} else {
paramsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public Builder clearParams() {
if (paramsBuilder_ == null) {
params_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
paramsBuilder_.clear();
}
return this;
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public Builder removeParams(int index) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
params_.remove(index);
onChanged();
} else {
paramsBuilder_.remove(index);
}
return this;
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder getParamsBuilder(
int index) {
return getParamsFieldBuilder().getBuilder(index);
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getParamsOrBuilder(
int index) {
if (paramsBuilder_ == null) {
return params_.get(index); } else {
return paramsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getParamsOrBuilderList() {
if (paramsBuilder_ != null) {
return paramsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(params_);
}
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder addParamsBuilder() {
return getParamsFieldBuilder().addBuilder(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance());
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder addParamsBuilder(
int index) {
return getParamsFieldBuilder().addBuilder(
index, com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance());
}
/**
*
* type of the arguments
* *Must be non-empty*
*
*
* repeated .daml_lf_1.Type params = 1[json_name = "params"];
*/
public java.util.List
getParamsBuilderList() {
return getParamsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getParamsFieldBuilder() {
if (paramsBuilder_ == null) {
paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>(
params_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
params_ = null;
}
return paramsBuilder_;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.Type result_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder> resultBuilder_;
/**
*
* type of the result
*
*
* .daml_lf_1.Type result = 2[json_name = "result"];
*/
public boolean hasResult() {
return resultBuilder_ != null || result_ != null;
}
/**
*
* type of the result
*
*
* .daml_lf_1.Type result = 2[json_name = "result"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getResult() {
if (resultBuilder_ == null) {
return result_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
*
* type of the result
*
*
* .daml_lf_1.Type result = 2[json_name = "result"];
*/
public Builder setResult(com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultBuilder_.setMessage(value);
}
return this;
}
/**
*
* type of the result
*
*
* .daml_lf_1.Type result = 2[json_name = "result"];
*/
public Builder setResult(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* type of the result
*
*
* .daml_lf_1.Type result = 2[json_name = "result"];
*/
public Builder mergeResult(com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (resultBuilder_ == null) {
if (result_ != null) {
result_ =
com.digitalasset.daml_lf_1_8.DamlLf1.Type.newBuilder(result_).mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
resultBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* type of the result
*
*
* .daml_lf_1.Type result = 2[json_name = "result"];
*/
public Builder clearResult() {
if (resultBuilder_ == null) {
result_ = null;
onChanged();
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
/**
*
* type of the result
*
*
* .daml_lf_1.Type result = 2[json_name = "result"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder getResultBuilder() {
onChanged();
return getResultFieldBuilder().getBuilder();
}
/**
*
* type of the result
*
*
* .daml_lf_1.Type result = 2[json_name = "result"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance() : result_;
}
}
/**
*
* type of the result
*
*
* .daml_lf_1.Type result = 2[json_name = "result"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Type.Fun)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Type.Fun)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Fun parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Fun(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ForallOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Type.Forall)
com.google.protobuf.MessageOrBuilder {
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
java.util.List
getVarsList();
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind getVars(int index);
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
int getVarsCount();
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKindOrBuilder>
getVarsOrBuilderList();
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKindOrBuilder getVarsOrBuilder(
int index);
/**
*
* Body of the quantification
*
*
* .daml_lf_1.Type body = 2[json_name = "body"];
*/
boolean hasBody();
/**
*
* Body of the quantification
*
*
* .daml_lf_1.Type body = 2[json_name = "body"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type getBody();
/**
*
* Body of the quantification
*
*
* .daml_lf_1.Type body = 2[json_name = "body"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getBodyOrBuilder();
}
/**
*
* Universal quantification 'TyForAll'
*
*
* Protobuf type {@code daml_lf_1.Type.Forall}
*/
public static final class Forall extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Type.Forall)
ForallOrBuilder {
private static final long serialVersionUID = 0L;
// Use Forall.newBuilder() to construct.
private Forall(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Forall() {
vars_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Forall();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Forall(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
vars_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
vars_.add(
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.parser(), extensionRegistry));
break;
}
case 18: {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder subBuilder = null;
if (body_ != null) {
subBuilder = body_.toBuilder();
}
body_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(body_);
body_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
vars_ = java.util.Collections.unmodifiableList(vars_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Forall_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Forall_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.class, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.Builder.class);
}
public static final int VARS_FIELD_NUMBER = 1;
private java.util.List vars_;
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public java.util.List getVarsList() {
return vars_;
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKindOrBuilder>
getVarsOrBuilderList() {
return vars_;
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public int getVarsCount() {
return vars_.size();
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind getVars(int index) {
return vars_.get(index);
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKindOrBuilder getVarsOrBuilder(
int index) {
return vars_.get(index);
}
public static final int BODY_FIELD_NUMBER = 2;
private com.digitalasset.daml_lf_1_8.DamlLf1.Type body_;
/**
*
* Body of the quantification
*
*
* .daml_lf_1.Type body = 2[json_name = "body"];
*/
public boolean hasBody() {
return body_ != null;
}
/**
*
* Body of the quantification
*
*
* .daml_lf_1.Type body = 2[json_name = "body"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getBody() {
return body_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance() : body_;
}
/**
*
* Body of the quantification
*
*
* .daml_lf_1.Type body = 2[json_name = "body"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getBodyOrBuilder() {
return getBody();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < vars_.size(); i++) {
output.writeMessage(1, vars_.get(i));
}
if (body_ != null) {
output.writeMessage(2, getBody());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < vars_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, vars_.get(i));
}
if (body_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBody());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall other = (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall) obj;
if (!getVarsList()
.equals(other.getVarsList())) return false;
if (hasBody() != other.hasBody()) return false;
if (hasBody()) {
if (!getBody()
.equals(other.getBody())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getVarsCount() > 0) {
hash = (37 * hash) + VARS_FIELD_NUMBER;
hash = (53 * hash) + getVarsList().hashCode();
}
if (hasBody()) {
hash = (37 * hash) + BODY_FIELD_NUMBER;
hash = (53 * hash) + getBody().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Universal quantification 'TyForAll'
*
*
* Protobuf type {@code daml_lf_1.Type.Forall}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Type.Forall)
com.digitalasset.daml_lf_1_8.DamlLf1.Type.ForallOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Forall_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Forall_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.class, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getVarsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (varsBuilder_ == null) {
vars_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
varsBuilder_.clear();
}
if (bodyBuilder_ == null) {
body_ = null;
} else {
body_ = null;
bodyBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Forall_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall result = new com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall(this);
int from_bitField0_ = bitField0_;
if (varsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
vars_ = java.util.Collections.unmodifiableList(vars_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.vars_ = vars_;
} else {
result.vars_ = varsBuilder_.build();
}
if (bodyBuilder_ == null) {
result.body_ = body_;
} else {
result.body_ = bodyBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.getDefaultInstance()) return this;
if (varsBuilder_ == null) {
if (!other.vars_.isEmpty()) {
if (vars_.isEmpty()) {
vars_ = other.vars_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureVarsIsMutable();
vars_.addAll(other.vars_);
}
onChanged();
}
} else {
if (!other.vars_.isEmpty()) {
if (varsBuilder_.isEmpty()) {
varsBuilder_.dispose();
varsBuilder_ = null;
vars_ = other.vars_;
bitField0_ = (bitField0_ & ~0x00000001);
varsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getVarsFieldBuilder() : null;
} else {
varsBuilder_.addAllMessages(other.vars_);
}
}
}
if (other.hasBody()) {
mergeBody(other.getBody());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List vars_ =
java.util.Collections.emptyList();
private void ensureVarsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
vars_ = new java.util.ArrayList(vars_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind, com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKindOrBuilder> varsBuilder_;
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public java.util.List getVarsList() {
if (varsBuilder_ == null) {
return java.util.Collections.unmodifiableList(vars_);
} else {
return varsBuilder_.getMessageList();
}
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public int getVarsCount() {
if (varsBuilder_ == null) {
return vars_.size();
} else {
return varsBuilder_.getCount();
}
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind getVars(int index) {
if (varsBuilder_ == null) {
return vars_.get(index);
} else {
return varsBuilder_.getMessage(index);
}
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public Builder setVars(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind value) {
if (varsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVarsIsMutable();
vars_.set(index, value);
onChanged();
} else {
varsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public Builder setVars(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.Builder builderForValue) {
if (varsBuilder_ == null) {
ensureVarsIsMutable();
vars_.set(index, builderForValue.build());
onChanged();
} else {
varsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public Builder addVars(com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind value) {
if (varsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVarsIsMutable();
vars_.add(value);
onChanged();
} else {
varsBuilder_.addMessage(value);
}
return this;
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public Builder addVars(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind value) {
if (varsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVarsIsMutable();
vars_.add(index, value);
onChanged();
} else {
varsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public Builder addVars(
com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.Builder builderForValue) {
if (varsBuilder_ == null) {
ensureVarsIsMutable();
vars_.add(builderForValue.build());
onChanged();
} else {
varsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public Builder addVars(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.Builder builderForValue) {
if (varsBuilder_ == null) {
ensureVarsIsMutable();
vars_.add(index, builderForValue.build());
onChanged();
} else {
varsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public Builder addAllVars(
java.lang.Iterable extends com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind> values) {
if (varsBuilder_ == null) {
ensureVarsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, vars_);
onChanged();
} else {
varsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public Builder clearVars() {
if (varsBuilder_ == null) {
vars_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
varsBuilder_.clear();
}
return this;
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public Builder removeVars(int index) {
if (varsBuilder_ == null) {
ensureVarsIsMutable();
vars_.remove(index);
onChanged();
} else {
varsBuilder_.remove(index);
}
return this;
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.Builder getVarsBuilder(
int index) {
return getVarsFieldBuilder().getBuilder(index);
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKindOrBuilder getVarsOrBuilder(
int index) {
if (varsBuilder_ == null) {
return vars_.get(index); } else {
return varsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKindOrBuilder>
getVarsOrBuilderList() {
if (varsBuilder_ != null) {
return varsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(vars_);
}
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.Builder addVarsBuilder() {
return getVarsFieldBuilder().addBuilder(
com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.getDefaultInstance());
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.Builder addVarsBuilder(
int index) {
return getVarsFieldBuilder().addBuilder(
index, com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.getDefaultInstance());
}
/**
*
* binders of the quantification
* *Must be non-empty*
*
*
* repeated .daml_lf_1.TypeVarWithKind vars = 1[json_name = "vars"];
*/
public java.util.List
getVarsBuilderList() {
return getVarsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind, com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKindOrBuilder>
getVarsFieldBuilder() {
if (varsBuilder_ == null) {
varsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind, com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKind.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeVarWithKindOrBuilder>(
vars_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
vars_ = null;
}
return varsBuilder_;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.Type body_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder> bodyBuilder_;
/**
*
* Body of the quantification
*
*
* .daml_lf_1.Type body = 2[json_name = "body"];
*/
public boolean hasBody() {
return bodyBuilder_ != null || body_ != null;
}
/**
*
* Body of the quantification
*
*
* .daml_lf_1.Type body = 2[json_name = "body"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getBody() {
if (bodyBuilder_ == null) {
return body_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance() : body_;
} else {
return bodyBuilder_.getMessage();
}
}
/**
*
* Body of the quantification
*
*
* .daml_lf_1.Type body = 2[json_name = "body"];
*/
public Builder setBody(com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (bodyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
body_ = value;
onChanged();
} else {
bodyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Body of the quantification
*
*
* .daml_lf_1.Type body = 2[json_name = "body"];
*/
public Builder setBody(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder builderForValue) {
if (bodyBuilder_ == null) {
body_ = builderForValue.build();
onChanged();
} else {
bodyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Body of the quantification
*
*
* .daml_lf_1.Type body = 2[json_name = "body"];
*/
public Builder mergeBody(com.digitalasset.daml_lf_1_8.DamlLf1.Type value) {
if (bodyBuilder_ == null) {
if (body_ != null) {
body_ =
com.digitalasset.daml_lf_1_8.DamlLf1.Type.newBuilder(body_).mergeFrom(value).buildPartial();
} else {
body_ = value;
}
onChanged();
} else {
bodyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Body of the quantification
*
*
* .daml_lf_1.Type body = 2[json_name = "body"];
*/
public Builder clearBody() {
if (bodyBuilder_ == null) {
body_ = null;
onChanged();
} else {
body_ = null;
bodyBuilder_ = null;
}
return this;
}
/**
*
* Body of the quantification
*
*
* .daml_lf_1.Type body = 2[json_name = "body"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder getBodyBuilder() {
onChanged();
return getBodyFieldBuilder().getBuilder();
}
/**
*
* Body of the quantification
*
*
* .daml_lf_1.Type body = 2[json_name = "body"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getBodyOrBuilder() {
if (bodyBuilder_ != null) {
return bodyBuilder_.getMessageOrBuilder();
} else {
return body_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance() : body_;
}
}
/**
*
* Body of the quantification
*
*
* .daml_lf_1.Type body = 2[json_name = "body"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>
getBodyFieldBuilder() {
if (bodyBuilder_ == null) {
bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder>(
getBody(),
getParentForChildren(),
isClean());
body_ = null;
}
return bodyBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Type.Forall)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Type.Forall)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Forall parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Forall(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StructOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Type.Struct)
com.google.protobuf.MessageOrBuilder {
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
java.util.List
getFieldsList();
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType getFields(int index);
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
int getFieldsCount();
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithTypeOrBuilder>
getFieldsOrBuilderList();
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithTypeOrBuilder getFieldsOrBuilder(
int index);
}
/**
*
* Struct type
*
*
* Protobuf type {@code daml_lf_1.Type.Struct}
*/
public static final class Struct extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Type.Struct)
StructOrBuilder {
private static final long serialVersionUID = 0L;
// Use Struct.newBuilder() to construct.
private Struct(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Struct() {
fields_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Struct();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Struct(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
fields_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
fields_.add(
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Struct_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Struct_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.class, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.Builder.class);
}
public static final int FIELDS_FIELD_NUMBER = 1;
private java.util.List fields_;
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public java.util.List getFieldsList() {
return fields_;
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithTypeOrBuilder>
getFieldsOrBuilderList() {
return fields_;
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public int getFieldsCount() {
return fields_.size();
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType getFields(int index) {
return fields_.get(index);
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithTypeOrBuilder getFieldsOrBuilder(
int index) {
return fields_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < fields_.size(); i++) {
output.writeMessage(1, fields_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < fields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, fields_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct other = (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct) obj;
if (!getFieldsList()
.equals(other.getFieldsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getFieldsCount() > 0) {
hash = (37 * hash) + FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getFieldsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Struct type
*
*
* Protobuf type {@code daml_lf_1.Type.Struct}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Type.Struct)
com.digitalasset.daml_lf_1_8.DamlLf1.Type.StructOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Struct_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Struct_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.class, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFieldsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
fieldsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_Struct_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct result = new com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct(this);
int from_bitField0_ = bitField0_;
if (fieldsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.fields_ = fields_;
} else {
result.fields_ = fieldsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.getDefaultInstance()) return this;
if (fieldsBuilder_ == null) {
if (!other.fields_.isEmpty()) {
if (fields_.isEmpty()) {
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFieldsIsMutable();
fields_.addAll(other.fields_);
}
onChanged();
}
} else {
if (!other.fields_.isEmpty()) {
if (fieldsBuilder_.isEmpty()) {
fieldsBuilder_.dispose();
fieldsBuilder_ = null;
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000001);
fieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFieldsFieldBuilder() : null;
} else {
fieldsBuilder_.addAllMessages(other.fields_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List fields_ =
java.util.Collections.emptyList();
private void ensureFieldsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
fields_ = new java.util.ArrayList(fields_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithTypeOrBuilder> fieldsBuilder_;
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public java.util.List getFieldsList() {
if (fieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fields_);
} else {
return fieldsBuilder_.getMessageList();
}
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public int getFieldsCount() {
if (fieldsBuilder_ == null) {
return fields_.size();
} else {
return fieldsBuilder_.getCount();
}
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType getFields(int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index);
} else {
return fieldsBuilder_.getMessage(index);
}
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public Builder setFields(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.set(index, value);
onChanged();
} else {
fieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public Builder setFields(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.set(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public Builder addFields(com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(value);
onChanged();
} else {
fieldsBuilder_.addMessage(value);
}
return this;
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public Builder addFields(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(index, value);
onChanged();
} else {
fieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public Builder addFields(
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public Builder addFields(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public Builder addAllFields(
java.lang.Iterable extends com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType> values) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fields_);
onChanged();
} else {
fieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public Builder clearFields() {
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
fieldsBuilder_.clear();
}
return this;
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public Builder removeFields(int index) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.remove(index);
onChanged();
} else {
fieldsBuilder_.remove(index);
}
return this;
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.Builder getFieldsBuilder(
int index) {
return getFieldsFieldBuilder().getBuilder(index);
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithTypeOrBuilder getFieldsOrBuilder(
int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index); } else {
return fieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithTypeOrBuilder>
getFieldsOrBuilderList() {
if (fieldsBuilder_ != null) {
return fieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fields_);
}
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.Builder addFieldsBuilder() {
return getFieldsFieldBuilder().addBuilder(
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.getDefaultInstance());
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.Builder addFieldsBuilder(
int index) {
return getFieldsFieldBuilder().addBuilder(
index, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.getDefaultInstance());
}
/**
*
* name of the field with their types.
*
*
* repeated .daml_lf_1.FieldWithType fields = 1[json_name = "fields"];
*/
public java.util.List
getFieldsBuilderList() {
return getFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithTypeOrBuilder>
getFieldsFieldBuilder() {
if (fieldsBuilder_ == null) {
fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithType.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithTypeOrBuilder>(
fields_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
fields_ = null;
}
return fieldsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Type.Struct)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Type.Struct)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Struct parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Struct(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int sumCase_ = 0;
private java.lang.Object sum_;
public enum SumCase
implements com.google.protobuf.Internal.EnumLite {
VAR(1),
CON(2),
PRIM(3),
FUN(4),
FORALL(5),
STRUCT(7),
NAT(11),
SYN(12),
SUM_NOT_SET(0);
private final int value;
private SumCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SumCase valueOf(int value) {
return forNumber(value);
}
public static SumCase forNumber(int value) {
switch (value) {
case 1: return VAR;
case 2: return CON;
case 3: return PRIM;
case 4: return FUN;
case 5: return FORALL;
case 7: return STRUCT;
case 11: return NAT;
case 12: return SYN;
case 0: return SUM_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SumCase
getSumCase() {
return SumCase.forNumber(
sumCase_);
}
public static final int VAR_FIELD_NUMBER = 1;
/**
* .daml_lf_1.Type.Var var = 1[json_name = "var"];
*/
public boolean hasVar() {
return sumCase_ == 1;
}
/**
* .daml_lf_1.Type.Var var = 1[json_name = "var"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var getVar() {
if (sumCase_ == 1) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.getDefaultInstance();
}
/**
* .daml_lf_1.Type.Var var = 1[json_name = "var"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.VarOrBuilder getVarOrBuilder() {
if (sumCase_ == 1) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.getDefaultInstance();
}
public static final int CON_FIELD_NUMBER = 2;
/**
* .daml_lf_1.Type.Con con = 2[json_name = "con"];
*/
public boolean hasCon() {
return sumCase_ == 2;
}
/**
* .daml_lf_1.Type.Con con = 2[json_name = "con"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con getCon() {
if (sumCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance();
}
/**
* .daml_lf_1.Type.Con con = 2[json_name = "con"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder getConOrBuilder() {
if (sumCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance();
}
public static final int PRIM_FIELD_NUMBER = 3;
/**
*
* FixMe: renamed
*
*
* .daml_lf_1.Type.Prim prim = 3[json_name = "prim"];
*/
public boolean hasPrim() {
return sumCase_ == 3;
}
/**
*
* FixMe: renamed
*
*
* .daml_lf_1.Type.Prim prim = 3[json_name = "prim"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim getPrim() {
if (sumCase_ == 3) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.getDefaultInstance();
}
/**
*
* FixMe: renamed
*
*
* .daml_lf_1.Type.Prim prim = 3[json_name = "prim"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.PrimOrBuilder getPrimOrBuilder() {
if (sumCase_ == 3) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.getDefaultInstance();
}
public static final int FUN_FIELD_NUMBER = 4;
/**
* .daml_lf_1.Type.Fun fun = 4[json_name = "fun"];
*/
public boolean hasFun() {
return sumCase_ == 4;
}
/**
* .daml_lf_1.Type.Fun fun = 4[json_name = "fun"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun getFun() {
if (sumCase_ == 4) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.getDefaultInstance();
}
/**
* .daml_lf_1.Type.Fun fun = 4[json_name = "fun"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.FunOrBuilder getFunOrBuilder() {
if (sumCase_ == 4) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.getDefaultInstance();
}
public static final int FORALL_FIELD_NUMBER = 5;
/**
* .daml_lf_1.Type.Forall forall = 5[json_name = "forall"];
*/
public boolean hasForall() {
return sumCase_ == 5;
}
/**
* .daml_lf_1.Type.Forall forall = 5[json_name = "forall"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall getForall() {
if (sumCase_ == 5) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.getDefaultInstance();
}
/**
* .daml_lf_1.Type.Forall forall = 5[json_name = "forall"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.ForallOrBuilder getForallOrBuilder() {
if (sumCase_ == 5) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.getDefaultInstance();
}
public static final int STRUCT_FIELD_NUMBER = 7;
/**
* .daml_lf_1.Type.Struct struct = 7[json_name = "struct"];
*/
public boolean hasStruct() {
return sumCase_ == 7;
}
/**
* .daml_lf_1.Type.Struct struct = 7[json_name = "struct"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct getStruct() {
if (sumCase_ == 7) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.getDefaultInstance();
}
/**
* .daml_lf_1.Type.Struct struct = 7[json_name = "struct"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.StructOrBuilder getStructOrBuilder() {
if (sumCase_ == 7) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.getDefaultInstance();
}
public static final int NAT_FIELD_NUMBER = 11;
/**
*
* *Available in versions >= 1.7*
* *Must be between 0 and 37 (bounds inclusive)*
* use standard signed long for future usage.
*
*
* sint64 nat = 11[json_name = "nat"];
*/
public long getNat() {
if (sumCase_ == 11) {
return (java.lang.Long) sum_;
}
return 0L;
}
public static final int SYN_FIELD_NUMBER = 12;
/**
*
* *Available in versions >= 1.8*
*
*
* .daml_lf_1.Type.Syn syn = 12[json_name = "syn"];
*/
public boolean hasSyn() {
return sumCase_ == 12;
}
/**
*
* *Available in versions >= 1.8*
*
*
* .daml_lf_1.Type.Syn syn = 12[json_name = "syn"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn getSyn() {
if (sumCase_ == 12) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.getDefaultInstance();
}
/**
*
* *Available in versions >= 1.8*
*
*
* .daml_lf_1.Type.Syn syn = 12[json_name = "syn"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.SynOrBuilder getSynOrBuilder() {
if (sumCase_ == 12) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (sumCase_ == 1) {
output.writeMessage(1, (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var) sum_);
}
if (sumCase_ == 2) {
output.writeMessage(2, (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con) sum_);
}
if (sumCase_ == 3) {
output.writeMessage(3, (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim) sum_);
}
if (sumCase_ == 4) {
output.writeMessage(4, (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun) sum_);
}
if (sumCase_ == 5) {
output.writeMessage(5, (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall) sum_);
}
if (sumCase_ == 7) {
output.writeMessage(7, (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct) sum_);
}
if (sumCase_ == 11) {
output.writeSInt64(
11, (long)((java.lang.Long) sum_));
}
if (sumCase_ == 12) {
output.writeMessage(12, (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn) sum_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (sumCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var) sum_);
}
if (sumCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con) sum_);
}
if (sumCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim) sum_);
}
if (sumCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun) sum_);
}
if (sumCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall) sum_);
}
if (sumCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct) sum_);
}
if (sumCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(
11, (long)((java.lang.Long) sum_));
}
if (sumCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn) sum_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Type)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Type other = (com.digitalasset.daml_lf_1_8.DamlLf1.Type) obj;
if (!getSumCase().equals(other.getSumCase())) return false;
switch (sumCase_) {
case 1:
if (!getVar()
.equals(other.getVar())) return false;
break;
case 2:
if (!getCon()
.equals(other.getCon())) return false;
break;
case 3:
if (!getPrim()
.equals(other.getPrim())) return false;
break;
case 4:
if (!getFun()
.equals(other.getFun())) return false;
break;
case 5:
if (!getForall()
.equals(other.getForall())) return false;
break;
case 7:
if (!getStruct()
.equals(other.getStruct())) return false;
break;
case 11:
if (getNat()
!= other.getNat()) return false;
break;
case 12:
if (!getSyn()
.equals(other.getSyn())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (sumCase_) {
case 1:
hash = (37 * hash) + VAR_FIELD_NUMBER;
hash = (53 * hash) + getVar().hashCode();
break;
case 2:
hash = (37 * hash) + CON_FIELD_NUMBER;
hash = (53 * hash) + getCon().hashCode();
break;
case 3:
hash = (37 * hash) + PRIM_FIELD_NUMBER;
hash = (53 * hash) + getPrim().hashCode();
break;
case 4:
hash = (37 * hash) + FUN_FIELD_NUMBER;
hash = (53 * hash) + getFun().hashCode();
break;
case 5:
hash = (37 * hash) + FORALL_FIELD_NUMBER;
hash = (53 * hash) + getForall().hashCode();
break;
case 7:
hash = (37 * hash) + STRUCT_FIELD_NUMBER;
hash = (53 * hash) + getStruct().hashCode();
break;
case 11:
hash = (37 * hash) + NAT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNat());
break;
case 12:
hash = (37 * hash) + SYN_FIELD_NUMBER;
hash = (53 * hash) + getSyn().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Type prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Types
*
*
* Protobuf type {@code daml_lf_1.Type}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Type)
com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.class, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Type.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
sumCase_ = 0;
sum_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Type_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Type result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Type result = new com.digitalasset.daml_lf_1_8.DamlLf1.Type(this);
if (sumCase_ == 1) {
if (varBuilder_ == null) {
result.sum_ = sum_;
} else {
result.sum_ = varBuilder_.build();
}
}
if (sumCase_ == 2) {
if (conBuilder_ == null) {
result.sum_ = sum_;
} else {
result.sum_ = conBuilder_.build();
}
}
if (sumCase_ == 3) {
if (primBuilder_ == null) {
result.sum_ = sum_;
} else {
result.sum_ = primBuilder_.build();
}
}
if (sumCase_ == 4) {
if (funBuilder_ == null) {
result.sum_ = sum_;
} else {
result.sum_ = funBuilder_.build();
}
}
if (sumCase_ == 5) {
if (forallBuilder_ == null) {
result.sum_ = sum_;
} else {
result.sum_ = forallBuilder_.build();
}
}
if (sumCase_ == 7) {
if (structBuilder_ == null) {
result.sum_ = sum_;
} else {
result.sum_ = structBuilder_.build();
}
}
if (sumCase_ == 11) {
result.sum_ = sum_;
}
if (sumCase_ == 12) {
if (synBuilder_ == null) {
result.sum_ = sum_;
} else {
result.sum_ = synBuilder_.build();
}
}
result.sumCase_ = sumCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Type) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Type)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Type other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Type.getDefaultInstance()) return this;
switch (other.getSumCase()) {
case VAR: {
mergeVar(other.getVar());
break;
}
case CON: {
mergeCon(other.getCon());
break;
}
case PRIM: {
mergePrim(other.getPrim());
break;
}
case FUN: {
mergeFun(other.getFun());
break;
}
case FORALL: {
mergeForall(other.getForall());
break;
}
case STRUCT: {
mergeStruct(other.getStruct());
break;
}
case NAT: {
setNat(other.getNat());
break;
}
case SYN: {
mergeSyn(other.getSyn());
break;
}
case SUM_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Type parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Type) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int sumCase_ = 0;
private java.lang.Object sum_;
public SumCase
getSumCase() {
return SumCase.forNumber(
sumCase_);
}
public Builder clearSum() {
sumCase_ = 0;
sum_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.VarOrBuilder> varBuilder_;
/**
* .daml_lf_1.Type.Var var = 1[json_name = "var"];
*/
public boolean hasVar() {
return sumCase_ == 1;
}
/**
* .daml_lf_1.Type.Var var = 1[json_name = "var"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var getVar() {
if (varBuilder_ == null) {
if (sumCase_ == 1) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.getDefaultInstance();
} else {
if (sumCase_ == 1) {
return varBuilder_.getMessage();
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.getDefaultInstance();
}
}
/**
* .daml_lf_1.Type.Var var = 1[json_name = "var"];
*/
public Builder setVar(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var value) {
if (varBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sum_ = value;
onChanged();
} else {
varBuilder_.setMessage(value);
}
sumCase_ = 1;
return this;
}
/**
* .daml_lf_1.Type.Var var = 1[json_name = "var"];
*/
public Builder setVar(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.Builder builderForValue) {
if (varBuilder_ == null) {
sum_ = builderForValue.build();
onChanged();
} else {
varBuilder_.setMessage(builderForValue.build());
}
sumCase_ = 1;
return this;
}
/**
* .daml_lf_1.Type.Var var = 1[json_name = "var"];
*/
public Builder mergeVar(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var value) {
if (varBuilder_ == null) {
if (sumCase_ == 1 &&
sum_ != com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.getDefaultInstance()) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.newBuilder((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var) sum_)
.mergeFrom(value).buildPartial();
} else {
sum_ = value;
}
onChanged();
} else {
if (sumCase_ == 1) {
varBuilder_.mergeFrom(value);
}
varBuilder_.setMessage(value);
}
sumCase_ = 1;
return this;
}
/**
* .daml_lf_1.Type.Var var = 1[json_name = "var"];
*/
public Builder clearVar() {
if (varBuilder_ == null) {
if (sumCase_ == 1) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
} else {
if (sumCase_ == 1) {
sumCase_ = 0;
sum_ = null;
}
varBuilder_.clear();
}
return this;
}
/**
* .daml_lf_1.Type.Var var = 1[json_name = "var"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.Builder getVarBuilder() {
return getVarFieldBuilder().getBuilder();
}
/**
* .daml_lf_1.Type.Var var = 1[json_name = "var"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.VarOrBuilder getVarOrBuilder() {
if ((sumCase_ == 1) && (varBuilder_ != null)) {
return varBuilder_.getMessageOrBuilder();
} else {
if (sumCase_ == 1) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.getDefaultInstance();
}
}
/**
* .daml_lf_1.Type.Var var = 1[json_name = "var"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.VarOrBuilder>
getVarFieldBuilder() {
if (varBuilder_ == null) {
if (!(sumCase_ == 1)) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.getDefaultInstance();
}
varBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.VarOrBuilder>(
(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Var) sum_,
getParentForChildren(),
isClean());
sum_ = null;
}
sumCase_ = 1;
onChanged();;
return varBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder> conBuilder_;
/**
* .daml_lf_1.Type.Con con = 2[json_name = "con"];
*/
public boolean hasCon() {
return sumCase_ == 2;
}
/**
* .daml_lf_1.Type.Con con = 2[json_name = "con"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con getCon() {
if (conBuilder_ == null) {
if (sumCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance();
} else {
if (sumCase_ == 2) {
return conBuilder_.getMessage();
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance();
}
}
/**
* .daml_lf_1.Type.Con con = 2[json_name = "con"];
*/
public Builder setCon(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con value) {
if (conBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sum_ = value;
onChanged();
} else {
conBuilder_.setMessage(value);
}
sumCase_ = 2;
return this;
}
/**
* .daml_lf_1.Type.Con con = 2[json_name = "con"];
*/
public Builder setCon(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder builderForValue) {
if (conBuilder_ == null) {
sum_ = builderForValue.build();
onChanged();
} else {
conBuilder_.setMessage(builderForValue.build());
}
sumCase_ = 2;
return this;
}
/**
* .daml_lf_1.Type.Con con = 2[json_name = "con"];
*/
public Builder mergeCon(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con value) {
if (conBuilder_ == null) {
if (sumCase_ == 2 &&
sum_ != com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance()) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.newBuilder((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con) sum_)
.mergeFrom(value).buildPartial();
} else {
sum_ = value;
}
onChanged();
} else {
if (sumCase_ == 2) {
conBuilder_.mergeFrom(value);
}
conBuilder_.setMessage(value);
}
sumCase_ = 2;
return this;
}
/**
* .daml_lf_1.Type.Con con = 2[json_name = "con"];
*/
public Builder clearCon() {
if (conBuilder_ == null) {
if (sumCase_ == 2) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
} else {
if (sumCase_ == 2) {
sumCase_ = 0;
sum_ = null;
}
conBuilder_.clear();
}
return this;
}
/**
* .daml_lf_1.Type.Con con = 2[json_name = "con"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder getConBuilder() {
return getConFieldBuilder().getBuilder();
}
/**
* .daml_lf_1.Type.Con con = 2[json_name = "con"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder getConOrBuilder() {
if ((sumCase_ == 2) && (conBuilder_ != null)) {
return conBuilder_.getMessageOrBuilder();
} else {
if (sumCase_ == 2) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance();
}
}
/**
* .daml_lf_1.Type.Con con = 2[json_name = "con"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder>
getConFieldBuilder() {
if (conBuilder_ == null) {
if (!(sumCase_ == 2)) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance();
}
conBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder>(
(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con) sum_,
getParentForChildren(),
isClean());
sum_ = null;
}
sumCase_ = 2;
onChanged();;
return conBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.PrimOrBuilder> primBuilder_;
/**
*
* FixMe: renamed
*
*
* .daml_lf_1.Type.Prim prim = 3[json_name = "prim"];
*/
public boolean hasPrim() {
return sumCase_ == 3;
}
/**
*
* FixMe: renamed
*
*
* .daml_lf_1.Type.Prim prim = 3[json_name = "prim"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim getPrim() {
if (primBuilder_ == null) {
if (sumCase_ == 3) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.getDefaultInstance();
} else {
if (sumCase_ == 3) {
return primBuilder_.getMessage();
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.getDefaultInstance();
}
}
/**
*
* FixMe: renamed
*
*
* .daml_lf_1.Type.Prim prim = 3[json_name = "prim"];
*/
public Builder setPrim(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim value) {
if (primBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sum_ = value;
onChanged();
} else {
primBuilder_.setMessage(value);
}
sumCase_ = 3;
return this;
}
/**
*
* FixMe: renamed
*
*
* .daml_lf_1.Type.Prim prim = 3[json_name = "prim"];
*/
public Builder setPrim(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.Builder builderForValue) {
if (primBuilder_ == null) {
sum_ = builderForValue.build();
onChanged();
} else {
primBuilder_.setMessage(builderForValue.build());
}
sumCase_ = 3;
return this;
}
/**
*
* FixMe: renamed
*
*
* .daml_lf_1.Type.Prim prim = 3[json_name = "prim"];
*/
public Builder mergePrim(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim value) {
if (primBuilder_ == null) {
if (sumCase_ == 3 &&
sum_ != com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.getDefaultInstance()) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.newBuilder((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim) sum_)
.mergeFrom(value).buildPartial();
} else {
sum_ = value;
}
onChanged();
} else {
if (sumCase_ == 3) {
primBuilder_.mergeFrom(value);
}
primBuilder_.setMessage(value);
}
sumCase_ = 3;
return this;
}
/**
*
* FixMe: renamed
*
*
* .daml_lf_1.Type.Prim prim = 3[json_name = "prim"];
*/
public Builder clearPrim() {
if (primBuilder_ == null) {
if (sumCase_ == 3) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
} else {
if (sumCase_ == 3) {
sumCase_ = 0;
sum_ = null;
}
primBuilder_.clear();
}
return this;
}
/**
*
* FixMe: renamed
*
*
* .daml_lf_1.Type.Prim prim = 3[json_name = "prim"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.Builder getPrimBuilder() {
return getPrimFieldBuilder().getBuilder();
}
/**
*
* FixMe: renamed
*
*
* .daml_lf_1.Type.Prim prim = 3[json_name = "prim"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.PrimOrBuilder getPrimOrBuilder() {
if ((sumCase_ == 3) && (primBuilder_ != null)) {
return primBuilder_.getMessageOrBuilder();
} else {
if (sumCase_ == 3) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.getDefaultInstance();
}
}
/**
*
* FixMe: renamed
*
*
* .daml_lf_1.Type.Prim prim = 3[json_name = "prim"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.PrimOrBuilder>
getPrimFieldBuilder() {
if (primBuilder_ == null) {
if (!(sumCase_ == 3)) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.getDefaultInstance();
}
primBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.PrimOrBuilder>(
(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Prim) sum_,
getParentForChildren(),
isClean());
sum_ = null;
}
sumCase_ = 3;
onChanged();;
return primBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.FunOrBuilder> funBuilder_;
/**
* .daml_lf_1.Type.Fun fun = 4[json_name = "fun"];
*/
public boolean hasFun() {
return sumCase_ == 4;
}
/**
* .daml_lf_1.Type.Fun fun = 4[json_name = "fun"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun getFun() {
if (funBuilder_ == null) {
if (sumCase_ == 4) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.getDefaultInstance();
} else {
if (sumCase_ == 4) {
return funBuilder_.getMessage();
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.getDefaultInstance();
}
}
/**
* .daml_lf_1.Type.Fun fun = 4[json_name = "fun"];
*/
public Builder setFun(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun value) {
if (funBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sum_ = value;
onChanged();
} else {
funBuilder_.setMessage(value);
}
sumCase_ = 4;
return this;
}
/**
* .daml_lf_1.Type.Fun fun = 4[json_name = "fun"];
*/
public Builder setFun(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.Builder builderForValue) {
if (funBuilder_ == null) {
sum_ = builderForValue.build();
onChanged();
} else {
funBuilder_.setMessage(builderForValue.build());
}
sumCase_ = 4;
return this;
}
/**
* .daml_lf_1.Type.Fun fun = 4[json_name = "fun"];
*/
public Builder mergeFun(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun value) {
if (funBuilder_ == null) {
if (sumCase_ == 4 &&
sum_ != com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.getDefaultInstance()) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.newBuilder((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun) sum_)
.mergeFrom(value).buildPartial();
} else {
sum_ = value;
}
onChanged();
} else {
if (sumCase_ == 4) {
funBuilder_.mergeFrom(value);
}
funBuilder_.setMessage(value);
}
sumCase_ = 4;
return this;
}
/**
* .daml_lf_1.Type.Fun fun = 4[json_name = "fun"];
*/
public Builder clearFun() {
if (funBuilder_ == null) {
if (sumCase_ == 4) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
} else {
if (sumCase_ == 4) {
sumCase_ = 0;
sum_ = null;
}
funBuilder_.clear();
}
return this;
}
/**
* .daml_lf_1.Type.Fun fun = 4[json_name = "fun"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.Builder getFunBuilder() {
return getFunFieldBuilder().getBuilder();
}
/**
* .daml_lf_1.Type.Fun fun = 4[json_name = "fun"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.FunOrBuilder getFunOrBuilder() {
if ((sumCase_ == 4) && (funBuilder_ != null)) {
return funBuilder_.getMessageOrBuilder();
} else {
if (sumCase_ == 4) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.getDefaultInstance();
}
}
/**
* .daml_lf_1.Type.Fun fun = 4[json_name = "fun"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.FunOrBuilder>
getFunFieldBuilder() {
if (funBuilder_ == null) {
if (!(sumCase_ == 4)) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.getDefaultInstance();
}
funBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.FunOrBuilder>(
(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Fun) sum_,
getParentForChildren(),
isClean());
sum_ = null;
}
sumCase_ = 4;
onChanged();;
return funBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.ForallOrBuilder> forallBuilder_;
/**
* .daml_lf_1.Type.Forall forall = 5[json_name = "forall"];
*/
public boolean hasForall() {
return sumCase_ == 5;
}
/**
* .daml_lf_1.Type.Forall forall = 5[json_name = "forall"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall getForall() {
if (forallBuilder_ == null) {
if (sumCase_ == 5) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.getDefaultInstance();
} else {
if (sumCase_ == 5) {
return forallBuilder_.getMessage();
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.getDefaultInstance();
}
}
/**
* .daml_lf_1.Type.Forall forall = 5[json_name = "forall"];
*/
public Builder setForall(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall value) {
if (forallBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sum_ = value;
onChanged();
} else {
forallBuilder_.setMessage(value);
}
sumCase_ = 5;
return this;
}
/**
* .daml_lf_1.Type.Forall forall = 5[json_name = "forall"];
*/
public Builder setForall(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.Builder builderForValue) {
if (forallBuilder_ == null) {
sum_ = builderForValue.build();
onChanged();
} else {
forallBuilder_.setMessage(builderForValue.build());
}
sumCase_ = 5;
return this;
}
/**
* .daml_lf_1.Type.Forall forall = 5[json_name = "forall"];
*/
public Builder mergeForall(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall value) {
if (forallBuilder_ == null) {
if (sumCase_ == 5 &&
sum_ != com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.getDefaultInstance()) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.newBuilder((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall) sum_)
.mergeFrom(value).buildPartial();
} else {
sum_ = value;
}
onChanged();
} else {
if (sumCase_ == 5) {
forallBuilder_.mergeFrom(value);
}
forallBuilder_.setMessage(value);
}
sumCase_ = 5;
return this;
}
/**
* .daml_lf_1.Type.Forall forall = 5[json_name = "forall"];
*/
public Builder clearForall() {
if (forallBuilder_ == null) {
if (sumCase_ == 5) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
} else {
if (sumCase_ == 5) {
sumCase_ = 0;
sum_ = null;
}
forallBuilder_.clear();
}
return this;
}
/**
* .daml_lf_1.Type.Forall forall = 5[json_name = "forall"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.Builder getForallBuilder() {
return getForallFieldBuilder().getBuilder();
}
/**
* .daml_lf_1.Type.Forall forall = 5[json_name = "forall"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.ForallOrBuilder getForallOrBuilder() {
if ((sumCase_ == 5) && (forallBuilder_ != null)) {
return forallBuilder_.getMessageOrBuilder();
} else {
if (sumCase_ == 5) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.getDefaultInstance();
}
}
/**
* .daml_lf_1.Type.Forall forall = 5[json_name = "forall"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.ForallOrBuilder>
getForallFieldBuilder() {
if (forallBuilder_ == null) {
if (!(sumCase_ == 5)) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.getDefaultInstance();
}
forallBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.ForallOrBuilder>(
(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Forall) sum_,
getParentForChildren(),
isClean());
sum_ = null;
}
sumCase_ = 5;
onChanged();;
return forallBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.StructOrBuilder> structBuilder_;
/**
* .daml_lf_1.Type.Struct struct = 7[json_name = "struct"];
*/
public boolean hasStruct() {
return sumCase_ == 7;
}
/**
* .daml_lf_1.Type.Struct struct = 7[json_name = "struct"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct getStruct() {
if (structBuilder_ == null) {
if (sumCase_ == 7) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.getDefaultInstance();
} else {
if (sumCase_ == 7) {
return structBuilder_.getMessage();
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.getDefaultInstance();
}
}
/**
* .daml_lf_1.Type.Struct struct = 7[json_name = "struct"];
*/
public Builder setStruct(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct value) {
if (structBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sum_ = value;
onChanged();
} else {
structBuilder_.setMessage(value);
}
sumCase_ = 7;
return this;
}
/**
* .daml_lf_1.Type.Struct struct = 7[json_name = "struct"];
*/
public Builder setStruct(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.Builder builderForValue) {
if (structBuilder_ == null) {
sum_ = builderForValue.build();
onChanged();
} else {
structBuilder_.setMessage(builderForValue.build());
}
sumCase_ = 7;
return this;
}
/**
* .daml_lf_1.Type.Struct struct = 7[json_name = "struct"];
*/
public Builder mergeStruct(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct value) {
if (structBuilder_ == null) {
if (sumCase_ == 7 &&
sum_ != com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.getDefaultInstance()) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.newBuilder((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct) sum_)
.mergeFrom(value).buildPartial();
} else {
sum_ = value;
}
onChanged();
} else {
if (sumCase_ == 7) {
structBuilder_.mergeFrom(value);
}
structBuilder_.setMessage(value);
}
sumCase_ = 7;
return this;
}
/**
* .daml_lf_1.Type.Struct struct = 7[json_name = "struct"];
*/
public Builder clearStruct() {
if (structBuilder_ == null) {
if (sumCase_ == 7) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
} else {
if (sumCase_ == 7) {
sumCase_ = 0;
sum_ = null;
}
structBuilder_.clear();
}
return this;
}
/**
* .daml_lf_1.Type.Struct struct = 7[json_name = "struct"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.Builder getStructBuilder() {
return getStructFieldBuilder().getBuilder();
}
/**
* .daml_lf_1.Type.Struct struct = 7[json_name = "struct"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.StructOrBuilder getStructOrBuilder() {
if ((sumCase_ == 7) && (structBuilder_ != null)) {
return structBuilder_.getMessageOrBuilder();
} else {
if (sumCase_ == 7) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.getDefaultInstance();
}
}
/**
* .daml_lf_1.Type.Struct struct = 7[json_name = "struct"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.StructOrBuilder>
getStructFieldBuilder() {
if (structBuilder_ == null) {
if (!(sumCase_ == 7)) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.getDefaultInstance();
}
structBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.StructOrBuilder>(
(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Struct) sum_,
getParentForChildren(),
isClean());
sum_ = null;
}
sumCase_ = 7;
onChanged();;
return structBuilder_;
}
/**
*
* *Available in versions >= 1.7*
* *Must be between 0 and 37 (bounds inclusive)*
* use standard signed long for future usage.
*
*
* sint64 nat = 11[json_name = "nat"];
*/
public long getNat() {
if (sumCase_ == 11) {
return (java.lang.Long) sum_;
}
return 0L;
}
/**
*
* *Available in versions >= 1.7*
* *Must be between 0 and 37 (bounds inclusive)*
* use standard signed long for future usage.
*
*
* sint64 nat = 11[json_name = "nat"];
*/
public Builder setNat(long value) {
sumCase_ = 11;
sum_ = value;
onChanged();
return this;
}
/**
*
* *Available in versions >= 1.7*
* *Must be between 0 and 37 (bounds inclusive)*
* use standard signed long for future usage.
*
*
* sint64 nat = 11[json_name = "nat"];
*/
public Builder clearNat() {
if (sumCase_ == 11) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.SynOrBuilder> synBuilder_;
/**
*
* *Available in versions >= 1.8*
*
*
* .daml_lf_1.Type.Syn syn = 12[json_name = "syn"];
*/
public boolean hasSyn() {
return sumCase_ == 12;
}
/**
*
* *Available in versions >= 1.8*
*
*
* .daml_lf_1.Type.Syn syn = 12[json_name = "syn"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn getSyn() {
if (synBuilder_ == null) {
if (sumCase_ == 12) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.getDefaultInstance();
} else {
if (sumCase_ == 12) {
return synBuilder_.getMessage();
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.getDefaultInstance();
}
}
/**
*
* *Available in versions >= 1.8*
*
*
* .daml_lf_1.Type.Syn syn = 12[json_name = "syn"];
*/
public Builder setSyn(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn value) {
if (synBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sum_ = value;
onChanged();
} else {
synBuilder_.setMessage(value);
}
sumCase_ = 12;
return this;
}
/**
*
* *Available in versions >= 1.8*
*
*
* .daml_lf_1.Type.Syn syn = 12[json_name = "syn"];
*/
public Builder setSyn(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.Builder builderForValue) {
if (synBuilder_ == null) {
sum_ = builderForValue.build();
onChanged();
} else {
synBuilder_.setMessage(builderForValue.build());
}
sumCase_ = 12;
return this;
}
/**
*
* *Available in versions >= 1.8*
*
*
* .daml_lf_1.Type.Syn syn = 12[json_name = "syn"];
*/
public Builder mergeSyn(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn value) {
if (synBuilder_ == null) {
if (sumCase_ == 12 &&
sum_ != com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.getDefaultInstance()) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.newBuilder((com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn) sum_)
.mergeFrom(value).buildPartial();
} else {
sum_ = value;
}
onChanged();
} else {
if (sumCase_ == 12) {
synBuilder_.mergeFrom(value);
}
synBuilder_.setMessage(value);
}
sumCase_ = 12;
return this;
}
/**
*
* *Available in versions >= 1.8*
*
*
* .daml_lf_1.Type.Syn syn = 12[json_name = "syn"];
*/
public Builder clearSyn() {
if (synBuilder_ == null) {
if (sumCase_ == 12) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
} else {
if (sumCase_ == 12) {
sumCase_ = 0;
sum_ = null;
}
synBuilder_.clear();
}
return this;
}
/**
*
* *Available in versions >= 1.8*
*
*
* .daml_lf_1.Type.Syn syn = 12[json_name = "syn"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.Builder getSynBuilder() {
return getSynFieldBuilder().getBuilder();
}
/**
*
* *Available in versions >= 1.8*
*
*
* .daml_lf_1.Type.Syn syn = 12[json_name = "syn"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.SynOrBuilder getSynOrBuilder() {
if ((sumCase_ == 12) && (synBuilder_ != null)) {
return synBuilder_.getMessageOrBuilder();
} else {
if (sumCase_ == 12) {
return (com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn) sum_;
}
return com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.getDefaultInstance();
}
}
/**
*
* *Available in versions >= 1.8*
*
*
* .daml_lf_1.Type.Syn syn = 12[json_name = "syn"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.SynOrBuilder>
getSynFieldBuilder() {
if (synBuilder_ == null) {
if (!(sumCase_ == 12)) {
sum_ = com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.getDefaultInstance();
}
synBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.SynOrBuilder>(
(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Syn) sum_,
getParentForChildren(),
isClean());
sum_ = null;
}
sumCase_ = 12;
onChanged();;
return synBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Type)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Type)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Type DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Type();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Type getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Type parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Type(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Type getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PrimLitOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.PrimLit)
com.google.protobuf.MessageOrBuilder {
/**
*
* 64-bit integer literal ('LitInt64')
*
*
* sint64 int64 = 1[json_name = "int64"];
*/
long getInt64();
/**
*
* *Must be a valid representation of decimal*
*
*
* string decimal_str = 2[json_name = "decimalStr"];
*/
java.lang.String getDecimalStr();
/**
*
* *Must be a valid representation of decimal*
*
*
* string decimal_str = 2[json_name = "decimalStr"];
*/
com.google.protobuf.ByteString
getDecimalStrBytes();
/**
*
* *Must be a valid interned numeric */
*
*
* int32 numeric_interned_str = 10[json_name = "numericInternedStr"];
*/
int getNumericInternedStr();
/**
*
* *Available in version < 1.7*
*
*
* string text_str = 4[json_name = "textStr"];
*/
java.lang.String getTextStr();
/**
*
* *Available in version < 1.7*
*
*
* string text_str = 4[json_name = "textStr"];
*/
com.google.protobuf.ByteString
getTextStrBytes();
/**
*
* *Must be a valid interned text*
*
*
* int32 text_interned_str = 11[json_name = "textInternedStr"];
*/
int getTextInternedStr();
/**
*
* *Must be a valid timestamp*
*
*
* sfixed64 timestamp = 5[json_name = "timestamp"];
*/
long getTimestamp();
/**
*
* *Must be a valid PartyId string*
*
*
* string party_str = 7[json_name = "partyStr"];
*/
java.lang.String getPartyStr();
/**
*
* *Must be a valid PartyId string*
*
*
* string party_str = 7[json_name = "partyStr"];
*/
com.google.protobuf.ByteString
getPartyStrBytes();
/**
*
* *Must be a valid interned PartyId string*
*
*
* int32 party_interned_str = 12[json_name = "partyInternedStr"];
*/
int getPartyInternedStr();
/**
*
* *Must be a valid date*
*
*
* int32 date = 8[json_name = "date"];
*/
int getDate();
public com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit.SumCase getSumCase();
}
/**
*
* Builtin literals
* FixMe: Renamed
*
*
* Protobuf type {@code daml_lf_1.PrimLit}
*/
public static final class PrimLit extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.PrimLit)
PrimLitOrBuilder {
private static final long serialVersionUID = 0L;
// Use PrimLit.newBuilder() to construct.
private PrimLit(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PrimLit() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PrimLit();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PrimLit(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
sumCase_ = 1;
sum_ = input.readSInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
sumCase_ = 2;
sum_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
sumCase_ = 4;
sum_ = s;
break;
}
case 41: {
sumCase_ = 5;
sum_ = input.readSFixed64();
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
sumCase_ = 7;
sum_ = s;
break;
}
case 64: {
sumCase_ = 8;
sum_ = input.readInt32();
break;
}
case 80: {
sumCase_ = 10;
sum_ = input.readInt32();
break;
}
case 88: {
sumCase_ = 11;
sum_ = input.readInt32();
break;
}
case 96: {
sumCase_ = 12;
sum_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_PrimLit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_PrimLit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit.class, com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit.Builder.class);
}
private int sumCase_ = 0;
private java.lang.Object sum_;
public enum SumCase
implements com.google.protobuf.Internal.EnumLite {
INT64(1),
DECIMAL_STR(2),
NUMERIC_INTERNED_STR(10),
TEXT_STR(4),
TEXT_INTERNED_STR(11),
TIMESTAMP(5),
PARTY_STR(7),
PARTY_INTERNED_STR(12),
DATE(8),
SUM_NOT_SET(0);
private final int value;
private SumCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SumCase valueOf(int value) {
return forNumber(value);
}
public static SumCase forNumber(int value) {
switch (value) {
case 1: return INT64;
case 2: return DECIMAL_STR;
case 10: return NUMERIC_INTERNED_STR;
case 4: return TEXT_STR;
case 11: return TEXT_INTERNED_STR;
case 5: return TIMESTAMP;
case 7: return PARTY_STR;
case 12: return PARTY_INTERNED_STR;
case 8: return DATE;
case 0: return SUM_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SumCase
getSumCase() {
return SumCase.forNumber(
sumCase_);
}
public static final int INT64_FIELD_NUMBER = 1;
/**
*
* 64-bit integer literal ('LitInt64')
*
*
* sint64 int64 = 1[json_name = "int64"];
*/
public long getInt64() {
if (sumCase_ == 1) {
return (java.lang.Long) sum_;
}
return 0L;
}
public static final int DECIMAL_STR_FIELD_NUMBER = 2;
/**
*
* *Must be a valid representation of decimal*
*
*
* string decimal_str = 2[json_name = "decimalStr"];
*/
public java.lang.String getDecimalStr() {
java.lang.Object ref = "";
if (sumCase_ == 2) {
ref = sum_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (sumCase_ == 2) {
sum_ = s;
}
return s;
}
}
/**
*
* *Must be a valid representation of decimal*
*
*
* string decimal_str = 2[json_name = "decimalStr"];
*/
public com.google.protobuf.ByteString
getDecimalStrBytes() {
java.lang.Object ref = "";
if (sumCase_ == 2) {
ref = sum_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (sumCase_ == 2) {
sum_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NUMERIC_INTERNED_STR_FIELD_NUMBER = 10;
/**
*
* *Must be a valid interned numeric */
*
*
* int32 numeric_interned_str = 10[json_name = "numericInternedStr"];
*/
public int getNumericInternedStr() {
if (sumCase_ == 10) {
return (java.lang.Integer) sum_;
}
return 0;
}
public static final int TEXT_STR_FIELD_NUMBER = 4;
/**
*
* *Available in version < 1.7*
*
*
* string text_str = 4[json_name = "textStr"];
*/
public java.lang.String getTextStr() {
java.lang.Object ref = "";
if (sumCase_ == 4) {
ref = sum_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (sumCase_ == 4) {
sum_ = s;
}
return s;
}
}
/**
*
* *Available in version < 1.7*
*
*
* string text_str = 4[json_name = "textStr"];
*/
public com.google.protobuf.ByteString
getTextStrBytes() {
java.lang.Object ref = "";
if (sumCase_ == 4) {
ref = sum_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (sumCase_ == 4) {
sum_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TEXT_INTERNED_STR_FIELD_NUMBER = 11;
/**
*
* *Must be a valid interned text*
*
*
* int32 text_interned_str = 11[json_name = "textInternedStr"];
*/
public int getTextInternedStr() {
if (sumCase_ == 11) {
return (java.lang.Integer) sum_;
}
return 0;
}
public static final int TIMESTAMP_FIELD_NUMBER = 5;
/**
*
* *Must be a valid timestamp*
*
*
* sfixed64 timestamp = 5[json_name = "timestamp"];
*/
public long getTimestamp() {
if (sumCase_ == 5) {
return (java.lang.Long) sum_;
}
return 0L;
}
public static final int PARTY_STR_FIELD_NUMBER = 7;
/**
*
* *Must be a valid PartyId string*
*
*
* string party_str = 7[json_name = "partyStr"];
*/
public java.lang.String getPartyStr() {
java.lang.Object ref = "";
if (sumCase_ == 7) {
ref = sum_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (sumCase_ == 7) {
sum_ = s;
}
return s;
}
}
/**
*
* *Must be a valid PartyId string*
*
*
* string party_str = 7[json_name = "partyStr"];
*/
public com.google.protobuf.ByteString
getPartyStrBytes() {
java.lang.Object ref = "";
if (sumCase_ == 7) {
ref = sum_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (sumCase_ == 7) {
sum_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARTY_INTERNED_STR_FIELD_NUMBER = 12;
/**
*
* *Must be a valid interned PartyId string*
*
*
* int32 party_interned_str = 12[json_name = "partyInternedStr"];
*/
public int getPartyInternedStr() {
if (sumCase_ == 12) {
return (java.lang.Integer) sum_;
}
return 0;
}
public static final int DATE_FIELD_NUMBER = 8;
/**
*
* *Must be a valid date*
*
*
* int32 date = 8[json_name = "date"];
*/
public int getDate() {
if (sumCase_ == 8) {
return (java.lang.Integer) sum_;
}
return 0;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (sumCase_ == 1) {
output.writeSInt64(
1, (long)((java.lang.Long) sum_));
}
if (sumCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sum_);
}
if (sumCase_ == 4) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sum_);
}
if (sumCase_ == 5) {
output.writeSFixed64(
5, (long)((java.lang.Long) sum_));
}
if (sumCase_ == 7) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, sum_);
}
if (sumCase_ == 8) {
output.writeInt32(
8, (int)((java.lang.Integer) sum_));
}
if (sumCase_ == 10) {
output.writeInt32(
10, (int)((java.lang.Integer) sum_));
}
if (sumCase_ == 11) {
output.writeInt32(
11, (int)((java.lang.Integer) sum_));
}
if (sumCase_ == 12) {
output.writeInt32(
12, (int)((java.lang.Integer) sum_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (sumCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(
1, (long)((java.lang.Long) sum_));
}
if (sumCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sum_);
}
if (sumCase_ == 4) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sum_);
}
if (sumCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(
5, (long)((java.lang.Long) sum_));
}
if (sumCase_ == 7) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, sum_);
}
if (sumCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
8, (int)((java.lang.Integer) sum_));
}
if (sumCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
10, (int)((java.lang.Integer) sum_));
}
if (sumCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
11, (int)((java.lang.Integer) sum_));
}
if (sumCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
12, (int)((java.lang.Integer) sum_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit other = (com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit) obj;
if (!getSumCase().equals(other.getSumCase())) return false;
switch (sumCase_) {
case 1:
if (getInt64()
!= other.getInt64()) return false;
break;
case 2:
if (!getDecimalStr()
.equals(other.getDecimalStr())) return false;
break;
case 10:
if (getNumericInternedStr()
!= other.getNumericInternedStr()) return false;
break;
case 4:
if (!getTextStr()
.equals(other.getTextStr())) return false;
break;
case 11:
if (getTextInternedStr()
!= other.getTextInternedStr()) return false;
break;
case 5:
if (getTimestamp()
!= other.getTimestamp()) return false;
break;
case 7:
if (!getPartyStr()
.equals(other.getPartyStr())) return false;
break;
case 12:
if (getPartyInternedStr()
!= other.getPartyInternedStr()) return false;
break;
case 8:
if (getDate()
!= other.getDate()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (sumCase_) {
case 1:
hash = (37 * hash) + INT64_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInt64());
break;
case 2:
hash = (37 * hash) + DECIMAL_STR_FIELD_NUMBER;
hash = (53 * hash) + getDecimalStr().hashCode();
break;
case 10:
hash = (37 * hash) + NUMERIC_INTERNED_STR_FIELD_NUMBER;
hash = (53 * hash) + getNumericInternedStr();
break;
case 4:
hash = (37 * hash) + TEXT_STR_FIELD_NUMBER;
hash = (53 * hash) + getTextStr().hashCode();
break;
case 11:
hash = (37 * hash) + TEXT_INTERNED_STR_FIELD_NUMBER;
hash = (53 * hash) + getTextInternedStr();
break;
case 5:
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
break;
case 7:
hash = (37 * hash) + PARTY_STR_FIELD_NUMBER;
hash = (53 * hash) + getPartyStr().hashCode();
break;
case 12:
hash = (37 * hash) + PARTY_INTERNED_STR_FIELD_NUMBER;
hash = (53 * hash) + getPartyInternedStr();
break;
case 8:
hash = (37 * hash) + DATE_FIELD_NUMBER;
hash = (53 * hash) + getDate();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Builtin literals
* FixMe: Renamed
*
*
* Protobuf type {@code daml_lf_1.PrimLit}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.PrimLit)
com.digitalasset.daml_lf_1_8.DamlLf1.PrimLitOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_PrimLit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_PrimLit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit.class, com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
sumCase_ = 0;
sum_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_PrimLit_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit build() {
com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit result = new com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit(this);
if (sumCase_ == 1) {
result.sum_ = sum_;
}
if (sumCase_ == 2) {
result.sum_ = sum_;
}
if (sumCase_ == 10) {
result.sum_ = sum_;
}
if (sumCase_ == 4) {
result.sum_ = sum_;
}
if (sumCase_ == 11) {
result.sum_ = sum_;
}
if (sumCase_ == 5) {
result.sum_ = sum_;
}
if (sumCase_ == 7) {
result.sum_ = sum_;
}
if (sumCase_ == 12) {
result.sum_ = sum_;
}
if (sumCase_ == 8) {
result.sum_ = sum_;
}
result.sumCase_ = sumCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit.getDefaultInstance()) return this;
switch (other.getSumCase()) {
case INT64: {
setInt64(other.getInt64());
break;
}
case DECIMAL_STR: {
sumCase_ = 2;
sum_ = other.sum_;
onChanged();
break;
}
case NUMERIC_INTERNED_STR: {
setNumericInternedStr(other.getNumericInternedStr());
break;
}
case TEXT_STR: {
sumCase_ = 4;
sum_ = other.sum_;
onChanged();
break;
}
case TEXT_INTERNED_STR: {
setTextInternedStr(other.getTextInternedStr());
break;
}
case TIMESTAMP: {
setTimestamp(other.getTimestamp());
break;
}
case PARTY_STR: {
sumCase_ = 7;
sum_ = other.sum_;
onChanged();
break;
}
case PARTY_INTERNED_STR: {
setPartyInternedStr(other.getPartyInternedStr());
break;
}
case DATE: {
setDate(other.getDate());
break;
}
case SUM_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int sumCase_ = 0;
private java.lang.Object sum_;
public SumCase
getSumCase() {
return SumCase.forNumber(
sumCase_);
}
public Builder clearSum() {
sumCase_ = 0;
sum_ = null;
onChanged();
return this;
}
/**
*
* 64-bit integer literal ('LitInt64')
*
*
* sint64 int64 = 1[json_name = "int64"];
*/
public long getInt64() {
if (sumCase_ == 1) {
return (java.lang.Long) sum_;
}
return 0L;
}
/**
*
* 64-bit integer literal ('LitInt64')
*
*
* sint64 int64 = 1[json_name = "int64"];
*/
public Builder setInt64(long value) {
sumCase_ = 1;
sum_ = value;
onChanged();
return this;
}
/**
*
* 64-bit integer literal ('LitInt64')
*
*
* sint64 int64 = 1[json_name = "int64"];
*/
public Builder clearInt64() {
if (sumCase_ == 1) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
return this;
}
/**
*
* *Must be a valid representation of decimal*
*
*
* string decimal_str = 2[json_name = "decimalStr"];
*/
public java.lang.String getDecimalStr() {
java.lang.Object ref = "";
if (sumCase_ == 2) {
ref = sum_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (sumCase_ == 2) {
sum_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* *Must be a valid representation of decimal*
*
*
* string decimal_str = 2[json_name = "decimalStr"];
*/
public com.google.protobuf.ByteString
getDecimalStrBytes() {
java.lang.Object ref = "";
if (sumCase_ == 2) {
ref = sum_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (sumCase_ == 2) {
sum_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* *Must be a valid representation of decimal*
*
*
* string decimal_str = 2[json_name = "decimalStr"];
*/
public Builder setDecimalStr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sumCase_ = 2;
sum_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid representation of decimal*
*
*
* string decimal_str = 2[json_name = "decimalStr"];
*/
public Builder clearDecimalStr() {
if (sumCase_ == 2) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
return this;
}
/**
*
* *Must be a valid representation of decimal*
*
*
* string decimal_str = 2[json_name = "decimalStr"];
*/
public Builder setDecimalStrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sumCase_ = 2;
sum_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned numeric */
*
*
* int32 numeric_interned_str = 10[json_name = "numericInternedStr"];
*/
public int getNumericInternedStr() {
if (sumCase_ == 10) {
return (java.lang.Integer) sum_;
}
return 0;
}
/**
*
* *Must be a valid interned numeric */
*
*
* int32 numeric_interned_str = 10[json_name = "numericInternedStr"];
*/
public Builder setNumericInternedStr(int value) {
sumCase_ = 10;
sum_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned numeric */
*
*
* int32 numeric_interned_str = 10[json_name = "numericInternedStr"];
*/
public Builder clearNumericInternedStr() {
if (sumCase_ == 10) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
return this;
}
/**
*
* *Available in version < 1.7*
*
*
* string text_str = 4[json_name = "textStr"];
*/
public java.lang.String getTextStr() {
java.lang.Object ref = "";
if (sumCase_ == 4) {
ref = sum_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (sumCase_ == 4) {
sum_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* *Available in version < 1.7*
*
*
* string text_str = 4[json_name = "textStr"];
*/
public com.google.protobuf.ByteString
getTextStrBytes() {
java.lang.Object ref = "";
if (sumCase_ == 4) {
ref = sum_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (sumCase_ == 4) {
sum_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* *Available in version < 1.7*
*
*
* string text_str = 4[json_name = "textStr"];
*/
public Builder setTextStr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sumCase_ = 4;
sum_ = value;
onChanged();
return this;
}
/**
*
* *Available in version < 1.7*
*
*
* string text_str = 4[json_name = "textStr"];
*/
public Builder clearTextStr() {
if (sumCase_ == 4) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
return this;
}
/**
*
* *Available in version < 1.7*
*
*
* string text_str = 4[json_name = "textStr"];
*/
public Builder setTextStrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sumCase_ = 4;
sum_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned text*
*
*
* int32 text_interned_str = 11[json_name = "textInternedStr"];
*/
public int getTextInternedStr() {
if (sumCase_ == 11) {
return (java.lang.Integer) sum_;
}
return 0;
}
/**
*
* *Must be a valid interned text*
*
*
* int32 text_interned_str = 11[json_name = "textInternedStr"];
*/
public Builder setTextInternedStr(int value) {
sumCase_ = 11;
sum_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned text*
*
*
* int32 text_interned_str = 11[json_name = "textInternedStr"];
*/
public Builder clearTextInternedStr() {
if (sumCase_ == 11) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
return this;
}
/**
*
* *Must be a valid timestamp*
*
*
* sfixed64 timestamp = 5[json_name = "timestamp"];
*/
public long getTimestamp() {
if (sumCase_ == 5) {
return (java.lang.Long) sum_;
}
return 0L;
}
/**
*
* *Must be a valid timestamp*
*
*
* sfixed64 timestamp = 5[json_name = "timestamp"];
*/
public Builder setTimestamp(long value) {
sumCase_ = 5;
sum_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid timestamp*
*
*
* sfixed64 timestamp = 5[json_name = "timestamp"];
*/
public Builder clearTimestamp() {
if (sumCase_ == 5) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
return this;
}
/**
*
* *Must be a valid PartyId string*
*
*
* string party_str = 7[json_name = "partyStr"];
*/
public java.lang.String getPartyStr() {
java.lang.Object ref = "";
if (sumCase_ == 7) {
ref = sum_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (sumCase_ == 7) {
sum_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* *Must be a valid PartyId string*
*
*
* string party_str = 7[json_name = "partyStr"];
*/
public com.google.protobuf.ByteString
getPartyStrBytes() {
java.lang.Object ref = "";
if (sumCase_ == 7) {
ref = sum_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (sumCase_ == 7) {
sum_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* *Must be a valid PartyId string*
*
*
* string party_str = 7[json_name = "partyStr"];
*/
public Builder setPartyStr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sumCase_ = 7;
sum_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid PartyId string*
*
*
* string party_str = 7[json_name = "partyStr"];
*/
public Builder clearPartyStr() {
if (sumCase_ == 7) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
return this;
}
/**
*
* *Must be a valid PartyId string*
*
*
* string party_str = 7[json_name = "partyStr"];
*/
public Builder setPartyStrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sumCase_ = 7;
sum_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned PartyId string*
*
*
* int32 party_interned_str = 12[json_name = "partyInternedStr"];
*/
public int getPartyInternedStr() {
if (sumCase_ == 12) {
return (java.lang.Integer) sum_;
}
return 0;
}
/**
*
* *Must be a valid interned PartyId string*
*
*
* int32 party_interned_str = 12[json_name = "partyInternedStr"];
*/
public Builder setPartyInternedStr(int value) {
sumCase_ = 12;
sum_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned PartyId string*
*
*
* int32 party_interned_str = 12[json_name = "partyInternedStr"];
*/
public Builder clearPartyInternedStr() {
if (sumCase_ == 12) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
return this;
}
/**
*
* *Must be a valid date*
*
*
* int32 date = 8[json_name = "date"];
*/
public int getDate() {
if (sumCase_ == 8) {
return (java.lang.Integer) sum_;
}
return 0;
}
/**
*
* *Must be a valid date*
*
*
* int32 date = 8[json_name = "date"];
*/
public Builder setDate(int value) {
sumCase_ = 8;
sum_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid date*
*
*
* int32 date = 8[json_name = "date"];
*/
public Builder clearDate() {
if (sumCase_ == 8) {
sumCase_ = 0;
sum_ = null;
onChanged();
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.PrimLit)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.PrimLit)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PrimLit parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PrimLit(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LocationOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Location)
com.google.protobuf.MessageOrBuilder {
/**
*
* (*optional*), if missing the line is within the current module.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
boolean hasModule();
/**
*
* (*optional*), if missing the line is within the current module.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef getModule();
/**
*
* (*optional*), if missing the line is within the current module.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder();
/**
* .daml_lf_1.Location.Range range = 2[json_name = "range"];
*/
boolean hasRange();
/**
* .daml_lf_1.Location.Range range = 2[json_name = "range"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range getRange();
/**
* .daml_lf_1.Location.Range range = 2[json_name = "range"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Location.RangeOrBuilder getRangeOrBuilder();
}
/**
*
* Source code locations
*
*
* Protobuf type {@code daml_lf_1.Location}
*/
public static final class Location extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Location)
LocationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Location.newBuilder() to construct.
private Location(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Location() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Location();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Location(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder subBuilder = null;
if (module_ != null) {
subBuilder = module_.toBuilder();
}
module_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(module_);
module_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range.Builder subBuilder = null;
if (range_ != null) {
subBuilder = range_.toBuilder();
}
range_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(range_);
range_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Location_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Location_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Location.class, com.digitalasset.daml_lf_1_8.DamlLf1.Location.Builder.class);
}
public interface RangeOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Location.Range)
com.google.protobuf.MessageOrBuilder {
/**
* int32 start_line = 1[json_name = "startLine"];
*/
int getStartLine();
/**
* int32 start_col = 2[json_name = "startCol"];
*/
int getStartCol();
/**
* int32 end_line = 3[json_name = "endLine"];
*/
int getEndLine();
/**
* int32 end_col = 4[json_name = "endCol"];
*/
int getEndCol();
}
/**
*
* 0-indexed start and end line and column numbers.
*
*
* Protobuf type {@code daml_lf_1.Location.Range}
*/
public static final class Range extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Location.Range)
RangeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Range.newBuilder() to construct.
private Range(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Range() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Range();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Range(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
startLine_ = input.readInt32();
break;
}
case 16: {
startCol_ = input.readInt32();
break;
}
case 24: {
endLine_ = input.readInt32();
break;
}
case 32: {
endCol_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Location_Range_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Location_Range_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range.class, com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range.Builder.class);
}
public static final int START_LINE_FIELD_NUMBER = 1;
private int startLine_;
/**
* int32 start_line = 1[json_name = "startLine"];
*/
public int getStartLine() {
return startLine_;
}
public static final int START_COL_FIELD_NUMBER = 2;
private int startCol_;
/**
* int32 start_col = 2[json_name = "startCol"];
*/
public int getStartCol() {
return startCol_;
}
public static final int END_LINE_FIELD_NUMBER = 3;
private int endLine_;
/**
* int32 end_line = 3[json_name = "endLine"];
*/
public int getEndLine() {
return endLine_;
}
public static final int END_COL_FIELD_NUMBER = 4;
private int endCol_;
/**
* int32 end_col = 4[json_name = "endCol"];
*/
public int getEndCol() {
return endCol_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (startLine_ != 0) {
output.writeInt32(1, startLine_);
}
if (startCol_ != 0) {
output.writeInt32(2, startCol_);
}
if (endLine_ != 0) {
output.writeInt32(3, endLine_);
}
if (endCol_ != 0) {
output.writeInt32(4, endCol_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (startLine_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, startLine_);
}
if (startCol_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, startCol_);
}
if (endLine_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, endLine_);
}
if (endCol_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, endCol_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range other = (com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range) obj;
if (getStartLine()
!= other.getStartLine()) return false;
if (getStartCol()
!= other.getStartCol()) return false;
if (getEndLine()
!= other.getEndLine()) return false;
if (getEndCol()
!= other.getEndCol()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + START_LINE_FIELD_NUMBER;
hash = (53 * hash) + getStartLine();
hash = (37 * hash) + START_COL_FIELD_NUMBER;
hash = (53 * hash) + getStartCol();
hash = (37 * hash) + END_LINE_FIELD_NUMBER;
hash = (53 * hash) + getEndLine();
hash = (37 * hash) + END_COL_FIELD_NUMBER;
hash = (53 * hash) + getEndCol();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* 0-indexed start and end line and column numbers.
*
*
* Protobuf type {@code daml_lf_1.Location.Range}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Location.Range)
com.digitalasset.daml_lf_1_8.DamlLf1.Location.RangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Location_Range_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Location_Range_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range.class, com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
startLine_ = 0;
startCol_ = 0;
endLine_ = 0;
endCol_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Location_Range_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range result = new com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range(this);
result.startLine_ = startLine_;
result.startCol_ = startCol_;
result.endLine_ = endLine_;
result.endCol_ = endCol_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range.getDefaultInstance()) return this;
if (other.getStartLine() != 0) {
setStartLine(other.getStartLine());
}
if (other.getStartCol() != 0) {
setStartCol(other.getStartCol());
}
if (other.getEndLine() != 0) {
setEndLine(other.getEndLine());
}
if (other.getEndCol() != 0) {
setEndCol(other.getEndCol());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int startLine_ ;
/**
* int32 start_line = 1[json_name = "startLine"];
*/
public int getStartLine() {
return startLine_;
}
/**
* int32 start_line = 1[json_name = "startLine"];
*/
public Builder setStartLine(int value) {
startLine_ = value;
onChanged();
return this;
}
/**
* int32 start_line = 1[json_name = "startLine"];
*/
public Builder clearStartLine() {
startLine_ = 0;
onChanged();
return this;
}
private int startCol_ ;
/**
* int32 start_col = 2[json_name = "startCol"];
*/
public int getStartCol() {
return startCol_;
}
/**
* int32 start_col = 2[json_name = "startCol"];
*/
public Builder setStartCol(int value) {
startCol_ = value;
onChanged();
return this;
}
/**
* int32 start_col = 2[json_name = "startCol"];
*/
public Builder clearStartCol() {
startCol_ = 0;
onChanged();
return this;
}
private int endLine_ ;
/**
* int32 end_line = 3[json_name = "endLine"];
*/
public int getEndLine() {
return endLine_;
}
/**
* int32 end_line = 3[json_name = "endLine"];
*/
public Builder setEndLine(int value) {
endLine_ = value;
onChanged();
return this;
}
/**
* int32 end_line = 3[json_name = "endLine"];
*/
public Builder clearEndLine() {
endLine_ = 0;
onChanged();
return this;
}
private int endCol_ ;
/**
* int32 end_col = 4[json_name = "endCol"];
*/
public int getEndCol() {
return endCol_;
}
/**
* int32 end_col = 4[json_name = "endCol"];
*/
public Builder setEndCol(int value) {
endCol_ = value;
onChanged();
return this;
}
/**
* int32 end_col = 4[json_name = "endCol"];
*/
public Builder clearEndCol() {
endCol_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Location.Range)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Location.Range)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Range parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Range(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int MODULE_FIELD_NUMBER = 1;
private com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef module_;
/**
*
* (*optional*), if missing the line is within the current module.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public boolean hasModule() {
return module_ != null;
}
/**
*
* (*optional*), if missing the line is within the current module.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef getModule() {
return module_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.getDefaultInstance() : module_;
}
/**
*
* (*optional*), if missing the line is within the current module.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() {
return getModule();
}
public static final int RANGE_FIELD_NUMBER = 2;
private com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range range_;
/**
* .daml_lf_1.Location.Range range = 2[json_name = "range"];
*/
public boolean hasRange() {
return range_ != null;
}
/**
* .daml_lf_1.Location.Range range = 2[json_name = "range"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range getRange() {
return range_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range.getDefaultInstance() : range_;
}
/**
* .daml_lf_1.Location.Range range = 2[json_name = "range"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Location.RangeOrBuilder getRangeOrBuilder() {
return getRange();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (module_ != null) {
output.writeMessage(1, getModule());
}
if (range_ != null) {
output.writeMessage(2, getRange());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (module_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getModule());
}
if (range_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRange());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Location)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Location other = (com.digitalasset.daml_lf_1_8.DamlLf1.Location) obj;
if (hasModule() != other.hasModule()) return false;
if (hasModule()) {
if (!getModule()
.equals(other.getModule())) return false;
}
if (hasRange() != other.hasRange()) return false;
if (hasRange()) {
if (!getRange()
.equals(other.getRange())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasModule()) {
hash = (37 * hash) + MODULE_FIELD_NUMBER;
hash = (53 * hash) + getModule().hashCode();
}
if (hasRange()) {
hash = (37 * hash) + RANGE_FIELD_NUMBER;
hash = (53 * hash) + getRange().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Location prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Source code locations
*
*
* Protobuf type {@code daml_lf_1.Location}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Location)
com.digitalasset.daml_lf_1_8.DamlLf1.LocationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Location_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Location_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Location.class, com.digitalasset.daml_lf_1_8.DamlLf1.Location.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Location.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (moduleBuilder_ == null) {
module_ = null;
} else {
module_ = null;
moduleBuilder_ = null;
}
if (rangeBuilder_ == null) {
range_ = null;
} else {
range_ = null;
rangeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Location_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Location getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Location.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Location build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Location result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Location buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Location result = new com.digitalasset.daml_lf_1_8.DamlLf1.Location(this);
if (moduleBuilder_ == null) {
result.module_ = module_;
} else {
result.module_ = moduleBuilder_.build();
}
if (rangeBuilder_ == null) {
result.range_ = range_;
} else {
result.range_ = rangeBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Location) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Location)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Location other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Location.getDefaultInstance()) return this;
if (other.hasModule()) {
mergeModule(other.getModule());
}
if (other.hasRange()) {
mergeRange(other.getRange());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Location parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Location) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef module_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder> moduleBuilder_;
/**
*
* (*optional*), if missing the line is within the current module.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public boolean hasModule() {
return moduleBuilder_ != null || module_ != null;
}
/**
*
* (*optional*), if missing the line is within the current module.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef getModule() {
if (moduleBuilder_ == null) {
return module_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.getDefaultInstance() : module_;
} else {
return moduleBuilder_.getMessage();
}
}
/**
*
* (*optional*), if missing the line is within the current module.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public Builder setModule(com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef value) {
if (moduleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
module_ = value;
onChanged();
} else {
moduleBuilder_.setMessage(value);
}
return this;
}
/**
*
* (*optional*), if missing the line is within the current module.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public Builder setModule(
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder builderForValue) {
if (moduleBuilder_ == null) {
module_ = builderForValue.build();
onChanged();
} else {
moduleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* (*optional*), if missing the line is within the current module.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public Builder mergeModule(com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef value) {
if (moduleBuilder_ == null) {
if (module_ != null) {
module_ =
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.newBuilder(module_).mergeFrom(value).buildPartial();
} else {
module_ = value;
}
onChanged();
} else {
moduleBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* (*optional*), if missing the line is within the current module.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public Builder clearModule() {
if (moduleBuilder_ == null) {
module_ = null;
onChanged();
} else {
module_ = null;
moduleBuilder_ = null;
}
return this;
}
/**
*
* (*optional*), if missing the line is within the current module.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder getModuleBuilder() {
onChanged();
return getModuleFieldBuilder().getBuilder();
}
/**
*
* (*optional*), if missing the line is within the current module.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder getModuleOrBuilder() {
if (moduleBuilder_ != null) {
return moduleBuilder_.getMessageOrBuilder();
} else {
return module_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.getDefaultInstance() : module_;
}
}
/**
*
* (*optional*), if missing the line is within the current module.
*
*
* .daml_lf_1.ModuleRef module = 1[json_name = "module"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder>
getModuleFieldBuilder() {
if (moduleBuilder_ == null) {
moduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRef.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ModuleRefOrBuilder>(
getModule(),
getParentForChildren(),
isClean());
module_ = null;
}
return moduleBuilder_;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range range_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range, com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Location.RangeOrBuilder> rangeBuilder_;
/**
* .daml_lf_1.Location.Range range = 2[json_name = "range"];
*/
public boolean hasRange() {
return rangeBuilder_ != null || range_ != null;
}
/**
* .daml_lf_1.Location.Range range = 2[json_name = "range"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range getRange() {
if (rangeBuilder_ == null) {
return range_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range.getDefaultInstance() : range_;
} else {
return rangeBuilder_.getMessage();
}
}
/**
* .daml_lf_1.Location.Range range = 2[json_name = "range"];
*/
public Builder setRange(com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range value) {
if (rangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
range_ = value;
onChanged();
} else {
rangeBuilder_.setMessage(value);
}
return this;
}
/**
* .daml_lf_1.Location.Range range = 2[json_name = "range"];
*/
public Builder setRange(
com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range.Builder builderForValue) {
if (rangeBuilder_ == null) {
range_ = builderForValue.build();
onChanged();
} else {
rangeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .daml_lf_1.Location.Range range = 2[json_name = "range"];
*/
public Builder mergeRange(com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range value) {
if (rangeBuilder_ == null) {
if (range_ != null) {
range_ =
com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range.newBuilder(range_).mergeFrom(value).buildPartial();
} else {
range_ = value;
}
onChanged();
} else {
rangeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .daml_lf_1.Location.Range range = 2[json_name = "range"];
*/
public Builder clearRange() {
if (rangeBuilder_ == null) {
range_ = null;
onChanged();
} else {
range_ = null;
rangeBuilder_ = null;
}
return this;
}
/**
* .daml_lf_1.Location.Range range = 2[json_name = "range"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range.Builder getRangeBuilder() {
onChanged();
return getRangeFieldBuilder().getBuilder();
}
/**
* .daml_lf_1.Location.Range range = 2[json_name = "range"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Location.RangeOrBuilder getRangeOrBuilder() {
if (rangeBuilder_ != null) {
return rangeBuilder_.getMessageOrBuilder();
} else {
return range_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range.getDefaultInstance() : range_;
}
}
/**
* .daml_lf_1.Location.Range range = 2[json_name = "range"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range, com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Location.RangeOrBuilder>
getRangeFieldBuilder() {
if (rangeBuilder_ == null) {
rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range, com.digitalasset.daml_lf_1_8.DamlLf1.Location.Range.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Location.RangeOrBuilder>(
getRange(),
getParentForChildren(),
isClean());
range_ = null;
}
return rangeBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Location)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Location)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Location DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Location();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Location getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Location parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Location(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Location getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExprOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Expr)
com.google.protobuf.MessageOrBuilder {
/**
*
* Location of the expression in the DAML code source.
* Optional
*
*
* .daml_lf_1.Location location = 25[json_name = "location"];
*/
boolean hasLocation();
/**
*
* Location of the expression in the DAML code source.
* Optional
*
*
* .daml_lf_1.Location location = 25[json_name = "location"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Location getLocation();
/**
*
* Location of the expression in the DAML code source.
* Optional
*
*
* .daml_lf_1.Location location = 25[json_name = "location"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.LocationOrBuilder getLocationOrBuilder();
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
java.lang.String getVarStr();
/**
*
* *Must be a valid identifier*
*
*
* string var_str = 1[json_name = "varStr"];
*/
com.google.protobuf.ByteString
getVarStrBytes();
/**
*
* *Must be a valid interned identifier*
*
*
* int32 var_interned_str = 29[json_name = "varInternedStr"];
*/
int getVarInternedStr();
/**
*
* Defined value ('ExpVal')
*
*
* .daml_lf_1.ValName val = 2[json_name = "val"];
*/
boolean hasVal();
/**
*
* Defined value ('ExpVal')
*
*
* .daml_lf_1.ValName val = 2[json_name = "val"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ValName getVal();
/**
*
* Defined value ('ExpVal')
*
*
* .daml_lf_1.ValName val = 2[json_name = "val"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ValNameOrBuilder getValOrBuilder();
/**
*
* Builtin function ('ExpBuiltin')
*
*
* .daml_lf_1.BuiltinFunction builtin = 3[json_name = "builtin"];
*/
int getBuiltinValue();
/**
*
* Builtin function ('ExpBuiltin')
*
*
* .daml_lf_1.BuiltinFunction builtin = 3[json_name = "builtin"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.BuiltinFunction getBuiltin();
/**
*
* Primitive constructor ('()', 'False' or 'True')
*
*
* .daml_lf_1.PrimCon prim_con = 4[json_name = "primCon"];
*/
int getPrimConValue();
/**
*
* Primitive constructor ('()', 'False' or 'True')
*
*
* .daml_lf_1.PrimCon prim_con = 4[json_name = "primCon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.PrimCon getPrimCon();
/**
*
* Builtin literal ('ExpBuiltin')
*
*
* .daml_lf_1.PrimLit prim_lit = 5[json_name = "primLit"];
*/
boolean hasPrimLit();
/**
*
* Builtin literal ('ExpBuiltin')
*
*
* .daml_lf_1.PrimLit prim_lit = 5[json_name = "primLit"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit getPrimLit();
/**
*
* Builtin literal ('ExpBuiltin')
*
*
* .daml_lf_1.PrimLit prim_lit = 5[json_name = "primLit"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.PrimLitOrBuilder getPrimLitOrBuilder();
/**
*
* Record construction ('ExpRecCon')
*
*
* .daml_lf_1.Expr.RecCon rec_con = 6[json_name = "recCon"];
*/
boolean hasRecCon();
/**
*
* Record construction ('ExpRecCon')
*
*
* .daml_lf_1.Expr.RecCon rec_con = 6[json_name = "recCon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon getRecCon();
/**
*
* Record construction ('ExpRecCon')
*
*
* .daml_lf_1.Expr.RecCon rec_con = 6[json_name = "recCon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecConOrBuilder getRecConOrBuilder();
/**
*
* Record projection ('ExpRecProj')
*
*
* .daml_lf_1.Expr.RecProj rec_proj = 7[json_name = "recProj"];
*/
boolean hasRecProj();
/**
*
* Record projection ('ExpRecProj')
*
*
* .daml_lf_1.Expr.RecProj rec_proj = 7[json_name = "recProj"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj getRecProj();
/**
*
* Record projection ('ExpRecProj')
*
*
* .daml_lf_1.Expr.RecProj rec_proj = 7[json_name = "recProj"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProjOrBuilder getRecProjOrBuilder();
/**
*
* Record udpate ('ExpRecUpdate')
*
*
* .daml_lf_1.Expr.RecUpd rec_upd = 22[json_name = "recUpd"];
*/
boolean hasRecUpd();
/**
*
* Record udpate ('ExpRecUpdate')
*
*
* .daml_lf_1.Expr.RecUpd rec_upd = 22[json_name = "recUpd"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd getRecUpd();
/**
*
* Record udpate ('ExpRecUpdate')
*
*
* .daml_lf_1.Expr.RecUpd rec_upd = 22[json_name = "recUpd"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpdOrBuilder getRecUpdOrBuilder();
/**
*
* Variant construction ('ExpVariantCon')
*
*
* .daml_lf_1.Expr.VariantCon variant_con = 8[json_name = "variantCon"];
*/
boolean hasVariantCon();
/**
*
* Variant construction ('ExpVariantCon')
*
*
* .daml_lf_1.Expr.VariantCon variant_con = 8[json_name = "variantCon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon getVariantCon();
/**
*
* Variant construction ('ExpVariantCon')
*
*
* .daml_lf_1.Expr.VariantCon variant_con = 8[json_name = "variantCon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantConOrBuilder getVariantConOrBuilder();
/**
*
* Enum construction ('ExpEnumCon')
*
*
* .daml_lf_1.Expr.EnumCon enum_con = 28[json_name = "enumCon"];
*/
boolean hasEnumCon();
/**
*
* Enum construction ('ExpEnumCon')
*
*
* .daml_lf_1.Expr.EnumCon enum_con = 28[json_name = "enumCon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon getEnumCon();
/**
*
* Enum construction ('ExpEnumCon')
*
*
* .daml_lf_1.Expr.EnumCon enum_con = 28[json_name = "enumCon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumConOrBuilder getEnumConOrBuilder();
/**
*
* Struct construction ('ExpStructCon')
*
*
* .daml_lf_1.Expr.StructCon struct_con = 9[json_name = "structCon"];
*/
boolean hasStructCon();
/**
*
* Struct construction ('ExpStructCon')
*
*
* .daml_lf_1.Expr.StructCon struct_con = 9[json_name = "structCon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon getStructCon();
/**
*
* Struct construction ('ExpStructCon')
*
*
* .daml_lf_1.Expr.StructCon struct_con = 9[json_name = "structCon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructConOrBuilder getStructConOrBuilder();
/**
*
* Struct project ('ExpStructProj')
*
*
* .daml_lf_1.Expr.StructProj struct_proj = 10[json_name = "structProj"];
*/
boolean hasStructProj();
/**
*
* Struct project ('ExpStructProj')
*
*
* .daml_lf_1.Expr.StructProj struct_proj = 10[json_name = "structProj"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj getStructProj();
/**
*
* Struct project ('ExpStructProj')
*
*
* .daml_lf_1.Expr.StructProj struct_proj = 10[json_name = "structProj"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProjOrBuilder getStructProjOrBuilder();
/**
*
* Struct update ('ExpStructUpdate')
*
*
* .daml_lf_1.Expr.StructUpd struct_upd = 23[json_name = "structUpd"];
*/
boolean hasStructUpd();
/**
*
* Struct update ('ExpStructUpdate')
*
*
* .daml_lf_1.Expr.StructUpd struct_upd = 23[json_name = "structUpd"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd getStructUpd();
/**
*
* Struct update ('ExpStructUpdate')
*
*
* .daml_lf_1.Expr.StructUpd struct_upd = 23[json_name = "structUpd"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpdOrBuilder getStructUpdOrBuilder();
/**
*
* Application ('ExpApp')
*
*
* .daml_lf_1.Expr.App app = 11[json_name = "app"];
*/
boolean hasApp();
/**
*
* Application ('ExpApp')
*
*
* .daml_lf_1.Expr.App app = 11[json_name = "app"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.App getApp();
/**
*
* Application ('ExpApp')
*
*
* .daml_lf_1.Expr.App app = 11[json_name = "app"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.AppOrBuilder getAppOrBuilder();
/**
*
* Type Application ('ExpTyApp')
*
*
* .daml_lf_1.Expr.TyApp ty_app = 12[json_name = "tyApp"];
*/
boolean hasTyApp();
/**
*
* Type Application ('ExpTyApp')
*
*
* .daml_lf_1.Expr.TyApp ty_app = 12[json_name = "tyApp"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.TyApp getTyApp();
/**
*
* Type Application ('ExpTyApp')
*
*
* .daml_lf_1.Expr.TyApp ty_app = 12[json_name = "tyApp"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.TyAppOrBuilder getTyAppOrBuilder();
/**
*
* Abstraction ('ExpAbs')
*
*
* .daml_lf_1.Expr.Abs abs = 13[json_name = "abs"];
*/
boolean hasAbs();
/**
*
* Abstraction ('ExpAbs')
*
*
* .daml_lf_1.Expr.Abs abs = 13[json_name = "abs"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Abs getAbs();
/**
*
* Abstraction ('ExpAbs')
*
*
* .daml_lf_1.Expr.Abs abs = 13[json_name = "abs"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.AbsOrBuilder getAbsOrBuilder();
/**
*
* Type Abstraction ('ExpTyAbs')
*
*
* .daml_lf_1.Expr.TyAbs ty_abs = 14[json_name = "tyAbs"];
*/
boolean hasTyAbs();
/**
*
* Type Abstraction ('ExpTyAbs')
*
*
* .daml_lf_1.Expr.TyAbs ty_abs = 14[json_name = "tyAbs"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.TyAbs getTyAbs();
/**
*
* Type Abstraction ('ExpTyAbs')
*
*
* .daml_lf_1.Expr.TyAbs ty_abs = 14[json_name = "tyAbs"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.TyAbsOrBuilder getTyAbsOrBuilder();
/**
*
* Pattern Matching ('ExpCase')
*
*
* .daml_lf_1.Case case = 15[json_name = "case"];
*/
boolean hasCase();
/**
*
* Pattern Matching ('ExpCase')
*
*
* .daml_lf_1.Case case = 15[json_name = "case"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Case getCase();
/**
*
* Pattern Matching ('ExpCase')
*
*
* .daml_lf_1.Case case = 15[json_name = "case"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.CaseOrBuilder getCaseOrBuilder();
/**
*
* Let block ('ExpLet')
*
*
* .daml_lf_1.Block let = 16[json_name = "let"];
*/
boolean hasLet();
/**
*
* Let block ('ExpLet')
*
*
* .daml_lf_1.Block let = 16[json_name = "let"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Block getLet();
/**
*
* Let block ('ExpLet')
*
*
* .daml_lf_1.Block let = 16[json_name = "let"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.BlockOrBuilder getLetOrBuilder();
/**
*
* Empty List ('ExpNil')
*
*
* .daml_lf_1.Expr.Nil nil = 17[json_name = "nil"];
*/
boolean hasNil();
/**
*
* Empty List ('ExpNil')
*
*
* .daml_lf_1.Expr.Nil nil = 17[json_name = "nil"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Nil getNil();
/**
*
* Empty List ('ExpNil')
*
*
* .daml_lf_1.Expr.Nil nil = 17[json_name = "nil"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.NilOrBuilder getNilOrBuilder();
/**
*
* Non Empty list ('ExpCons')
*
*
* .daml_lf_1.Expr.Cons cons = 18[json_name = "cons"];
*/
boolean hasCons();
/**
*
* Non Empty list ('ExpCons')
*
*
* .daml_lf_1.Expr.Cons cons = 18[json_name = "cons"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Cons getCons();
/**
*
* Non Empty list ('ExpCons')
*
*
* .daml_lf_1.Expr.Cons cons = 18[json_name = "cons"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.ConsOrBuilder getConsOrBuilder();
/**
*
* Update expression ('ExpUpdate')
*
*
* .daml_lf_1.Update update = 20[json_name = "update"];
*/
boolean hasUpdate();
/**
*
* Update expression ('ExpUpdate')
*
*
* .daml_lf_1.Update update = 20[json_name = "update"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Update getUpdate();
/**
*
* Update expression ('ExpUpdate')
*
*
* .daml_lf_1.Update update = 20[json_name = "update"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.UpdateOrBuilder getUpdateOrBuilder();
/**
*
* Scenario Expression ('ExpScenario')
*
*
* .daml_lf_1.Scenario scenario = 21[json_name = "scenario"];
*/
boolean hasScenario();
/**
*
* Scenario Expression ('ExpScenario')
*
*
* .daml_lf_1.Scenario scenario = 21[json_name = "scenario"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Scenario getScenario();
/**
*
* Scenario Expression ('ExpScenario')
*
*
* .daml_lf_1.Scenario scenario = 21[json_name = "scenario"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ScenarioOrBuilder getScenarioOrBuilder();
/**
*
* empty optional value ('ExpNone')
* *Available in versions >= 1.1*
*
*
* .daml_lf_1.Expr.OptionalNone optional_none = 26[json_name = "optionalNone"];
*/
boolean hasOptionalNone();
/**
*
* empty optional value ('ExpNone')
* *Available in versions >= 1.1*
*
*
* .daml_lf_1.Expr.OptionalNone optional_none = 26[json_name = "optionalNone"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.OptionalNone getOptionalNone();
/**
*
* empty optional value ('ExpNone')
* *Available in versions >= 1.1*
*
*
* .daml_lf_1.Expr.OptionalNone optional_none = 26[json_name = "optionalNone"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.OptionalNoneOrBuilder getOptionalNoneOrBuilder();
/**
*
* non empty optional value ('ExpSome')
* *Available in versions >= 1.1*
*
*
* .daml_lf_1.Expr.OptionalSome optional_some = 27[json_name = "optionalSome"];
*/
boolean hasOptionalSome();
/**
*
* non empty optional value ('ExpSome')
* *Available in versions >= 1.1*
*
*
* .daml_lf_1.Expr.OptionalSome optional_some = 27[json_name = "optionalSome"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.OptionalSome getOptionalSome();
/**
*
* non empty optional value ('ExpSome')
* *Available in versions >= 1.1*
*
*
* .daml_lf_1.Expr.OptionalSome optional_some = 27[json_name = "optionalSome"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.OptionalSomeOrBuilder getOptionalSomeOrBuilder();
/**
*
* Wrap an arbitrary value in Any ('ExpToAny')
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Expr.ToAny to_any = 30[json_name = "toAny"];
*/
boolean hasToAny();
/**
*
* Wrap an arbitrary value in Any ('ExpToAny')
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Expr.ToAny to_any = 30[json_name = "toAny"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.ToAny getToAny();
/**
*
* Wrap an arbitrary value in Any ('ExpToAny')
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Expr.ToAny to_any = 30[json_name = "toAny"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.ToAnyOrBuilder getToAnyOrBuilder();
/**
*
* Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Expr.FromAny from_any = 31[json_name = "fromAny"];
*/
boolean hasFromAny();
/**
*
* Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Expr.FromAny from_any = 31[json_name = "fromAny"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.FromAny getFromAny();
/**
*
* Extract the given type from Any or return None on type-mismatch ('ExpFromAny')
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Expr.FromAny from_any = 31[json_name = "fromAny"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.FromAnyOrBuilder getFromAnyOrBuilder();
/**
*
* A type representation
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Type type_rep = 32[json_name = "typeRep"];
*/
boolean hasTypeRep();
/**
*
* A type representation
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Type type_rep = 32[json_name = "typeRep"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type getTypeRep();
/**
*
* A type representation
* *Available in versions >= 1.7*
*
*
* .daml_lf_1.Type type_rep = 32[json_name = "typeRep"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.TypeOrBuilder getTypeRepOrBuilder();
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.SumCase getSumCase();
}
/**
*
* Expressions
*
*
* Protobuf type {@code daml_lf_1.Expr}
*/
public static final class Expr extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Expr)
ExprOrBuilder {
private static final long serialVersionUID = 0L;
// Use Expr.newBuilder() to construct.
private Expr(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Expr() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Expr();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Expr(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
sumCase_ = 1;
sum_ = s;
break;
}
case 18: {
com.digitalasset.daml_lf_1_8.DamlLf1.ValName.Builder subBuilder = null;
if (sumCase_ == 2) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.ValName) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.ValName.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.ValName) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 2;
break;
}
case 24: {
int rawValue = input.readEnum();
sumCase_ = 3;
sum_ = rawValue;
break;
}
case 32: {
int rawValue = input.readEnum();
sumCase_ = 4;
sum_ = rawValue;
break;
}
case 42: {
com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit.Builder subBuilder = null;
if (sumCase_ == 5) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.PrimLit) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 5;
break;
}
case 50: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon.Builder subBuilder = null;
if (sumCase_ == 6) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 6;
break;
}
case 58: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj.Builder subBuilder = null;
if (sumCase_ == 7) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 7;
break;
}
case 66: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon.Builder subBuilder = null;
if (sumCase_ == 8) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 8;
break;
}
case 74: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon.Builder subBuilder = null;
if (sumCase_ == 9) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 9;
break;
}
case 82: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj.Builder subBuilder = null;
if (sumCase_ == 10) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 10;
break;
}
case 90: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.App.Builder subBuilder = null;
if (sumCase_ == 11) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.App) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.App.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.App) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 11;
break;
}
case 98: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.TyApp.Builder subBuilder = null;
if (sumCase_ == 12) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.TyApp) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.TyApp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.TyApp) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 12;
break;
}
case 106: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Abs.Builder subBuilder = null;
if (sumCase_ == 13) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Abs) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Abs.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Abs) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 13;
break;
}
case 114: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.TyAbs.Builder subBuilder = null;
if (sumCase_ == 14) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.TyAbs) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.TyAbs.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.TyAbs) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 14;
break;
}
case 122: {
com.digitalasset.daml_lf_1_8.DamlLf1.Case.Builder subBuilder = null;
if (sumCase_ == 15) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Case) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Case.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Case) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 15;
break;
}
case 130: {
com.digitalasset.daml_lf_1_8.DamlLf1.Block.Builder subBuilder = null;
if (sumCase_ == 16) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Block) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Block.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Block) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 16;
break;
}
case 138: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Nil.Builder subBuilder = null;
if (sumCase_ == 17) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Nil) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Nil.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Nil) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 17;
break;
}
case 146: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Cons.Builder subBuilder = null;
if (sumCase_ == 18) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Cons) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Cons.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Cons) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 18;
break;
}
case 162: {
com.digitalasset.daml_lf_1_8.DamlLf1.Update.Builder subBuilder = null;
if (sumCase_ == 20) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Update) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Update.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Update) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 20;
break;
}
case 170: {
com.digitalasset.daml_lf_1_8.DamlLf1.Scenario.Builder subBuilder = null;
if (sumCase_ == 21) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Scenario) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Scenario.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Scenario) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 21;
break;
}
case 178: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd.Builder subBuilder = null;
if (sumCase_ == 22) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 22;
break;
}
case 186: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd.Builder subBuilder = null;
if (sumCase_ == 23) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 23;
break;
}
case 202: {
com.digitalasset.daml_lf_1_8.DamlLf1.Location.Builder subBuilder = null;
if (location_ != null) {
subBuilder = location_.toBuilder();
}
location_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Location.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(location_);
location_ = subBuilder.buildPartial();
}
break;
}
case 210: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.OptionalNone.Builder subBuilder = null;
if (sumCase_ == 26) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.OptionalNone) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.OptionalNone.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.OptionalNone) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 26;
break;
}
case 218: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.OptionalSome.Builder subBuilder = null;
if (sumCase_ == 27) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.OptionalSome) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.OptionalSome.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.OptionalSome) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 27;
break;
}
case 226: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon.Builder subBuilder = null;
if (sumCase_ == 28) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 28;
break;
}
case 232: {
sumCase_ = 29;
sum_ = input.readInt32();
break;
}
case 242: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.ToAny.Builder subBuilder = null;
if (sumCase_ == 30) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.ToAny) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.ToAny.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.ToAny) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 30;
break;
}
case 250: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.FromAny.Builder subBuilder = null;
if (sumCase_ == 31) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.FromAny) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.FromAny.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.FromAny) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 31;
break;
}
case 258: {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Builder subBuilder = null;
if (sumCase_ == 32) {
subBuilder = ((com.digitalasset.daml_lf_1_8.DamlLf1.Type) sum_).toBuilder();
}
sum_ =
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Type) sum_);
sum_ = subBuilder.buildPartial();
}
sumCase_ = 32;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.class, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder.class);
}
public interface RecConOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.RecCon)
com.google.protobuf.MessageOrBuilder {
/**
*
* type of the record being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
boolean hasTycon();
/**
*
* type of the record being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con getTycon();
/**
*
* type of the record being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder getTyconOrBuilder();
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
java.util.List
getFieldsList();
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr getFields(int index);
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
int getFieldsCount();
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExprOrBuilder>
getFieldsOrBuilderList();
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExprOrBuilder getFieldsOrBuilder(
int index);
}
/**
*
* Record construction ('ExpRecCon')
*
*
* Protobuf type {@code daml_lf_1.Expr.RecCon}
*/
public static final class RecCon extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Expr.RecCon)
RecConOrBuilder {
private static final long serialVersionUID = 0L;
// Use RecCon.newBuilder() to construct.
private RecCon(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RecCon() {
fields_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RecCon();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RecCon(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder subBuilder = null;
if (tycon_ != null) {
subBuilder = tycon_.toBuilder();
}
tycon_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tycon_);
tycon_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
fields_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
fields_.add(
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_RecCon_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_RecCon_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon.class, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon.Builder.class);
}
public static final int TYCON_FIELD_NUMBER = 1;
private com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con tycon_;
/**
*
* type of the record being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public boolean hasTycon() {
return tycon_ != null;
}
/**
*
* type of the record being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con getTycon() {
return tycon_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance() : tycon_;
}
/**
*
* type of the record being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() {
return getTycon();
}
public static final int FIELDS_FIELD_NUMBER = 2;
private java.util.List fields_;
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public java.util.List getFieldsList() {
return fields_;
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExprOrBuilder>
getFieldsOrBuilderList() {
return fields_;
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public int getFieldsCount() {
return fields_.size();
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr getFields(int index) {
return fields_.get(index);
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExprOrBuilder getFieldsOrBuilder(
int index) {
return fields_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (tycon_ != null) {
output.writeMessage(1, getTycon());
}
for (int i = 0; i < fields_.size(); i++) {
output.writeMessage(2, fields_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (tycon_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTycon());
}
for (int i = 0; i < fields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, fields_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon other = (com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon) obj;
if (hasTycon() != other.hasTycon()) return false;
if (hasTycon()) {
if (!getTycon()
.equals(other.getTycon())) return false;
}
if (!getFieldsList()
.equals(other.getFieldsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTycon()) {
hash = (37 * hash) + TYCON_FIELD_NUMBER;
hash = (53 * hash) + getTycon().hashCode();
}
if (getFieldsCount() > 0) {
hash = (37 * hash) + FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getFieldsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Record construction ('ExpRecCon')
*
*
* Protobuf type {@code daml_lf_1.Expr.RecCon}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.RecCon)
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecConOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_RecCon_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_RecCon_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon.class, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFieldsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (tyconBuilder_ == null) {
tycon_ = null;
} else {
tycon_ = null;
tyconBuilder_ = null;
}
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
fieldsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_RecCon_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon result = new com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon(this);
int from_bitField0_ = bitField0_;
if (tyconBuilder_ == null) {
result.tycon_ = tycon_;
} else {
result.tycon_ = tyconBuilder_.build();
}
if (fieldsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.fields_ = fields_;
} else {
result.fields_ = fieldsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon.getDefaultInstance()) return this;
if (other.hasTycon()) {
mergeTycon(other.getTycon());
}
if (fieldsBuilder_ == null) {
if (!other.fields_.isEmpty()) {
if (fields_.isEmpty()) {
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFieldsIsMutable();
fields_.addAll(other.fields_);
}
onChanged();
}
} else {
if (!other.fields_.isEmpty()) {
if (fieldsBuilder_.isEmpty()) {
fieldsBuilder_.dispose();
fieldsBuilder_ = null;
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000001);
fieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFieldsFieldBuilder() : null;
} else {
fieldsBuilder_.addAllMessages(other.fields_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con tycon_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder> tyconBuilder_;
/**
*
* type of the record being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public boolean hasTycon() {
return tyconBuilder_ != null || tycon_ != null;
}
/**
*
* type of the record being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con getTycon() {
if (tyconBuilder_ == null) {
return tycon_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance() : tycon_;
} else {
return tyconBuilder_.getMessage();
}
}
/**
*
* type of the record being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public Builder setTycon(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con value) {
if (tyconBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tycon_ = value;
onChanged();
} else {
tyconBuilder_.setMessage(value);
}
return this;
}
/**
*
* type of the record being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public Builder setTycon(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder builderForValue) {
if (tyconBuilder_ == null) {
tycon_ = builderForValue.build();
onChanged();
} else {
tyconBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* type of the record being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public Builder mergeTycon(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con value) {
if (tyconBuilder_ == null) {
if (tycon_ != null) {
tycon_ =
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.newBuilder(tycon_).mergeFrom(value).buildPartial();
} else {
tycon_ = value;
}
onChanged();
} else {
tyconBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* type of the record being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public Builder clearTycon() {
if (tyconBuilder_ == null) {
tycon_ = null;
onChanged();
} else {
tycon_ = null;
tyconBuilder_ = null;
}
return this;
}
/**
*
* type of the record being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder getTyconBuilder() {
onChanged();
return getTyconFieldBuilder().getBuilder();
}
/**
*
* type of the record being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() {
if (tyconBuilder_ != null) {
return tyconBuilder_.getMessageOrBuilder();
} else {
return tycon_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance() : tycon_;
}
}
/**
*
* type of the record being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder>
getTyconFieldBuilder() {
if (tyconBuilder_ == null) {
tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder>(
getTycon(),
getParentForChildren(),
isClean());
tycon_ = null;
}
return tyconBuilder_;
}
private java.util.List fields_ =
java.util.Collections.emptyList();
private void ensureFieldsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
fields_ = new java.util.ArrayList(fields_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExprOrBuilder> fieldsBuilder_;
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public java.util.List getFieldsList() {
if (fieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fields_);
} else {
return fieldsBuilder_.getMessageList();
}
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public int getFieldsCount() {
if (fieldsBuilder_ == null) {
return fields_.size();
} else {
return fieldsBuilder_.getCount();
}
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr getFields(int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index);
} else {
return fieldsBuilder_.getMessage(index);
}
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public Builder setFields(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.set(index, value);
onChanged();
} else {
fieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public Builder setFields(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.set(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public Builder addFields(com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(value);
onChanged();
} else {
fieldsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public Builder addFields(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(index, value);
onChanged();
} else {
fieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public Builder addFields(
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public Builder addFields(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public Builder addAllFields(
java.lang.Iterable extends com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr> values) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fields_);
onChanged();
} else {
fieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public Builder clearFields() {
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
fieldsBuilder_.clear();
}
return this;
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public Builder removeFields(int index) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.remove(index);
onChanged();
} else {
fieldsBuilder_.remove(index);
}
return this;
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder getFieldsBuilder(
int index) {
return getFieldsFieldBuilder().getBuilder(index);
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExprOrBuilder getFieldsOrBuilder(
int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index); } else {
return fieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExprOrBuilder>
getFieldsOrBuilderList() {
if (fieldsBuilder_ != null) {
return fieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fields_);
}
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder addFieldsBuilder() {
return getFieldsFieldBuilder().addBuilder(
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.getDefaultInstance());
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder addFieldsBuilder(
int index) {
return getFieldsFieldBuilder().addBuilder(
index, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.getDefaultInstance());
}
/**
*
* Field names and the associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 2[json_name = "fields"];
*/
public java.util.List
getFieldsBuilderList() {
return getFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExprOrBuilder>
getFieldsFieldBuilder() {
if (fieldsBuilder_ == null) {
fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExprOrBuilder>(
fields_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
fields_ = null;
}
return fieldsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Expr.RecCon)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Expr.RecCon)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RecCon parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RecCon(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecCon getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RecProjOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.RecProj)
com.google.protobuf.MessageOrBuilder {
/**
*
* type of the record being projected.
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
boolean hasTycon();
/**
*
* type of the record being projected.
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con getTycon();
/**
*
* type of the record being projected.
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder getTyconOrBuilder();
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 2[json_name = "fieldStr"];
*/
java.lang.String getFieldStr();
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 2[json_name = "fieldStr"];
*/
com.google.protobuf.ByteString
getFieldStrBytes();
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 4[json_name = "fieldInternedStr"];
*/
int getFieldInternedStr();
/**
*
* projected expression
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
boolean hasRecord();
/**
*
* projected expression
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr getRecord();
/**
*
* projected expression
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getRecordOrBuilder();
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj.FieldCase getFieldCase();
}
/**
*
* Record projection (ExpRecProj)
*
*
* Protobuf type {@code daml_lf_1.Expr.RecProj}
*/
public static final class RecProj extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Expr.RecProj)
RecProjOrBuilder {
private static final long serialVersionUID = 0L;
// Use RecProj.newBuilder() to construct.
private RecProj(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RecProj() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RecProj();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RecProj(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder subBuilder = null;
if (tycon_ != null) {
subBuilder = tycon_.toBuilder();
}
tycon_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tycon_);
tycon_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
fieldCase_ = 2;
field_ = s;
break;
}
case 26: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder subBuilder = null;
if (record_ != null) {
subBuilder = record_.toBuilder();
}
record_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(record_);
record_ = subBuilder.buildPartial();
}
break;
}
case 32: {
fieldCase_ = 4;
field_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_RecProj_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_RecProj_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj.class, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj.Builder.class);
}
private int fieldCase_ = 0;
private java.lang.Object field_;
public enum FieldCase
implements com.google.protobuf.Internal.EnumLite {
FIELD_STR(2),
FIELD_INTERNED_STR(4),
FIELD_NOT_SET(0);
private final int value;
private FieldCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FieldCase valueOf(int value) {
return forNumber(value);
}
public static FieldCase forNumber(int value) {
switch (value) {
case 2: return FIELD_STR;
case 4: return FIELD_INTERNED_STR;
case 0: return FIELD_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public FieldCase
getFieldCase() {
return FieldCase.forNumber(
fieldCase_);
}
public static final int TYCON_FIELD_NUMBER = 1;
private com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con tycon_;
/**
*
* type of the record being projected.
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public boolean hasTycon() {
return tycon_ != null;
}
/**
*
* type of the record being projected.
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con getTycon() {
return tycon_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance() : tycon_;
}
/**
*
* type of the record being projected.
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() {
return getTycon();
}
public static final int FIELD_STR_FIELD_NUMBER = 2;
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 2[json_name = "fieldStr"];
*/
public java.lang.String getFieldStr() {
java.lang.Object ref = "";
if (fieldCase_ == 2) {
ref = field_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (fieldCase_ == 2) {
field_ = s;
}
return s;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 2[json_name = "fieldStr"];
*/
public com.google.protobuf.ByteString
getFieldStrBytes() {
java.lang.Object ref = "";
if (fieldCase_ == 2) {
ref = field_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (fieldCase_ == 2) {
field_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 4;
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 4[json_name = "fieldInternedStr"];
*/
public int getFieldInternedStr() {
if (fieldCase_ == 4) {
return (java.lang.Integer) field_;
}
return 0;
}
public static final int RECORD_FIELD_NUMBER = 3;
private com.digitalasset.daml_lf_1_8.DamlLf1.Expr record_;
/**
*
* projected expression
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public boolean hasRecord() {
return record_ != null;
}
/**
*
* projected expression
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr getRecord() {
return record_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : record_;
}
/**
*
* projected expression
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getRecordOrBuilder() {
return getRecord();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (tycon_ != null) {
output.writeMessage(1, getTycon());
}
if (fieldCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, field_);
}
if (record_ != null) {
output.writeMessage(3, getRecord());
}
if (fieldCase_ == 4) {
output.writeInt32(
4, (int)((java.lang.Integer) field_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (tycon_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTycon());
}
if (fieldCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, field_);
}
if (record_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getRecord());
}
if (fieldCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
4, (int)((java.lang.Integer) field_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj other = (com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj) obj;
if (hasTycon() != other.hasTycon()) return false;
if (hasTycon()) {
if (!getTycon()
.equals(other.getTycon())) return false;
}
if (hasRecord() != other.hasRecord()) return false;
if (hasRecord()) {
if (!getRecord()
.equals(other.getRecord())) return false;
}
if (!getFieldCase().equals(other.getFieldCase())) return false;
switch (fieldCase_) {
case 2:
if (!getFieldStr()
.equals(other.getFieldStr())) return false;
break;
case 4:
if (getFieldInternedStr()
!= other.getFieldInternedStr()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTycon()) {
hash = (37 * hash) + TYCON_FIELD_NUMBER;
hash = (53 * hash) + getTycon().hashCode();
}
if (hasRecord()) {
hash = (37 * hash) + RECORD_FIELD_NUMBER;
hash = (53 * hash) + getRecord().hashCode();
}
switch (fieldCase_) {
case 2:
hash = (37 * hash) + FIELD_STR_FIELD_NUMBER;
hash = (53 * hash) + getFieldStr().hashCode();
break;
case 4:
hash = (37 * hash) + FIELD_INTERNED_STR_FIELD_NUMBER;
hash = (53 * hash) + getFieldInternedStr();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Record projection (ExpRecProj)
*
*
* Protobuf type {@code daml_lf_1.Expr.RecProj}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.RecProj)
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProjOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_RecProj_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_RecProj_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj.class, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (tyconBuilder_ == null) {
tycon_ = null;
} else {
tycon_ = null;
tyconBuilder_ = null;
}
if (recordBuilder_ == null) {
record_ = null;
} else {
record_ = null;
recordBuilder_ = null;
}
fieldCase_ = 0;
field_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_RecProj_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj result = new com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj(this);
if (tyconBuilder_ == null) {
result.tycon_ = tycon_;
} else {
result.tycon_ = tyconBuilder_.build();
}
if (fieldCase_ == 2) {
result.field_ = field_;
}
if (fieldCase_ == 4) {
result.field_ = field_;
}
if (recordBuilder_ == null) {
result.record_ = record_;
} else {
result.record_ = recordBuilder_.build();
}
result.fieldCase_ = fieldCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj.getDefaultInstance()) return this;
if (other.hasTycon()) {
mergeTycon(other.getTycon());
}
if (other.hasRecord()) {
mergeRecord(other.getRecord());
}
switch (other.getFieldCase()) {
case FIELD_STR: {
fieldCase_ = 2;
field_ = other.field_;
onChanged();
break;
}
case FIELD_INTERNED_STR: {
setFieldInternedStr(other.getFieldInternedStr());
break;
}
case FIELD_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int fieldCase_ = 0;
private java.lang.Object field_;
public FieldCase
getFieldCase() {
return FieldCase.forNumber(
fieldCase_);
}
public Builder clearField() {
fieldCase_ = 0;
field_ = null;
onChanged();
return this;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con tycon_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder> tyconBuilder_;
/**
*
* type of the record being projected.
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public boolean hasTycon() {
return tyconBuilder_ != null || tycon_ != null;
}
/**
*
* type of the record being projected.
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con getTycon() {
if (tyconBuilder_ == null) {
return tycon_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance() : tycon_;
} else {
return tyconBuilder_.getMessage();
}
}
/**
*
* type of the record being projected.
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public Builder setTycon(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con value) {
if (tyconBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tycon_ = value;
onChanged();
} else {
tyconBuilder_.setMessage(value);
}
return this;
}
/**
*
* type of the record being projected.
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public Builder setTycon(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder builderForValue) {
if (tyconBuilder_ == null) {
tycon_ = builderForValue.build();
onChanged();
} else {
tyconBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* type of the record being projected.
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public Builder mergeTycon(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con value) {
if (tyconBuilder_ == null) {
if (tycon_ != null) {
tycon_ =
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.newBuilder(tycon_).mergeFrom(value).buildPartial();
} else {
tycon_ = value;
}
onChanged();
} else {
tyconBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* type of the record being projected.
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public Builder clearTycon() {
if (tyconBuilder_ == null) {
tycon_ = null;
onChanged();
} else {
tycon_ = null;
tyconBuilder_ = null;
}
return this;
}
/**
*
* type of the record being projected.
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder getTyconBuilder() {
onChanged();
return getTyconFieldBuilder().getBuilder();
}
/**
*
* type of the record being projected.
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() {
if (tyconBuilder_ != null) {
return tyconBuilder_.getMessageOrBuilder();
} else {
return tycon_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance() : tycon_;
}
}
/**
*
* type of the record being projected.
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder>
getTyconFieldBuilder() {
if (tyconBuilder_ == null) {
tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder>(
getTycon(),
getParentForChildren(),
isClean());
tycon_ = null;
}
return tyconBuilder_;
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 2[json_name = "fieldStr"];
*/
public java.lang.String getFieldStr() {
java.lang.Object ref = "";
if (fieldCase_ == 2) {
ref = field_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (fieldCase_ == 2) {
field_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 2[json_name = "fieldStr"];
*/
public com.google.protobuf.ByteString
getFieldStrBytes() {
java.lang.Object ref = "";
if (fieldCase_ == 2) {
ref = field_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (fieldCase_ == 2) {
field_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 2[json_name = "fieldStr"];
*/
public Builder setFieldStr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fieldCase_ = 2;
field_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 2[json_name = "fieldStr"];
*/
public Builder clearFieldStr() {
if (fieldCase_ == 2) {
fieldCase_ = 0;
field_ = null;
onChanged();
}
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 2[json_name = "fieldStr"];
*/
public Builder setFieldStrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fieldCase_ = 2;
field_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 4[json_name = "fieldInternedStr"];
*/
public int getFieldInternedStr() {
if (fieldCase_ == 4) {
return (java.lang.Integer) field_;
}
return 0;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 4[json_name = "fieldInternedStr"];
*/
public Builder setFieldInternedStr(int value) {
fieldCase_ = 4;
field_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 4[json_name = "fieldInternedStr"];
*/
public Builder clearFieldInternedStr() {
if (fieldCase_ == 4) {
fieldCase_ = 0;
field_ = null;
onChanged();
}
return this;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.Expr record_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder> recordBuilder_;
/**
*
* projected expression
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public boolean hasRecord() {
return recordBuilder_ != null || record_ != null;
}
/**
*
* projected expression
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr getRecord() {
if (recordBuilder_ == null) {
return record_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : record_;
} else {
return recordBuilder_.getMessage();
}
}
/**
*
* projected expression
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public Builder setRecord(com.digitalasset.daml_lf_1_8.DamlLf1.Expr value) {
if (recordBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
record_ = value;
onChanged();
} else {
recordBuilder_.setMessage(value);
}
return this;
}
/**
*
* projected expression
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public Builder setRecord(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder builderForValue) {
if (recordBuilder_ == null) {
record_ = builderForValue.build();
onChanged();
} else {
recordBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* projected expression
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public Builder mergeRecord(com.digitalasset.daml_lf_1_8.DamlLf1.Expr value) {
if (recordBuilder_ == null) {
if (record_ != null) {
record_ =
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.newBuilder(record_).mergeFrom(value).buildPartial();
} else {
record_ = value;
}
onChanged();
} else {
recordBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* projected expression
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public Builder clearRecord() {
if (recordBuilder_ == null) {
record_ = null;
onChanged();
} else {
record_ = null;
recordBuilder_ = null;
}
return this;
}
/**
*
* projected expression
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder getRecordBuilder() {
onChanged();
return getRecordFieldBuilder().getBuilder();
}
/**
*
* projected expression
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getRecordOrBuilder() {
if (recordBuilder_ != null) {
return recordBuilder_.getMessageOrBuilder();
} else {
return record_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : record_;
}
}
/**
*
* projected expression
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder>
getRecordFieldBuilder() {
if (recordBuilder_ == null) {
recordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder>(
getRecord(),
getParentForChildren(),
isClean());
record_ = null;
}
return recordBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Expr.RecProj)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Expr.RecProj)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RecProj parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RecProj(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecProj getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RecUpdOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.RecUpd)
com.google.protobuf.MessageOrBuilder {
/**
*
* type of the record being updated
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
boolean hasTycon();
/**
*
* type of the record being updated
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con getTycon();
/**
*
* type of the record being updated
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder getTyconOrBuilder();
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 2[json_name = "fieldStr"];
*/
java.lang.String getFieldStr();
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 2[json_name = "fieldStr"];
*/
com.google.protobuf.ByteString
getFieldStrBytes();
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 5[json_name = "fieldInternedStr"];
*/
int getFieldInternedStr();
/**
*
* Actual record being updated
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
boolean hasRecord();
/**
*
* Actual record being updated
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr getRecord();
/**
*
* Actual record being updated
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getRecordOrBuilder();
/**
*
* Value to wich the record is udpated
*
*
* .daml_lf_1.Expr update = 4[json_name = "update"];
*/
boolean hasUpdate();
/**
*
* Value to wich the record is udpated
*
*
* .daml_lf_1.Expr update = 4[json_name = "update"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr getUpdate();
/**
*
* Value to wich the record is udpated
*
*
* .daml_lf_1.Expr update = 4[json_name = "update"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getUpdateOrBuilder();
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd.FieldCase getFieldCase();
}
/**
*
* Record update ('ExpRecUp')
*
*
* Protobuf type {@code daml_lf_1.Expr.RecUpd}
*/
public static final class RecUpd extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Expr.RecUpd)
RecUpdOrBuilder {
private static final long serialVersionUID = 0L;
// Use RecUpd.newBuilder() to construct.
private RecUpd(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RecUpd() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RecUpd();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RecUpd(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder subBuilder = null;
if (tycon_ != null) {
subBuilder = tycon_.toBuilder();
}
tycon_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tycon_);
tycon_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
fieldCase_ = 2;
field_ = s;
break;
}
case 26: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder subBuilder = null;
if (record_ != null) {
subBuilder = record_.toBuilder();
}
record_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(record_);
record_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder subBuilder = null;
if (update_ != null) {
subBuilder = update_.toBuilder();
}
update_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(update_);
update_ = subBuilder.buildPartial();
}
break;
}
case 40: {
fieldCase_ = 5;
field_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_RecUpd_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_RecUpd_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd.class, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd.Builder.class);
}
private int fieldCase_ = 0;
private java.lang.Object field_;
public enum FieldCase
implements com.google.protobuf.Internal.EnumLite {
FIELD_STR(2),
FIELD_INTERNED_STR(5),
FIELD_NOT_SET(0);
private final int value;
private FieldCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FieldCase valueOf(int value) {
return forNumber(value);
}
public static FieldCase forNumber(int value) {
switch (value) {
case 2: return FIELD_STR;
case 5: return FIELD_INTERNED_STR;
case 0: return FIELD_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public FieldCase
getFieldCase() {
return FieldCase.forNumber(
fieldCase_);
}
public static final int TYCON_FIELD_NUMBER = 1;
private com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con tycon_;
/**
*
* type of the record being updated
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public boolean hasTycon() {
return tycon_ != null;
}
/**
*
* type of the record being updated
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con getTycon() {
return tycon_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance() : tycon_;
}
/**
*
* type of the record being updated
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() {
return getTycon();
}
public static final int FIELD_STR_FIELD_NUMBER = 2;
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 2[json_name = "fieldStr"];
*/
public java.lang.String getFieldStr() {
java.lang.Object ref = "";
if (fieldCase_ == 2) {
ref = field_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (fieldCase_ == 2) {
field_ = s;
}
return s;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 2[json_name = "fieldStr"];
*/
public com.google.protobuf.ByteString
getFieldStrBytes() {
java.lang.Object ref = "";
if (fieldCase_ == 2) {
ref = field_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (fieldCase_ == 2) {
field_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 5;
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 5[json_name = "fieldInternedStr"];
*/
public int getFieldInternedStr() {
if (fieldCase_ == 5) {
return (java.lang.Integer) field_;
}
return 0;
}
public static final int RECORD_FIELD_NUMBER = 3;
private com.digitalasset.daml_lf_1_8.DamlLf1.Expr record_;
/**
*
* Actual record being updated
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public boolean hasRecord() {
return record_ != null;
}
/**
*
* Actual record being updated
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr getRecord() {
return record_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : record_;
}
/**
*
* Actual record being updated
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getRecordOrBuilder() {
return getRecord();
}
public static final int UPDATE_FIELD_NUMBER = 4;
private com.digitalasset.daml_lf_1_8.DamlLf1.Expr update_;
/**
*
* Value to wich the record is udpated
*
*
* .daml_lf_1.Expr update = 4[json_name = "update"];
*/
public boolean hasUpdate() {
return update_ != null;
}
/**
*
* Value to wich the record is udpated
*
*
* .daml_lf_1.Expr update = 4[json_name = "update"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr getUpdate() {
return update_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : update_;
}
/**
*
* Value to wich the record is udpated
*
*
* .daml_lf_1.Expr update = 4[json_name = "update"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getUpdateOrBuilder() {
return getUpdate();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (tycon_ != null) {
output.writeMessage(1, getTycon());
}
if (fieldCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, field_);
}
if (record_ != null) {
output.writeMessage(3, getRecord());
}
if (update_ != null) {
output.writeMessage(4, getUpdate());
}
if (fieldCase_ == 5) {
output.writeInt32(
5, (int)((java.lang.Integer) field_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (tycon_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTycon());
}
if (fieldCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, field_);
}
if (record_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getRecord());
}
if (update_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getUpdate());
}
if (fieldCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
5, (int)((java.lang.Integer) field_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd other = (com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd) obj;
if (hasTycon() != other.hasTycon()) return false;
if (hasTycon()) {
if (!getTycon()
.equals(other.getTycon())) return false;
}
if (hasRecord() != other.hasRecord()) return false;
if (hasRecord()) {
if (!getRecord()
.equals(other.getRecord())) return false;
}
if (hasUpdate() != other.hasUpdate()) return false;
if (hasUpdate()) {
if (!getUpdate()
.equals(other.getUpdate())) return false;
}
if (!getFieldCase().equals(other.getFieldCase())) return false;
switch (fieldCase_) {
case 2:
if (!getFieldStr()
.equals(other.getFieldStr())) return false;
break;
case 5:
if (getFieldInternedStr()
!= other.getFieldInternedStr()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTycon()) {
hash = (37 * hash) + TYCON_FIELD_NUMBER;
hash = (53 * hash) + getTycon().hashCode();
}
if (hasRecord()) {
hash = (37 * hash) + RECORD_FIELD_NUMBER;
hash = (53 * hash) + getRecord().hashCode();
}
if (hasUpdate()) {
hash = (37 * hash) + UPDATE_FIELD_NUMBER;
hash = (53 * hash) + getUpdate().hashCode();
}
switch (fieldCase_) {
case 2:
hash = (37 * hash) + FIELD_STR_FIELD_NUMBER;
hash = (53 * hash) + getFieldStr().hashCode();
break;
case 5:
hash = (37 * hash) + FIELD_INTERNED_STR_FIELD_NUMBER;
hash = (53 * hash) + getFieldInternedStr();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Record update ('ExpRecUp')
*
*
* Protobuf type {@code daml_lf_1.Expr.RecUpd}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.RecUpd)
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpdOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_RecUpd_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_RecUpd_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd.class, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (tyconBuilder_ == null) {
tycon_ = null;
} else {
tycon_ = null;
tyconBuilder_ = null;
}
if (recordBuilder_ == null) {
record_ = null;
} else {
record_ = null;
recordBuilder_ = null;
}
if (updateBuilder_ == null) {
update_ = null;
} else {
update_ = null;
updateBuilder_ = null;
}
fieldCase_ = 0;
field_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_RecUpd_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd result = new com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd(this);
if (tyconBuilder_ == null) {
result.tycon_ = tycon_;
} else {
result.tycon_ = tyconBuilder_.build();
}
if (fieldCase_ == 2) {
result.field_ = field_;
}
if (fieldCase_ == 5) {
result.field_ = field_;
}
if (recordBuilder_ == null) {
result.record_ = record_;
} else {
result.record_ = recordBuilder_.build();
}
if (updateBuilder_ == null) {
result.update_ = update_;
} else {
result.update_ = updateBuilder_.build();
}
result.fieldCase_ = fieldCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd.getDefaultInstance()) return this;
if (other.hasTycon()) {
mergeTycon(other.getTycon());
}
if (other.hasRecord()) {
mergeRecord(other.getRecord());
}
if (other.hasUpdate()) {
mergeUpdate(other.getUpdate());
}
switch (other.getFieldCase()) {
case FIELD_STR: {
fieldCase_ = 2;
field_ = other.field_;
onChanged();
break;
}
case FIELD_INTERNED_STR: {
setFieldInternedStr(other.getFieldInternedStr());
break;
}
case FIELD_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int fieldCase_ = 0;
private java.lang.Object field_;
public FieldCase
getFieldCase() {
return FieldCase.forNumber(
fieldCase_);
}
public Builder clearField() {
fieldCase_ = 0;
field_ = null;
onChanged();
return this;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con tycon_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder> tyconBuilder_;
/**
*
* type of the record being updated
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public boolean hasTycon() {
return tyconBuilder_ != null || tycon_ != null;
}
/**
*
* type of the record being updated
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con getTycon() {
if (tyconBuilder_ == null) {
return tycon_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance() : tycon_;
} else {
return tyconBuilder_.getMessage();
}
}
/**
*
* type of the record being updated
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public Builder setTycon(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con value) {
if (tyconBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tycon_ = value;
onChanged();
} else {
tyconBuilder_.setMessage(value);
}
return this;
}
/**
*
* type of the record being updated
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public Builder setTycon(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder builderForValue) {
if (tyconBuilder_ == null) {
tycon_ = builderForValue.build();
onChanged();
} else {
tyconBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* type of the record being updated
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public Builder mergeTycon(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con value) {
if (tyconBuilder_ == null) {
if (tycon_ != null) {
tycon_ =
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.newBuilder(tycon_).mergeFrom(value).buildPartial();
} else {
tycon_ = value;
}
onChanged();
} else {
tyconBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* type of the record being updated
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public Builder clearTycon() {
if (tyconBuilder_ == null) {
tycon_ = null;
onChanged();
} else {
tycon_ = null;
tyconBuilder_ = null;
}
return this;
}
/**
*
* type of the record being updated
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder getTyconBuilder() {
onChanged();
return getTyconFieldBuilder().getBuilder();
}
/**
*
* type of the record being updated
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() {
if (tyconBuilder_ != null) {
return tyconBuilder_.getMessageOrBuilder();
} else {
return tycon_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance() : tycon_;
}
}
/**
*
* type of the record being updated
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder>
getTyconFieldBuilder() {
if (tyconBuilder_ == null) {
tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder>(
getTycon(),
getParentForChildren(),
isClean());
tycon_ = null;
}
return tyconBuilder_;
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 2[json_name = "fieldStr"];
*/
public java.lang.String getFieldStr() {
java.lang.Object ref = "";
if (fieldCase_ == 2) {
ref = field_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (fieldCase_ == 2) {
field_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 2[json_name = "fieldStr"];
*/
public com.google.protobuf.ByteString
getFieldStrBytes() {
java.lang.Object ref = "";
if (fieldCase_ == 2) {
ref = field_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (fieldCase_ == 2) {
field_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 2[json_name = "fieldStr"];
*/
public Builder setFieldStr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fieldCase_ = 2;
field_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 2[json_name = "fieldStr"];
*/
public Builder clearFieldStr() {
if (fieldCase_ == 2) {
fieldCase_ = 0;
field_ = null;
onChanged();
}
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string field_str = 2[json_name = "fieldStr"];
*/
public Builder setFieldStrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fieldCase_ = 2;
field_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 5[json_name = "fieldInternedStr"];
*/
public int getFieldInternedStr() {
if (fieldCase_ == 5) {
return (java.lang.Integer) field_;
}
return 0;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 5[json_name = "fieldInternedStr"];
*/
public Builder setFieldInternedStr(int value) {
fieldCase_ = 5;
field_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 5[json_name = "fieldInternedStr"];
*/
public Builder clearFieldInternedStr() {
if (fieldCase_ == 5) {
fieldCase_ = 0;
field_ = null;
onChanged();
}
return this;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.Expr record_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder> recordBuilder_;
/**
*
* Actual record being updated
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public boolean hasRecord() {
return recordBuilder_ != null || record_ != null;
}
/**
*
* Actual record being updated
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr getRecord() {
if (recordBuilder_ == null) {
return record_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : record_;
} else {
return recordBuilder_.getMessage();
}
}
/**
*
* Actual record being updated
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public Builder setRecord(com.digitalasset.daml_lf_1_8.DamlLf1.Expr value) {
if (recordBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
record_ = value;
onChanged();
} else {
recordBuilder_.setMessage(value);
}
return this;
}
/**
*
* Actual record being updated
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public Builder setRecord(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder builderForValue) {
if (recordBuilder_ == null) {
record_ = builderForValue.build();
onChanged();
} else {
recordBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Actual record being updated
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public Builder mergeRecord(com.digitalasset.daml_lf_1_8.DamlLf1.Expr value) {
if (recordBuilder_ == null) {
if (record_ != null) {
record_ =
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.newBuilder(record_).mergeFrom(value).buildPartial();
} else {
record_ = value;
}
onChanged();
} else {
recordBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Actual record being updated
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public Builder clearRecord() {
if (recordBuilder_ == null) {
record_ = null;
onChanged();
} else {
record_ = null;
recordBuilder_ = null;
}
return this;
}
/**
*
* Actual record being updated
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder getRecordBuilder() {
onChanged();
return getRecordFieldBuilder().getBuilder();
}
/**
*
* Actual record being updated
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getRecordOrBuilder() {
if (recordBuilder_ != null) {
return recordBuilder_.getMessageOrBuilder();
} else {
return record_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : record_;
}
}
/**
*
* Actual record being updated
*
*
* .daml_lf_1.Expr record = 3[json_name = "record"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder>
getRecordFieldBuilder() {
if (recordBuilder_ == null) {
recordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder>(
getRecord(),
getParentForChildren(),
isClean());
record_ = null;
}
return recordBuilder_;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.Expr update_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder> updateBuilder_;
/**
*
* Value to wich the record is udpated
*
*
* .daml_lf_1.Expr update = 4[json_name = "update"];
*/
public boolean hasUpdate() {
return updateBuilder_ != null || update_ != null;
}
/**
*
* Value to wich the record is udpated
*
*
* .daml_lf_1.Expr update = 4[json_name = "update"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr getUpdate() {
if (updateBuilder_ == null) {
return update_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : update_;
} else {
return updateBuilder_.getMessage();
}
}
/**
*
* Value to wich the record is udpated
*
*
* .daml_lf_1.Expr update = 4[json_name = "update"];
*/
public Builder setUpdate(com.digitalasset.daml_lf_1_8.DamlLf1.Expr value) {
if (updateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
update_ = value;
onChanged();
} else {
updateBuilder_.setMessage(value);
}
return this;
}
/**
*
* Value to wich the record is udpated
*
*
* .daml_lf_1.Expr update = 4[json_name = "update"];
*/
public Builder setUpdate(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder builderForValue) {
if (updateBuilder_ == null) {
update_ = builderForValue.build();
onChanged();
} else {
updateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Value to wich the record is udpated
*
*
* .daml_lf_1.Expr update = 4[json_name = "update"];
*/
public Builder mergeUpdate(com.digitalasset.daml_lf_1_8.DamlLf1.Expr value) {
if (updateBuilder_ == null) {
if (update_ != null) {
update_ =
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.newBuilder(update_).mergeFrom(value).buildPartial();
} else {
update_ = value;
}
onChanged();
} else {
updateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Value to wich the record is udpated
*
*
* .daml_lf_1.Expr update = 4[json_name = "update"];
*/
public Builder clearUpdate() {
if (updateBuilder_ == null) {
update_ = null;
onChanged();
} else {
update_ = null;
updateBuilder_ = null;
}
return this;
}
/**
*
* Value to wich the record is udpated
*
*
* .daml_lf_1.Expr update = 4[json_name = "update"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder getUpdateBuilder() {
onChanged();
return getUpdateFieldBuilder().getBuilder();
}
/**
*
* Value to wich the record is udpated
*
*
* .daml_lf_1.Expr update = 4[json_name = "update"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getUpdateOrBuilder() {
if (updateBuilder_ != null) {
return updateBuilder_.getMessageOrBuilder();
} else {
return update_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : update_;
}
}
/**
*
* Value to wich the record is udpated
*
*
* .daml_lf_1.Expr update = 4[json_name = "update"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder>
getUpdateFieldBuilder() {
if (updateBuilder_ == null) {
updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder>(
getUpdate(),
getParentForChildren(),
isClean());
update_ = null;
}
return updateBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Expr.RecUpd)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Expr.RecUpd)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RecUpd parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RecUpd(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.RecUpd getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface VariantConOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.VariantCon)
com.google.protobuf.MessageOrBuilder {
/**
*
* type of the variant being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
boolean hasTycon();
/**
*
* type of the variant being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con getTycon();
/**
*
* type of the variant being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder getTyconOrBuilder();
/**
*
* *Must be a valid identifier*
*
*
* string variant_con_str = 2[json_name = "variantConStr"];
*/
java.lang.String getVariantConStr();
/**
*
* *Must be a valid identifier*
*
*
* string variant_con_str = 2[json_name = "variantConStr"];
*/
com.google.protobuf.ByteString
getVariantConStrBytes();
/**
*
* *Must be a valid interned identifier*
*
*
* int32 variant_con_interned_str = 4[json_name = "variantConInternedStr"];
*/
int getVariantConInternedStr();
/**
*
* Argument of the variant.
*
*
* .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"];
*/
boolean hasVariantArg();
/**
*
* Argument of the variant.
*
*
* .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr getVariantArg();
/**
*
* Argument of the variant.
*
*
* .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getVariantArgOrBuilder();
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon.VariantConCase getVariantConCase();
}
/**
*
* Variant construction ('ExpVariantCon')
*
*
* Protobuf type {@code daml_lf_1.Expr.VariantCon}
*/
public static final class VariantCon extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Expr.VariantCon)
VariantConOrBuilder {
private static final long serialVersionUID = 0L;
// Use VariantCon.newBuilder() to construct.
private VariantCon(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VariantCon() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new VariantCon();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private VariantCon(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder subBuilder = null;
if (tycon_ != null) {
subBuilder = tycon_.toBuilder();
}
tycon_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tycon_);
tycon_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
variantConCase_ = 2;
variantCon_ = s;
break;
}
case 26: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder subBuilder = null;
if (variantArg_ != null) {
subBuilder = variantArg_.toBuilder();
}
variantArg_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(variantArg_);
variantArg_ = subBuilder.buildPartial();
}
break;
}
case 32: {
variantConCase_ = 4;
variantCon_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_VariantCon_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_VariantCon_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon.class, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon.Builder.class);
}
private int variantConCase_ = 0;
private java.lang.Object variantCon_;
public enum VariantConCase
implements com.google.protobuf.Internal.EnumLite {
VARIANT_CON_STR(2),
VARIANT_CON_INTERNED_STR(4),
VARIANTCON_NOT_SET(0);
private final int value;
private VariantConCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static VariantConCase valueOf(int value) {
return forNumber(value);
}
public static VariantConCase forNumber(int value) {
switch (value) {
case 2: return VARIANT_CON_STR;
case 4: return VARIANT_CON_INTERNED_STR;
case 0: return VARIANTCON_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public VariantConCase
getVariantConCase() {
return VariantConCase.forNumber(
variantConCase_);
}
public static final int TYCON_FIELD_NUMBER = 1;
private com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con tycon_;
/**
*
* type of the variant being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public boolean hasTycon() {
return tycon_ != null;
}
/**
*
* type of the variant being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con getTycon() {
return tycon_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance() : tycon_;
}
/**
*
* type of the variant being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() {
return getTycon();
}
public static final int VARIANT_CON_STR_FIELD_NUMBER = 2;
/**
*
* *Must be a valid identifier*
*
*
* string variant_con_str = 2[json_name = "variantConStr"];
*/
public java.lang.String getVariantConStr() {
java.lang.Object ref = "";
if (variantConCase_ == 2) {
ref = variantCon_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (variantConCase_ == 2) {
variantCon_ = s;
}
return s;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string variant_con_str = 2[json_name = "variantConStr"];
*/
public com.google.protobuf.ByteString
getVariantConStrBytes() {
java.lang.Object ref = "";
if (variantConCase_ == 2) {
ref = variantCon_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (variantConCase_ == 2) {
variantCon_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VARIANT_CON_INTERNED_STR_FIELD_NUMBER = 4;
/**
*
* *Must be a valid interned identifier*
*
*
* int32 variant_con_interned_str = 4[json_name = "variantConInternedStr"];
*/
public int getVariantConInternedStr() {
if (variantConCase_ == 4) {
return (java.lang.Integer) variantCon_;
}
return 0;
}
public static final int VARIANT_ARG_FIELD_NUMBER = 3;
private com.digitalasset.daml_lf_1_8.DamlLf1.Expr variantArg_;
/**
*
* Argument of the variant.
*
*
* .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"];
*/
public boolean hasVariantArg() {
return variantArg_ != null;
}
/**
*
* Argument of the variant.
*
*
* .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr getVariantArg() {
return variantArg_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : variantArg_;
}
/**
*
* Argument of the variant.
*
*
* .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getVariantArgOrBuilder() {
return getVariantArg();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (tycon_ != null) {
output.writeMessage(1, getTycon());
}
if (variantConCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, variantCon_);
}
if (variantArg_ != null) {
output.writeMessage(3, getVariantArg());
}
if (variantConCase_ == 4) {
output.writeInt32(
4, (int)((java.lang.Integer) variantCon_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (tycon_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTycon());
}
if (variantConCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, variantCon_);
}
if (variantArg_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getVariantArg());
}
if (variantConCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
4, (int)((java.lang.Integer) variantCon_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon other = (com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon) obj;
if (hasTycon() != other.hasTycon()) return false;
if (hasTycon()) {
if (!getTycon()
.equals(other.getTycon())) return false;
}
if (hasVariantArg() != other.hasVariantArg()) return false;
if (hasVariantArg()) {
if (!getVariantArg()
.equals(other.getVariantArg())) return false;
}
if (!getVariantConCase().equals(other.getVariantConCase())) return false;
switch (variantConCase_) {
case 2:
if (!getVariantConStr()
.equals(other.getVariantConStr())) return false;
break;
case 4:
if (getVariantConInternedStr()
!= other.getVariantConInternedStr()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTycon()) {
hash = (37 * hash) + TYCON_FIELD_NUMBER;
hash = (53 * hash) + getTycon().hashCode();
}
if (hasVariantArg()) {
hash = (37 * hash) + VARIANT_ARG_FIELD_NUMBER;
hash = (53 * hash) + getVariantArg().hashCode();
}
switch (variantConCase_) {
case 2:
hash = (37 * hash) + VARIANT_CON_STR_FIELD_NUMBER;
hash = (53 * hash) + getVariantConStr().hashCode();
break;
case 4:
hash = (37 * hash) + VARIANT_CON_INTERNED_STR_FIELD_NUMBER;
hash = (53 * hash) + getVariantConInternedStr();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Variant construction ('ExpVariantCon')
*
*
* Protobuf type {@code daml_lf_1.Expr.VariantCon}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.VariantCon)
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantConOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_VariantCon_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_VariantCon_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon.class, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (tyconBuilder_ == null) {
tycon_ = null;
} else {
tycon_ = null;
tyconBuilder_ = null;
}
if (variantArgBuilder_ == null) {
variantArg_ = null;
} else {
variantArg_ = null;
variantArgBuilder_ = null;
}
variantConCase_ = 0;
variantCon_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_VariantCon_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon result = new com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon(this);
if (tyconBuilder_ == null) {
result.tycon_ = tycon_;
} else {
result.tycon_ = tyconBuilder_.build();
}
if (variantConCase_ == 2) {
result.variantCon_ = variantCon_;
}
if (variantConCase_ == 4) {
result.variantCon_ = variantCon_;
}
if (variantArgBuilder_ == null) {
result.variantArg_ = variantArg_;
} else {
result.variantArg_ = variantArgBuilder_.build();
}
result.variantConCase_ = variantConCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon.getDefaultInstance()) return this;
if (other.hasTycon()) {
mergeTycon(other.getTycon());
}
if (other.hasVariantArg()) {
mergeVariantArg(other.getVariantArg());
}
switch (other.getVariantConCase()) {
case VARIANT_CON_STR: {
variantConCase_ = 2;
variantCon_ = other.variantCon_;
onChanged();
break;
}
case VARIANT_CON_INTERNED_STR: {
setVariantConInternedStr(other.getVariantConInternedStr());
break;
}
case VARIANTCON_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int variantConCase_ = 0;
private java.lang.Object variantCon_;
public VariantConCase
getVariantConCase() {
return VariantConCase.forNumber(
variantConCase_);
}
public Builder clearVariantCon() {
variantConCase_ = 0;
variantCon_ = null;
onChanged();
return this;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con tycon_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder> tyconBuilder_;
/**
*
* type of the variant being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public boolean hasTycon() {
return tyconBuilder_ != null || tycon_ != null;
}
/**
*
* type of the variant being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con getTycon() {
if (tyconBuilder_ == null) {
return tycon_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance() : tycon_;
} else {
return tyconBuilder_.getMessage();
}
}
/**
*
* type of the variant being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public Builder setTycon(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con value) {
if (tyconBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tycon_ = value;
onChanged();
} else {
tyconBuilder_.setMessage(value);
}
return this;
}
/**
*
* type of the variant being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public Builder setTycon(
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder builderForValue) {
if (tyconBuilder_ == null) {
tycon_ = builderForValue.build();
onChanged();
} else {
tyconBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* type of the variant being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public Builder mergeTycon(com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con value) {
if (tyconBuilder_ == null) {
if (tycon_ != null) {
tycon_ =
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.newBuilder(tycon_).mergeFrom(value).buildPartial();
} else {
tycon_ = value;
}
onChanged();
} else {
tyconBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* type of the variant being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public Builder clearTycon() {
if (tyconBuilder_ == null) {
tycon_ = null;
onChanged();
} else {
tycon_ = null;
tyconBuilder_ = null;
}
return this;
}
/**
*
* type of the variant being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder getTyconBuilder() {
onChanged();
return getTyconFieldBuilder().getBuilder();
}
/**
*
* type of the variant being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder getTyconOrBuilder() {
if (tyconBuilder_ != null) {
return tyconBuilder_.getMessageOrBuilder();
} else {
return tycon_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.getDefaultInstance() : tycon_;
}
}
/**
*
* type of the variant being constructed
*
*
* .daml_lf_1.Type.Con tycon = 1[json_name = "tycon"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder>
getTyconFieldBuilder() {
if (tyconBuilder_ == null) {
tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con, com.digitalasset.daml_lf_1_8.DamlLf1.Type.Con.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.Type.ConOrBuilder>(
getTycon(),
getParentForChildren(),
isClean());
tycon_ = null;
}
return tyconBuilder_;
}
/**
*
* *Must be a valid identifier*
*
*
* string variant_con_str = 2[json_name = "variantConStr"];
*/
public java.lang.String getVariantConStr() {
java.lang.Object ref = "";
if (variantConCase_ == 2) {
ref = variantCon_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (variantConCase_ == 2) {
variantCon_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string variant_con_str = 2[json_name = "variantConStr"];
*/
public com.google.protobuf.ByteString
getVariantConStrBytes() {
java.lang.Object ref = "";
if (variantConCase_ == 2) {
ref = variantCon_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (variantConCase_ == 2) {
variantCon_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string variant_con_str = 2[json_name = "variantConStr"];
*/
public Builder setVariantConStr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
variantConCase_ = 2;
variantCon_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string variant_con_str = 2[json_name = "variantConStr"];
*/
public Builder clearVariantConStr() {
if (variantConCase_ == 2) {
variantConCase_ = 0;
variantCon_ = null;
onChanged();
}
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string variant_con_str = 2[json_name = "variantConStr"];
*/
public Builder setVariantConStrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
variantConCase_ = 2;
variantCon_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 variant_con_interned_str = 4[json_name = "variantConInternedStr"];
*/
public int getVariantConInternedStr() {
if (variantConCase_ == 4) {
return (java.lang.Integer) variantCon_;
}
return 0;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 variant_con_interned_str = 4[json_name = "variantConInternedStr"];
*/
public Builder setVariantConInternedStr(int value) {
variantConCase_ = 4;
variantCon_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 variant_con_interned_str = 4[json_name = "variantConInternedStr"];
*/
public Builder clearVariantConInternedStr() {
if (variantConCase_ == 4) {
variantConCase_ = 0;
variantCon_ = null;
onChanged();
}
return this;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.Expr variantArg_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder> variantArgBuilder_;
/**
*
* Argument of the variant.
*
*
* .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"];
*/
public boolean hasVariantArg() {
return variantArgBuilder_ != null || variantArg_ != null;
}
/**
*
* Argument of the variant.
*
*
* .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr getVariantArg() {
if (variantArgBuilder_ == null) {
return variantArg_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : variantArg_;
} else {
return variantArgBuilder_.getMessage();
}
}
/**
*
* Argument of the variant.
*
*
* .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"];
*/
public Builder setVariantArg(com.digitalasset.daml_lf_1_8.DamlLf1.Expr value) {
if (variantArgBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
variantArg_ = value;
onChanged();
} else {
variantArgBuilder_.setMessage(value);
}
return this;
}
/**
*
* Argument of the variant.
*
*
* .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"];
*/
public Builder setVariantArg(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder builderForValue) {
if (variantArgBuilder_ == null) {
variantArg_ = builderForValue.build();
onChanged();
} else {
variantArgBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Argument of the variant.
*
*
* .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"];
*/
public Builder mergeVariantArg(com.digitalasset.daml_lf_1_8.DamlLf1.Expr value) {
if (variantArgBuilder_ == null) {
if (variantArg_ != null) {
variantArg_ =
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.newBuilder(variantArg_).mergeFrom(value).buildPartial();
} else {
variantArg_ = value;
}
onChanged();
} else {
variantArgBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Argument of the variant.
*
*
* .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"];
*/
public Builder clearVariantArg() {
if (variantArgBuilder_ == null) {
variantArg_ = null;
onChanged();
} else {
variantArg_ = null;
variantArgBuilder_ = null;
}
return this;
}
/**
*
* Argument of the variant.
*
*
* .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder getVariantArgBuilder() {
onChanged();
return getVariantArgFieldBuilder().getBuilder();
}
/**
*
* Argument of the variant.
*
*
* .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getVariantArgOrBuilder() {
if (variantArgBuilder_ != null) {
return variantArgBuilder_.getMessageOrBuilder();
} else {
return variantArg_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : variantArg_;
}
}
/**
*
* Argument of the variant.
*
*
* .daml_lf_1.Expr variant_arg = 3[json_name = "variantArg"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder>
getVariantArgFieldBuilder() {
if (variantArgBuilder_ == null) {
variantArgBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder>(
getVariantArg(),
getParentForChildren(),
isClean());
variantArg_ = null;
}
return variantArgBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Expr.VariantCon)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Expr.VariantCon)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VariantCon parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VariantCon(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.VariantCon getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EnumConOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.EnumCon)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
boolean hasTycon();
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName getTycon();
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConNameOrBuilder getTyconOrBuilder();
/**
*
* *Must be a valid identifier*
*
*
* string enum_con_str = 2[json_name = "enumConStr"];
*/
java.lang.String getEnumConStr();
/**
*
* *Must be a valid identifier*
*
*
* string enum_con_str = 2[json_name = "enumConStr"];
*/
com.google.protobuf.ByteString
getEnumConStrBytes();
/**
*
* *Must be a valid interned identifier*
*
*
* int32 enum_con_interned_str = 3[json_name = "enumConInternedStr"];
*/
int getEnumConInternedStr();
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon.EnumConCase getEnumConCase();
}
/**
*
* Enum construction ('ExpEnumCon')
* *Available in versions >= 1.6*
*
*
* Protobuf type {@code daml_lf_1.Expr.EnumCon}
*/
public static final class EnumCon extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Expr.EnumCon)
EnumConOrBuilder {
private static final long serialVersionUID = 0L;
// Use EnumCon.newBuilder() to construct.
private EnumCon(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EnumCon() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EnumCon();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EnumCon(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.Builder subBuilder = null;
if (tycon_ != null) {
subBuilder = tycon_.toBuilder();
}
tycon_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tycon_);
tycon_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
enumConCase_ = 2;
enumCon_ = s;
break;
}
case 24: {
enumConCase_ = 3;
enumCon_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_EnumCon_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_EnumCon_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon.class, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon.Builder.class);
}
private int enumConCase_ = 0;
private java.lang.Object enumCon_;
public enum EnumConCase
implements com.google.protobuf.Internal.EnumLite {
ENUM_CON_STR(2),
ENUM_CON_INTERNED_STR(3),
ENUMCON_NOT_SET(0);
private final int value;
private EnumConCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EnumConCase valueOf(int value) {
return forNumber(value);
}
public static EnumConCase forNumber(int value) {
switch (value) {
case 2: return ENUM_CON_STR;
case 3: return ENUM_CON_INTERNED_STR;
case 0: return ENUMCON_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public EnumConCase
getEnumConCase() {
return EnumConCase.forNumber(
enumConCase_);
}
public static final int TYCON_FIELD_NUMBER = 1;
private com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName tycon_;
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public boolean hasTycon() {
return tycon_ != null;
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName getTycon() {
return tycon_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.getDefaultInstance() : tycon_;
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeConNameOrBuilder getTyconOrBuilder() {
return getTycon();
}
public static final int ENUM_CON_STR_FIELD_NUMBER = 2;
/**
*
* *Must be a valid identifier*
*
*
* string enum_con_str = 2[json_name = "enumConStr"];
*/
public java.lang.String getEnumConStr() {
java.lang.Object ref = "";
if (enumConCase_ == 2) {
ref = enumCon_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (enumConCase_ == 2) {
enumCon_ = s;
}
return s;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string enum_con_str = 2[json_name = "enumConStr"];
*/
public com.google.protobuf.ByteString
getEnumConStrBytes() {
java.lang.Object ref = "";
if (enumConCase_ == 2) {
ref = enumCon_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (enumConCase_ == 2) {
enumCon_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENUM_CON_INTERNED_STR_FIELD_NUMBER = 3;
/**
*
* *Must be a valid interned identifier*
*
*
* int32 enum_con_interned_str = 3[json_name = "enumConInternedStr"];
*/
public int getEnumConInternedStr() {
if (enumConCase_ == 3) {
return (java.lang.Integer) enumCon_;
}
return 0;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (tycon_ != null) {
output.writeMessage(1, getTycon());
}
if (enumConCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, enumCon_);
}
if (enumConCase_ == 3) {
output.writeInt32(
3, (int)((java.lang.Integer) enumCon_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (tycon_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTycon());
}
if (enumConCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, enumCon_);
}
if (enumConCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
3, (int)((java.lang.Integer) enumCon_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon other = (com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon) obj;
if (hasTycon() != other.hasTycon()) return false;
if (hasTycon()) {
if (!getTycon()
.equals(other.getTycon())) return false;
}
if (!getEnumConCase().equals(other.getEnumConCase())) return false;
switch (enumConCase_) {
case 2:
if (!getEnumConStr()
.equals(other.getEnumConStr())) return false;
break;
case 3:
if (getEnumConInternedStr()
!= other.getEnumConInternedStr()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTycon()) {
hash = (37 * hash) + TYCON_FIELD_NUMBER;
hash = (53 * hash) + getTycon().hashCode();
}
switch (enumConCase_) {
case 2:
hash = (37 * hash) + ENUM_CON_STR_FIELD_NUMBER;
hash = (53 * hash) + getEnumConStr().hashCode();
break;
case 3:
hash = (37 * hash) + ENUM_CON_INTERNED_STR_FIELD_NUMBER;
hash = (53 * hash) + getEnumConInternedStr();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Enum construction ('ExpEnumCon')
* *Available in versions >= 1.6*
*
*
* Protobuf type {@code daml_lf_1.Expr.EnumCon}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.EnumCon)
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumConOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_EnumCon_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_EnumCon_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon.class, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (tyconBuilder_ == null) {
tycon_ = null;
} else {
tycon_ = null;
tyconBuilder_ = null;
}
enumConCase_ = 0;
enumCon_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_EnumCon_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon result = new com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon(this);
if (tyconBuilder_ == null) {
result.tycon_ = tycon_;
} else {
result.tycon_ = tyconBuilder_.build();
}
if (enumConCase_ == 2) {
result.enumCon_ = enumCon_;
}
if (enumConCase_ == 3) {
result.enumCon_ = enumCon_;
}
result.enumConCase_ = enumConCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon.getDefaultInstance()) return this;
if (other.hasTycon()) {
mergeTycon(other.getTycon());
}
switch (other.getEnumConCase()) {
case ENUM_CON_STR: {
enumConCase_ = 2;
enumCon_ = other.enumCon_;
onChanged();
break;
}
case ENUM_CON_INTERNED_STR: {
setEnumConInternedStr(other.getEnumConInternedStr());
break;
}
case ENUMCON_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int enumConCase_ = 0;
private java.lang.Object enumCon_;
public EnumConCase
getEnumConCase() {
return EnumConCase.forNumber(
enumConCase_);
}
public Builder clearEnumCon() {
enumConCase_ = 0;
enumCon_ = null;
onChanged();
return this;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName tycon_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeConNameOrBuilder> tyconBuilder_;
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public boolean hasTycon() {
return tyconBuilder_ != null || tycon_ != null;
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName getTycon() {
if (tyconBuilder_ == null) {
return tycon_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.getDefaultInstance() : tycon_;
} else {
return tyconBuilder_.getMessage();
}
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public Builder setTycon(com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName value) {
if (tyconBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tycon_ = value;
onChanged();
} else {
tyconBuilder_.setMessage(value);
}
return this;
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public Builder setTycon(
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.Builder builderForValue) {
if (tyconBuilder_ == null) {
tycon_ = builderForValue.build();
onChanged();
} else {
tyconBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public Builder mergeTycon(com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName value) {
if (tyconBuilder_ == null) {
if (tycon_ != null) {
tycon_ =
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.newBuilder(tycon_).mergeFrom(value).buildPartial();
} else {
tycon_ = value;
}
onChanged();
} else {
tyconBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public Builder clearTycon() {
if (tyconBuilder_ == null) {
tycon_ = null;
onChanged();
} else {
tycon_ = null;
tyconBuilder_ = null;
}
return this;
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.Builder getTyconBuilder() {
onChanged();
return getTyconFieldBuilder().getBuilder();
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.TypeConNameOrBuilder getTyconOrBuilder() {
if (tyconBuilder_ != null) {
return tyconBuilder_.getMessageOrBuilder();
} else {
return tycon_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.getDefaultInstance() : tycon_;
}
}
/**
*
* Name of the type constructor name
*
*
* .daml_lf_1.TypeConName tycon = 1[json_name = "tycon"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeConNameOrBuilder>
getTyconFieldBuilder() {
if (tyconBuilder_ == null) {
tyconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName, com.digitalasset.daml_lf_1_8.DamlLf1.TypeConName.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.TypeConNameOrBuilder>(
getTycon(),
getParentForChildren(),
isClean());
tycon_ = null;
}
return tyconBuilder_;
}
/**
*
* *Must be a valid identifier*
*
*
* string enum_con_str = 2[json_name = "enumConStr"];
*/
public java.lang.String getEnumConStr() {
java.lang.Object ref = "";
if (enumConCase_ == 2) {
ref = enumCon_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (enumConCase_ == 2) {
enumCon_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string enum_con_str = 2[json_name = "enumConStr"];
*/
public com.google.protobuf.ByteString
getEnumConStrBytes() {
java.lang.Object ref = "";
if (enumConCase_ == 2) {
ref = enumCon_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (enumConCase_ == 2) {
enumCon_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* *Must be a valid identifier*
*
*
* string enum_con_str = 2[json_name = "enumConStr"];
*/
public Builder setEnumConStr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
enumConCase_ = 2;
enumCon_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string enum_con_str = 2[json_name = "enumConStr"];
*/
public Builder clearEnumConStr() {
if (enumConCase_ == 2) {
enumConCase_ = 0;
enumCon_ = null;
onChanged();
}
return this;
}
/**
*
* *Must be a valid identifier*
*
*
* string enum_con_str = 2[json_name = "enumConStr"];
*/
public Builder setEnumConStrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
enumConCase_ = 2;
enumCon_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 enum_con_interned_str = 3[json_name = "enumConInternedStr"];
*/
public int getEnumConInternedStr() {
if (enumConCase_ == 3) {
return (java.lang.Integer) enumCon_;
}
return 0;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 enum_con_interned_str = 3[json_name = "enumConInternedStr"];
*/
public Builder setEnumConInternedStr(int value) {
enumConCase_ = 3;
enumCon_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 enum_con_interned_str = 3[json_name = "enumConInternedStr"];
*/
public Builder clearEnumConInternedStr() {
if (enumConCase_ == 3) {
enumConCase_ = 0;
enumCon_ = null;
onChanged();
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Expr.EnumCon)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Expr.EnumCon)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EnumCon parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EnumCon(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.EnumCon getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StructConOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.StructCon)
com.google.protobuf.MessageOrBuilder {
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
java.util.List
getFieldsList();
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr getFields(int index);
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
int getFieldsCount();
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExprOrBuilder>
getFieldsOrBuilderList();
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExprOrBuilder getFieldsOrBuilder(
int index);
}
/**
*
* Struct Construction ('ExpStructCon')
*
*
* Protobuf type {@code daml_lf_1.Expr.StructCon}
*/
public static final class StructCon extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Expr.StructCon)
StructConOrBuilder {
private static final long serialVersionUID = 0L;
// Use StructCon.newBuilder() to construct.
private StructCon(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StructCon() {
fields_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StructCon();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StructCon(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
fields_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
fields_.add(
input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_StructCon_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_StructCon_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon.class, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon.Builder.class);
}
public static final int FIELDS_FIELD_NUMBER = 1;
private java.util.List fields_;
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public java.util.List getFieldsList() {
return fields_;
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExprOrBuilder>
getFieldsOrBuilderList() {
return fields_;
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public int getFieldsCount() {
return fields_.size();
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr getFields(int index) {
return fields_.get(index);
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExprOrBuilder getFieldsOrBuilder(
int index) {
return fields_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < fields_.size(); i++) {
output.writeMessage(1, fields_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < fields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, fields_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon other = (com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon) obj;
if (!getFieldsList()
.equals(other.getFieldsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getFieldsCount() > 0) {
hash = (37 * hash) + FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getFieldsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Struct Construction ('ExpStructCon')
*
*
* Protobuf type {@code daml_lf_1.Expr.StructCon}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.StructCon)
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructConOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_StructCon_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_StructCon_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon.class, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFieldsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
fieldsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_StructCon_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon result = new com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon(this);
int from_bitField0_ = bitField0_;
if (fieldsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.fields_ = fields_;
} else {
result.fields_ = fieldsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon.getDefaultInstance()) return this;
if (fieldsBuilder_ == null) {
if (!other.fields_.isEmpty()) {
if (fields_.isEmpty()) {
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFieldsIsMutable();
fields_.addAll(other.fields_);
}
onChanged();
}
} else {
if (!other.fields_.isEmpty()) {
if (fieldsBuilder_.isEmpty()) {
fieldsBuilder_.dispose();
fieldsBuilder_ = null;
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000001);
fieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFieldsFieldBuilder() : null;
} else {
fieldsBuilder_.addAllMessages(other.fields_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List fields_ =
java.util.Collections.emptyList();
private void ensureFieldsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
fields_ = new java.util.ArrayList(fields_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExprOrBuilder> fieldsBuilder_;
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public java.util.List getFieldsList() {
if (fieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fields_);
} else {
return fieldsBuilder_.getMessageList();
}
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public int getFieldsCount() {
if (fieldsBuilder_ == null) {
return fields_.size();
} else {
return fieldsBuilder_.getCount();
}
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr getFields(int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index);
} else {
return fieldsBuilder_.getMessage(index);
}
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public Builder setFields(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.set(index, value);
onChanged();
} else {
fieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public Builder setFields(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.set(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public Builder addFields(com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(value);
onChanged();
} else {
fieldsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public Builder addFields(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(index, value);
onChanged();
} else {
fieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public Builder addFields(
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public Builder addFields(
int index, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public Builder addAllFields(
java.lang.Iterable extends com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr> values) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fields_);
onChanged();
} else {
fieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public Builder clearFields() {
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
fieldsBuilder_.clear();
}
return this;
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public Builder removeFields(int index) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.remove(index);
onChanged();
} else {
fieldsBuilder_.remove(index);
}
return this;
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder getFieldsBuilder(
int index) {
return getFieldsFieldBuilder().getBuilder(index);
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExprOrBuilder getFieldsOrBuilder(
int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index); } else {
return fieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public java.util.List extends com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExprOrBuilder>
getFieldsOrBuilderList() {
if (fieldsBuilder_ != null) {
return fieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fields_);
}
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder addFieldsBuilder() {
return getFieldsFieldBuilder().addBuilder(
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.getDefaultInstance());
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder addFieldsBuilder(
int index) {
return getFieldsFieldBuilder().addBuilder(
index, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.getDefaultInstance());
}
/**
*
* Field names and their associated values.
*
*
* repeated .daml_lf_1.FieldWithExpr fields = 1[json_name = "fields"];
*/
public java.util.List
getFieldsBuilderList() {
return getFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExprOrBuilder>
getFieldsFieldBuilder() {
if (fieldsBuilder_ == null) {
fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExpr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.FieldWithExprOrBuilder>(
fields_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
fields_ = null;
}
return fieldsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Expr.StructCon)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Expr.StructCon)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StructCon parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StructCon(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructCon getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StructProjOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.StructProj)
com.google.protobuf.MessageOrBuilder {
/**
*
* *Must be a valid Identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
java.lang.String getFieldStr();
/**
*
* *Must be a valid Identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
com.google.protobuf.ByteString
getFieldStrBytes();
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 3[json_name = "fieldInternedStr"];
*/
int getFieldInternedStr();
/**
*
* struct to be projected.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
boolean hasStruct();
/**
*
* struct to be projected.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr getStruct();
/**
*
* struct to be projected.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getStructOrBuilder();
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj.FieldCase getFieldCase();
}
/**
*
* Struct Projection ('ExpStructProj')
*
*
* Protobuf type {@code daml_lf_1.Expr.StructProj}
*/
public static final class StructProj extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Expr.StructProj)
StructProjOrBuilder {
private static final long serialVersionUID = 0L;
// Use StructProj.newBuilder() to construct.
private StructProj(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StructProj() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StructProj();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StructProj(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
fieldCase_ = 1;
field_ = s;
break;
}
case 18: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder subBuilder = null;
if (struct_ != null) {
subBuilder = struct_.toBuilder();
}
struct_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(struct_);
struct_ = subBuilder.buildPartial();
}
break;
}
case 24: {
fieldCase_ = 3;
field_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_StructProj_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_StructProj_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj.class, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj.Builder.class);
}
private int fieldCase_ = 0;
private java.lang.Object field_;
public enum FieldCase
implements com.google.protobuf.Internal.EnumLite {
FIELD_STR(1),
FIELD_INTERNED_STR(3),
FIELD_NOT_SET(0);
private final int value;
private FieldCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FieldCase valueOf(int value) {
return forNumber(value);
}
public static FieldCase forNumber(int value) {
switch (value) {
case 1: return FIELD_STR;
case 3: return FIELD_INTERNED_STR;
case 0: return FIELD_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public FieldCase
getFieldCase() {
return FieldCase.forNumber(
fieldCase_);
}
public static final int FIELD_STR_FIELD_NUMBER = 1;
/**
*
* *Must be a valid Identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public java.lang.String getFieldStr() {
java.lang.Object ref = "";
if (fieldCase_ == 1) {
ref = field_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (fieldCase_ == 1) {
field_ = s;
}
return s;
}
}
/**
*
* *Must be a valid Identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public com.google.protobuf.ByteString
getFieldStrBytes() {
java.lang.Object ref = "";
if (fieldCase_ == 1) {
ref = field_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (fieldCase_ == 1) {
field_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 3;
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 3[json_name = "fieldInternedStr"];
*/
public int getFieldInternedStr() {
if (fieldCase_ == 3) {
return (java.lang.Integer) field_;
}
return 0;
}
public static final int STRUCT_FIELD_NUMBER = 2;
private com.digitalasset.daml_lf_1_8.DamlLf1.Expr struct_;
/**
*
* struct to be projected.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
public boolean hasStruct() {
return struct_ != null;
}
/**
*
* struct to be projected.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr getStruct() {
return struct_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : struct_;
}
/**
*
* struct to be projected.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getStructOrBuilder() {
return getStruct();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (fieldCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_);
}
if (struct_ != null) {
output.writeMessage(2, getStruct());
}
if (fieldCase_ == 3) {
output.writeInt32(
3, (int)((java.lang.Integer) field_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (fieldCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, field_);
}
if (struct_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getStruct());
}
if (fieldCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
3, (int)((java.lang.Integer) field_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj other = (com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj) obj;
if (hasStruct() != other.hasStruct()) return false;
if (hasStruct()) {
if (!getStruct()
.equals(other.getStruct())) return false;
}
if (!getFieldCase().equals(other.getFieldCase())) return false;
switch (fieldCase_) {
case 1:
if (!getFieldStr()
.equals(other.getFieldStr())) return false;
break;
case 3:
if (getFieldInternedStr()
!= other.getFieldInternedStr()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasStruct()) {
hash = (37 * hash) + STRUCT_FIELD_NUMBER;
hash = (53 * hash) + getStruct().hashCode();
}
switch (fieldCase_) {
case 1:
hash = (37 * hash) + FIELD_STR_FIELD_NUMBER;
hash = (53 * hash) + getFieldStr().hashCode();
break;
case 3:
hash = (37 * hash) + FIELD_INTERNED_STR_FIELD_NUMBER;
hash = (53 * hash) + getFieldInternedStr();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Struct Projection ('ExpStructProj')
*
*
* Protobuf type {@code daml_lf_1.Expr.StructProj}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.StructProj)
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProjOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_StructProj_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_StructProj_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj.class, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (structBuilder_ == null) {
struct_ = null;
} else {
struct_ = null;
structBuilder_ = null;
}
fieldCase_ = 0;
field_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_StructProj_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj result = new com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj(this);
if (fieldCase_ == 1) {
result.field_ = field_;
}
if (fieldCase_ == 3) {
result.field_ = field_;
}
if (structBuilder_ == null) {
result.struct_ = struct_;
} else {
result.struct_ = structBuilder_.build();
}
result.fieldCase_ = fieldCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj.getDefaultInstance()) return this;
if (other.hasStruct()) {
mergeStruct(other.getStruct());
}
switch (other.getFieldCase()) {
case FIELD_STR: {
fieldCase_ = 1;
field_ = other.field_;
onChanged();
break;
}
case FIELD_INTERNED_STR: {
setFieldInternedStr(other.getFieldInternedStr());
break;
}
case FIELD_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int fieldCase_ = 0;
private java.lang.Object field_;
public FieldCase
getFieldCase() {
return FieldCase.forNumber(
fieldCase_);
}
public Builder clearField() {
fieldCase_ = 0;
field_ = null;
onChanged();
return this;
}
/**
*
* *Must be a valid Identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public java.lang.String getFieldStr() {
java.lang.Object ref = "";
if (fieldCase_ == 1) {
ref = field_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (fieldCase_ == 1) {
field_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* *Must be a valid Identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public com.google.protobuf.ByteString
getFieldStrBytes() {
java.lang.Object ref = "";
if (fieldCase_ == 1) {
ref = field_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (fieldCase_ == 1) {
field_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* *Must be a valid Identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public Builder setFieldStr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fieldCase_ = 1;
field_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid Identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public Builder clearFieldStr() {
if (fieldCase_ == 1) {
fieldCase_ = 0;
field_ = null;
onChanged();
}
return this;
}
/**
*
* *Must be a valid Identifier*
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public Builder setFieldStrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fieldCase_ = 1;
field_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 3[json_name = "fieldInternedStr"];
*/
public int getFieldInternedStr() {
if (fieldCase_ == 3) {
return (java.lang.Integer) field_;
}
return 0;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 3[json_name = "fieldInternedStr"];
*/
public Builder setFieldInternedStr(int value) {
fieldCase_ = 3;
field_ = value;
onChanged();
return this;
}
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 3[json_name = "fieldInternedStr"];
*/
public Builder clearFieldInternedStr() {
if (fieldCase_ == 3) {
fieldCase_ = 0;
field_ = null;
onChanged();
}
return this;
}
private com.digitalasset.daml_lf_1_8.DamlLf1.Expr struct_;
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder> structBuilder_;
/**
*
* struct to be projected.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
public boolean hasStruct() {
return structBuilder_ != null || struct_ != null;
}
/**
*
* struct to be projected.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr getStruct() {
if (structBuilder_ == null) {
return struct_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : struct_;
} else {
return structBuilder_.getMessage();
}
}
/**
*
* struct to be projected.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
public Builder setStruct(com.digitalasset.daml_lf_1_8.DamlLf1.Expr value) {
if (structBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
struct_ = value;
onChanged();
} else {
structBuilder_.setMessage(value);
}
return this;
}
/**
*
* struct to be projected.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
public Builder setStruct(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder builderForValue) {
if (structBuilder_ == null) {
struct_ = builderForValue.build();
onChanged();
} else {
structBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* struct to be projected.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
public Builder mergeStruct(com.digitalasset.daml_lf_1_8.DamlLf1.Expr value) {
if (structBuilder_ == null) {
if (struct_ != null) {
struct_ =
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.newBuilder(struct_).mergeFrom(value).buildPartial();
} else {
struct_ = value;
}
onChanged();
} else {
structBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* struct to be projected.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
public Builder clearStruct() {
if (structBuilder_ == null) {
struct_ = null;
onChanged();
} else {
struct_ = null;
structBuilder_ = null;
}
return this;
}
/**
*
* struct to be projected.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder getStructBuilder() {
onChanged();
return getStructFieldBuilder().getBuilder();
}
/**
*
* struct to be projected.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getStructOrBuilder() {
if (structBuilder_ != null) {
return structBuilder_.getMessageOrBuilder();
} else {
return struct_ == null ?
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : struct_;
}
}
/**
*
* struct to be projected.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder>
getStructFieldBuilder() {
if (structBuilder_ == null) {
structBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.digitalasset.daml_lf_1_8.DamlLf1.Expr, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder, com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder>(
getStruct(),
getParentForChildren(),
isClean());
struct_ = null;
}
return structBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:daml_lf_1.Expr.StructProj)
}
// @@protoc_insertion_point(class_scope:daml_lf_1.Expr.StructProj)
private static final com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj();
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StructProj parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StructProj(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructProj getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StructUpdOrBuilder extends
// @@protoc_insertion_point(interface_extends:daml_lf_1.Expr.StructUpd)
com.google.protobuf.MessageOrBuilder {
/**
*
* *Must be a valid identifier*.
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
java.lang.String getFieldStr();
/**
*
* *Must be a valid identifier*.
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
com.google.protobuf.ByteString
getFieldStrBytes();
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 4[json_name = "fieldInternedStr"];
*/
int getFieldInternedStr();
/**
*
* Actual struct being updated.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
boolean hasStruct();
/**
*
* Actual struct being updated.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr getStruct();
/**
*
* Actual struct being updated.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getStructOrBuilder();
/**
*
* Value to which the record is udpated.
*
*
* .daml_lf_1.Expr update = 3[json_name = "update"];
*/
boolean hasUpdate();
/**
*
* Value to which the record is udpated.
*
*
* .daml_lf_1.Expr update = 3[json_name = "update"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.Expr getUpdate();
/**
*
* Value to which the record is udpated.
*
*
* .daml_lf_1.Expr update = 3[json_name = "update"];
*/
com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getUpdateOrBuilder();
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd.FieldCase getFieldCase();
}
/**
*
* Struct update ('ExpTuplUpdate')
*
*
* Protobuf type {@code daml_lf_1.Expr.StructUpd}
*/
public static final class StructUpd extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:daml_lf_1.Expr.StructUpd)
StructUpdOrBuilder {
private static final long serialVersionUID = 0L;
// Use StructUpd.newBuilder() to construct.
private StructUpd(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StructUpd() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StructUpd();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StructUpd(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
fieldCase_ = 1;
field_ = s;
break;
}
case 18: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder subBuilder = null;
if (struct_ != null) {
subBuilder = struct_.toBuilder();
}
struct_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(struct_);
struct_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.Builder subBuilder = null;
if (update_ != null) {
subBuilder = update_.toBuilder();
}
update_ = input.readMessage(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(update_);
update_ = subBuilder.buildPartial();
}
break;
}
case 32: {
fieldCase_ = 4;
field_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_StructUpd_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_StructUpd_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd.class, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd.Builder.class);
}
private int fieldCase_ = 0;
private java.lang.Object field_;
public enum FieldCase
implements com.google.protobuf.Internal.EnumLite {
FIELD_STR(1),
FIELD_INTERNED_STR(4),
FIELD_NOT_SET(0);
private final int value;
private FieldCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FieldCase valueOf(int value) {
return forNumber(value);
}
public static FieldCase forNumber(int value) {
switch (value) {
case 1: return FIELD_STR;
case 4: return FIELD_INTERNED_STR;
case 0: return FIELD_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public FieldCase
getFieldCase() {
return FieldCase.forNumber(
fieldCase_);
}
public static final int FIELD_STR_FIELD_NUMBER = 1;
/**
*
* *Must be a valid identifier*.
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public java.lang.String getFieldStr() {
java.lang.Object ref = "";
if (fieldCase_ == 1) {
ref = field_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (fieldCase_ == 1) {
field_ = s;
}
return s;
}
}
/**
*
* *Must be a valid identifier*.
*
*
* string field_str = 1[json_name = "fieldStr"];
*/
public com.google.protobuf.ByteString
getFieldStrBytes() {
java.lang.Object ref = "";
if (fieldCase_ == 1) {
ref = field_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (fieldCase_ == 1) {
field_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FIELD_INTERNED_STR_FIELD_NUMBER = 4;
/**
*
* *Must be a valid interned identifier*
*
*
* int32 field_interned_str = 4[json_name = "fieldInternedStr"];
*/
public int getFieldInternedStr() {
if (fieldCase_ == 4) {
return (java.lang.Integer) field_;
}
return 0;
}
public static final int STRUCT_FIELD_NUMBER = 2;
private com.digitalasset.daml_lf_1_8.DamlLf1.Expr struct_;
/**
*
* Actual struct being updated.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
public boolean hasStruct() {
return struct_ != null;
}
/**
*
* Actual struct being updated.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr getStruct() {
return struct_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : struct_;
}
/**
*
* Actual struct being updated.
*
*
* .daml_lf_1.Expr struct = 2[json_name = "struct"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getStructOrBuilder() {
return getStruct();
}
public static final int UPDATE_FIELD_NUMBER = 3;
private com.digitalasset.daml_lf_1_8.DamlLf1.Expr update_;
/**
*
* Value to which the record is udpated.
*
*
* .daml_lf_1.Expr update = 3[json_name = "update"];
*/
public boolean hasUpdate() {
return update_ != null;
}
/**
*
* Value to which the record is udpated.
*
*
* .daml_lf_1.Expr update = 3[json_name = "update"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr getUpdate() {
return update_ == null ? com.digitalasset.daml_lf_1_8.DamlLf1.Expr.getDefaultInstance() : update_;
}
/**
*
* Value to which the record is udpated.
*
*
* .daml_lf_1.Expr update = 3[json_name = "update"];
*/
public com.digitalasset.daml_lf_1_8.DamlLf1.ExprOrBuilder getUpdateOrBuilder() {
return getUpdate();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (fieldCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_);
}
if (struct_ != null) {
output.writeMessage(2, getStruct());
}
if (update_ != null) {
output.writeMessage(3, getUpdate());
}
if (fieldCase_ == 4) {
output.writeInt32(
4, (int)((java.lang.Integer) field_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (fieldCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, field_);
}
if (struct_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getStruct());
}
if (update_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getUpdate());
}
if (fieldCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
4, (int)((java.lang.Integer) field_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd)) {
return super.equals(obj);
}
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd other = (com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd) obj;
if (hasStruct() != other.hasStruct()) return false;
if (hasStruct()) {
if (!getStruct()
.equals(other.getStruct())) return false;
}
if (hasUpdate() != other.hasUpdate()) return false;
if (hasUpdate()) {
if (!getUpdate()
.equals(other.getUpdate())) return false;
}
if (!getFieldCase().equals(other.getFieldCase())) return false;
switch (fieldCase_) {
case 1:
if (!getFieldStr()
.equals(other.getFieldStr())) return false;
break;
case 4:
if (getFieldInternedStr()
!= other.getFieldInternedStr()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasStruct()) {
hash = (37 * hash) + STRUCT_FIELD_NUMBER;
hash = (53 * hash) + getStruct().hashCode();
}
if (hasUpdate()) {
hash = (37 * hash) + UPDATE_FIELD_NUMBER;
hash = (53 * hash) + getUpdate().hashCode();
}
switch (fieldCase_) {
case 1:
hash = (37 * hash) + FIELD_STR_FIELD_NUMBER;
hash = (53 * hash) + getFieldStr().hashCode();
break;
case 4:
hash = (37 * hash) + FIELD_INTERNED_STR_FIELD_NUMBER;
hash = (53 * hash) + getFieldInternedStr();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Struct update ('ExpTuplUpdate')
*
*
* Protobuf type {@code daml_lf_1.Expr.StructUpd}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:daml_lf_1.Expr.StructUpd)
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpdOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_StructUpd_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_StructUpd_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd.class, com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd.Builder.class);
}
// Construct using com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (structBuilder_ == null) {
struct_ = null;
} else {
struct_ = null;
structBuilder_ = null;
}
if (updateBuilder_ == null) {
update_ = null;
} else {
update_ = null;
updateBuilder_ = null;
}
fieldCase_ = 0;
field_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.internal_static_daml_lf_1_Expr_StructUpd_descriptor;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd getDefaultInstanceForType() {
return com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd.getDefaultInstance();
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd build() {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd buildPartial() {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd result = new com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd(this);
if (fieldCase_ == 1) {
result.field_ = field_;
}
if (fieldCase_ == 4) {
result.field_ = field_;
}
if (structBuilder_ == null) {
result.struct_ = struct_;
} else {
result.struct_ = structBuilder_.build();
}
if (updateBuilder_ == null) {
result.update_ = update_;
} else {
result.update_ = updateBuilder_.build();
}
result.fieldCase_ = fieldCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd) {
return mergeFrom((com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd other) {
if (other == com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd.getDefaultInstance()) return this;
if (other.hasStruct()) {
mergeStruct(other.getStruct());
}
if (other.hasUpdate()) {
mergeUpdate(other.getUpdate());
}
switch (other.getFieldCase()) {
case FIELD_STR: {
fieldCase_ = 1;
field_ = other.field_;
onChanged();
break;
}
case FIELD_INTERNED_STR: {
setFieldInternedStr(other.getFieldInternedStr());
break;
}
case FIELD_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.digitalasset.daml_lf_1_8.DamlLf1.Expr.StructUpd) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int fieldCase_ = 0;
private java.lang.Object field_;
public FieldCase
getFieldCase() {
return FieldCase.forNumber(
fieldCase_);
}
public Builder clearField() {
fieldCase_ = 0;
field_ = null;
onChanged();
return this;
}
/**
*