/core/src/main/java/org/bitcoin/paymentchannel/Protos.java
Java | 8084 lines | 5525 code | 450 blank | 2109 comment | 830 complexity | 90fedbd2bcfe7f60ebb0059125ba9f1c MD5 | raw file
Possible License(s): Apache-2.0
Large files files are truncated, but you can click here to view the full file
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: paymentchannel.proto
- package org.bitcoin.paymentchannel;
- public final class Protos {
- private Protos() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- }
- public interface TwoWayChannelMessageOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
- // required .paymentchannels.TwoWayChannelMessage.MessageType type = 1;
- /**
- * <code>required .paymentchannels.TwoWayChannelMessage.MessageType type = 1;</code>
- *
- * <pre>
- * This is required so if a new message type is added in future, old software aborts trying
- * to read the message as early as possible. If the message doesn't parse, the socket should
- * be closed.
- * </pre>
- */
- boolean hasType();
- /**
- * <code>required .paymentchannels.TwoWayChannelMessage.MessageType type = 1;</code>
- *
- * <pre>
- * This is required so if a new message type is added in future, old software aborts trying
- * to read the message as early as possible. If the message doesn't parse, the socket should
- * be closed.
- * </pre>
- */
- org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage.MessageType getType();
- // optional .paymentchannels.ClientVersion client_version = 2;
- /**
- * <code>optional .paymentchannels.ClientVersion client_version = 2;</code>
- *
- * <pre>
- * Now one optional field for each message. Only the field specified by type should be read.
- * </pre>
- */
- boolean hasClientVersion();
- /**
- * <code>optional .paymentchannels.ClientVersion client_version = 2;</code>
- *
- * <pre>
- * Now one optional field for each message. Only the field specified by type should be read.
- * </pre>
- */
- org.bitcoin.paymentchannel.Protos.ClientVersion getClientVersion();
- /**
- * <code>optional .paymentchannels.ClientVersion client_version = 2;</code>
- *
- * <pre>
- * Now one optional field for each message. Only the field specified by type should be read.
- * </pre>
- */
- org.bitcoin.paymentchannel.Protos.ClientVersionOrBuilder getClientVersionOrBuilder();
- // optional .paymentchannels.ServerVersion server_version = 3;
- /**
- * <code>optional .paymentchannels.ServerVersion server_version = 3;</code>
- */
- boolean hasServerVersion();
- /**
- * <code>optional .paymentchannels.ServerVersion server_version = 3;</code>
- */
- org.bitcoin.paymentchannel.Protos.ServerVersion getServerVersion();
- /**
- * <code>optional .paymentchannels.ServerVersion server_version = 3;</code>
- */
- org.bitcoin.paymentchannel.Protos.ServerVersionOrBuilder getServerVersionOrBuilder();
- // optional .paymentchannels.Initiate initiate = 4;
- /**
- * <code>optional .paymentchannels.Initiate initiate = 4;</code>
- */
- boolean hasInitiate();
- /**
- * <code>optional .paymentchannels.Initiate initiate = 4;</code>
- */
- org.bitcoin.paymentchannel.Protos.Initiate getInitiate();
- /**
- * <code>optional .paymentchannels.Initiate initiate = 4;</code>
- */
- org.bitcoin.paymentchannel.Protos.InitiateOrBuilder getInitiateOrBuilder();
- // optional .paymentchannels.ProvideRefund provide_refund = 5;
- /**
- * <code>optional .paymentchannels.ProvideRefund provide_refund = 5;</code>
- */
- boolean hasProvideRefund();
- /**
- * <code>optional .paymentchannels.ProvideRefund provide_refund = 5;</code>
- */
- org.bitcoin.paymentchannel.Protos.ProvideRefund getProvideRefund();
- /**
- * <code>optional .paymentchannels.ProvideRefund provide_refund = 5;</code>
- */
- org.bitcoin.paymentchannel.Protos.ProvideRefundOrBuilder getProvideRefundOrBuilder();
- // optional .paymentchannels.ReturnRefund return_refund = 6;
- /**
- * <code>optional .paymentchannels.ReturnRefund return_refund = 6;</code>
- */
- boolean hasReturnRefund();
- /**
- * <code>optional .paymentchannels.ReturnRefund return_refund = 6;</code>
- */
- org.bitcoin.paymentchannel.Protos.ReturnRefund getReturnRefund();
- /**
- * <code>optional .paymentchannels.ReturnRefund return_refund = 6;</code>
- */
- org.bitcoin.paymentchannel.Protos.ReturnRefundOrBuilder getReturnRefundOrBuilder();
- // optional .paymentchannels.ProvideContract provide_contract = 7;
- /**
- * <code>optional .paymentchannels.ProvideContract provide_contract = 7;</code>
- */
- boolean hasProvideContract();
- /**
- * <code>optional .paymentchannels.ProvideContract provide_contract = 7;</code>
- */
- org.bitcoin.paymentchannel.Protos.ProvideContract getProvideContract();
- /**
- * <code>optional .paymentchannels.ProvideContract provide_contract = 7;</code>
- */
- org.bitcoin.paymentchannel.Protos.ProvideContractOrBuilder getProvideContractOrBuilder();
- // optional .paymentchannels.UpdatePayment update_payment = 8;
- /**
- * <code>optional .paymentchannels.UpdatePayment update_payment = 8;</code>
- */
- boolean hasUpdatePayment();
- /**
- * <code>optional .paymentchannels.UpdatePayment update_payment = 8;</code>
- */
- org.bitcoin.paymentchannel.Protos.UpdatePayment getUpdatePayment();
- /**
- * <code>optional .paymentchannels.UpdatePayment update_payment = 8;</code>
- */
- org.bitcoin.paymentchannel.Protos.UpdatePaymentOrBuilder getUpdatePaymentOrBuilder();
- // optional .paymentchannels.Close close = 9;
- /**
- * <code>optional .paymentchannels.Close close = 9;</code>
- */
- boolean hasClose();
- /**
- * <code>optional .paymentchannels.Close close = 9;</code>
- */
- org.bitcoin.paymentchannel.Protos.Close getClose();
- /**
- * <code>optional .paymentchannels.Close close = 9;</code>
- */
- org.bitcoin.paymentchannel.Protos.CloseOrBuilder getCloseOrBuilder();
- // optional .paymentchannels.Error error = 10;
- /**
- * <code>optional .paymentchannels.Error error = 10;</code>
- */
- boolean hasError();
- /**
- * <code>optional .paymentchannels.Error error = 10;</code>
- */
- org.bitcoin.paymentchannel.Protos.Error getError();
- /**
- * <code>optional .paymentchannels.Error error = 10;</code>
- */
- org.bitcoin.paymentchannel.Protos.ErrorOrBuilder getErrorOrBuilder();
- }
- /**
- * Protobuf type {@code paymentchannels.TwoWayChannelMessage}
- *
- * <pre>
- * This message is designed to be either sent raw over the network (e.g. length prefixed) or embedded inside another
- * protocol that is being extended to support micropayments. In this file "primary" typically can be read as "client"
- * and "secondary" as "server".
- * </pre>
- */
- public static final class TwoWayChannelMessage extends
- com.google.protobuf.GeneratedMessage
- implements TwoWayChannelMessageOrBuilder {
- // Use TwoWayChannelMessage.newBuilder() to construct.
- private TwoWayChannelMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private TwoWayChannelMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
- private static final TwoWayChannelMessage defaultInstance;
- public static TwoWayChannelMessage getDefaultInstance() {
- return defaultInstance;
- }
- public TwoWayChannelMessage getDefaultInstanceForType() {
- return defaultInstance;
- }
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private TwoWayChannelMessage(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- 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;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 8: {
- int rawValue = input.readEnum();
- org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage.MessageType value = org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage.MessageType.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(1, rawValue);
- } else {
- bitField0_ |= 0x00000001;
- type_ = value;
- }
- break;
- }
- case 18: {
- org.bitcoin.paymentchannel.Protos.ClientVersion.Builder subBuilder = null;
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- subBuilder = clientVersion_.toBuilder();
- }
- clientVersion_ = input.readMessage(org.bitcoin.paymentchannel.Protos.ClientVersion.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(clientVersion_);
- clientVersion_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000002;
- break;
- }
- case 26: {
- org.bitcoin.paymentchannel.Protos.ServerVersion.Builder subBuilder = null;
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- subBuilder = serverVersion_.toBuilder();
- }
- serverVersion_ = input.readMessage(org.bitcoin.paymentchannel.Protos.ServerVersion.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(serverVersion_);
- serverVersion_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000004;
- break;
- }
- case 34: {
- org.bitcoin.paymentchannel.Protos.Initiate.Builder subBuilder = null;
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- subBuilder = initiate_.toBuilder();
- }
- initiate_ = input.readMessage(org.bitcoin.paymentchannel.Protos.Initiate.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(initiate_);
- initiate_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000008;
- break;
- }
- case 42: {
- org.bitcoin.paymentchannel.Protos.ProvideRefund.Builder subBuilder = null;
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- subBuilder = provideRefund_.toBuilder();
- }
- provideRefund_ = input.readMessage(org.bitcoin.paymentchannel.Protos.ProvideRefund.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(provideRefund_);
- provideRefund_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000010;
- break;
- }
- case 50: {
- org.bitcoin.paymentchannel.Protos.ReturnRefund.Builder subBuilder = null;
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- subBuilder = returnRefund_.toBuilder();
- }
- returnRefund_ = input.readMessage(org.bitcoin.paymentchannel.Protos.ReturnRefund.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(returnRefund_);
- returnRefund_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000020;
- break;
- }
- case 58: {
- org.bitcoin.paymentchannel.Protos.ProvideContract.Builder subBuilder = null;
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- subBuilder = provideContract_.toBuilder();
- }
- provideContract_ = input.readMessage(org.bitcoin.paymentchannel.Protos.ProvideContract.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(provideContract_);
- provideContract_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000040;
- break;
- }
- case 66: {
- org.bitcoin.paymentchannel.Protos.UpdatePayment.Builder subBuilder = null;
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- subBuilder = updatePayment_.toBuilder();
- }
- updatePayment_ = input.readMessage(org.bitcoin.paymentchannel.Protos.UpdatePayment.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(updatePayment_);
- updatePayment_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000080;
- break;
- }
- case 74: {
- org.bitcoin.paymentchannel.Protos.Close.Builder subBuilder = null;
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- subBuilder = close_.toBuilder();
- }
- close_ = input.readMessage(org.bitcoin.paymentchannel.Protos.Close.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(close_);
- close_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000100;
- break;
- }
- case 82: {
- org.bitcoin.paymentchannel.Protos.Error.Builder subBuilder = null;
- if (((bitField0_ & 0x00000200) == 0x00000200)) {
- subBuilder = error_.toBuilder();
- }
- error_ = input.readMessage(org.bitcoin.paymentchannel.Protos.Error.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(error_);
- error_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000200;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.bitcoin.paymentchannel.Protos.internal_static_paymentchannels_TwoWayChannelMessage_descriptor;
- }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.bitcoin.paymentchannel.Protos.internal_static_paymentchannels_TwoWayChannelMessage_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage.class, org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage.Builder.class);
- }
- public static com.google.protobuf.Parser<TwoWayChannelMessage> PARSER =
- new com.google.protobuf.AbstractParser<TwoWayChannelMessage>() {
- public TwoWayChannelMessage parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new TwoWayChannelMessage(input, extensionRegistry);
- }
- };
- @java.lang.Override
- public com.google.protobuf.Parser<TwoWayChannelMessage> getParserForType() {
- return PARSER;
- }
- /**
- * Protobuf enum {@code paymentchannels.TwoWayChannelMessage.MessageType}
- */
- public enum MessageType
- implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * <code>CLIENT_VERSION = 1;</code>
- */
- CLIENT_VERSION(0, 1),
- /**
- * <code>SERVER_VERSION = 2;</code>
- */
- SERVER_VERSION(1, 2),
- /**
- * <code>INITIATE = 3;</code>
- */
- INITIATE(2, 3),
- /**
- * <code>PROVIDE_REFUND = 4;</code>
- */
- PROVIDE_REFUND(3, 4),
- /**
- * <code>RETURN_REFUND = 5;</code>
- */
- RETURN_REFUND(4, 5),
- /**
- * <code>PROVIDE_CONTRACT = 6;</code>
- */
- PROVIDE_CONTRACT(5, 6),
- /**
- * <code>CHANNEL_OPEN = 7;</code>
- *
- * <pre>
- * Note that there are no optional fields set for CHANNEL_OPEN, it is sent from the
- * secondary to the primary to indicate that the provided contract was received,
- * verified, and broadcast successfully and the primary can now provide UPDATE messages
- * at will to begin paying secondary. If the channel is interrupted after the
- * CHANNEL_OPEN message (ie closed without an explicit CLOSE or ERROR) the primary may
- * reopen the channel by setting the contract transaction hash in its CLIENT_VERSION
- * message.
- * </pre>
- */
- CHANNEL_OPEN(6, 7),
- /**
- * <code>UPDATE_PAYMENT = 8;</code>
- */
- UPDATE_PAYMENT(7, 8),
- /**
- * <code>CLOSE = 9;</code>
- *
- * <pre>
- * Either side can send this message. If the client sends it to the server, then the server
- * takes the most recent signature it received in an UPDATE_PAYMENT and uses it to create a
- * valid transaction, which it then broadcasts on the network.
- *
- * If the server sends it to the client, then it can either be a simple "good bye" message or
- * it can include the fully signed close transaction and give it back so the client can
- * eventually broadcast it as well, in case the server fails to do so for some reason (and
- * more usefully so the client can build on it). In that case the server replies to a CLOSE
- * with another CLOSE and then disconnects.
- * </pre>
- */
- CLOSE(8, 9),
- /**
- * <code>ERROR = 10;</code>
- *
- * <pre>
- * Used to indicate an error condition.
- * Both parties should make an effort to send either an ERROR or a CLOSE immediately
- * before closing the socket (unless they just received an ERROR or a CLOSE). This is important
- * because the protocol may not run over TCP.
- * </pre>
- */
- ERROR(9, 10),
- ;
- /**
- * <code>CLIENT_VERSION = 1;</code>
- */
- public static final int CLIENT_VERSION_VALUE = 1;
- /**
- * <code>SERVER_VERSION = 2;</code>
- */
- public static final int SERVER_VERSION_VALUE = 2;
- /**
- * <code>INITIATE = 3;</code>
- */
- public static final int INITIATE_VALUE = 3;
- /**
- * <code>PROVIDE_REFUND = 4;</code>
- */
- public static final int PROVIDE_REFUND_VALUE = 4;
- /**
- * <code>RETURN_REFUND = 5;</code>
- */
- public static final int RETURN_REFUND_VALUE = 5;
- /**
- * <code>PROVIDE_CONTRACT = 6;</code>
- */
- public static final int PROVIDE_CONTRACT_VALUE = 6;
- /**
- * <code>CHANNEL_OPEN = 7;</code>
- *
- * <pre>
- * Note that there are no optional fields set for CHANNEL_OPEN, it is sent from the
- * secondary to the primary to indicate that the provided contract was received,
- * verified, and broadcast successfully and the primary can now provide UPDATE messages
- * at will to begin paying secondary. If the channel is interrupted after the
- * CHANNEL_OPEN message (ie closed without an explicit CLOSE or ERROR) the primary may
- * reopen the channel by setting the contract transaction hash in its CLIENT_VERSION
- * message.
- * </pre>
- */
- public static final int CHANNEL_OPEN_VALUE = 7;
- /**
- * <code>UPDATE_PAYMENT = 8;</code>
- */
- public static final int UPDATE_PAYMENT_VALUE = 8;
- /**
- * <code>CLOSE = 9;</code>
- *
- * <pre>
- * Either side can send this message. If the client sends it to the server, then the server
- * takes the most recent signature it received in an UPDATE_PAYMENT and uses it to create a
- * valid transaction, which it then broadcasts on the network.
- *
- * If the server sends it to the client, then it can either be a simple "good bye" message or
- * it can include the fully signed close transaction and give it back so the client can
- * eventually broadcast it as well, in case the server fails to do so for some reason (and
- * more usefully so the client can build on it). In that case the server replies to a CLOSE
- * with another CLOSE and then disconnects.
- * </pre>
- */
- public static final int CLOSE_VALUE = 9;
- /**
- * <code>ERROR = 10;</code>
- *
- * <pre>
- * Used to indicate an error condition.
- * Both parties should make an effort to send either an ERROR or a CLOSE immediately
- * before closing the socket (unless they just received an ERROR or a CLOSE). This is important
- * because the protocol may not run over TCP.
- * </pre>
- */
- public static final int ERROR_VALUE = 10;
- public final int getNumber() { return value; }
- public static MessageType valueOf(int value) {
- switch (value) {
- case 1: return CLIENT_VERSION;
- case 2: return SERVER_VERSION;
- case 3: return INITIATE;
- case 4: return PROVIDE_REFUND;
- case 5: return RETURN_REFUND;
- case 6: return PROVIDE_CONTRACT;
- case 7: return CHANNEL_OPEN;
- case 8: return UPDATE_PAYMENT;
- case 9: return CLOSE;
- case 10: return ERROR;
- default: return null;
- }
- }
- public static com.google.protobuf.Internal.EnumLiteMap<MessageType>
- internalGetValueMap() {
- return internalValueMap;
- }
- private static com.google.protobuf.Internal.EnumLiteMap<MessageType>
- internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<MessageType>() {
- public MessageType findValueByNumber(int number) {
- return MessageType.valueOf(number);
- }
- };
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage.getDescriptor().getEnumTypes().get(0);
- }
- private static final MessageType[] VALUES = values();
- public static MessageType valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
- private final int index;
- private final int value;
- private MessageType(int index, int value) {
- this.index = index;
- this.value = value;
- }
- // @@protoc_insertion_point(enum_scope:paymentchannels.TwoWayChannelMessage.MessageType)
- }
- private int bitField0_;
- // required .paymentchannels.TwoWayChannelMessage.MessageType type = 1;
- public static final int TYPE_FIELD_NUMBER = 1;
- private org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage.MessageType type_;
- /**
- * <code>required .paymentchannels.TwoWayChannelMessage.MessageType type = 1;</code>
- *
- * <pre>
- * This is required so if a new message type is added in future, old software aborts trying
- * to read the message as early as possible. If the message doesn't parse, the socket should
- * be closed.
- * </pre>
- */
- public boolean hasType() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>required .paymentchannels.TwoWayChannelMessage.MessageType type = 1;</code>
- *
- * <pre>
- * This is required so if a new message type is added in future, old software aborts trying
- * to read the message as early as possible. If the message doesn't parse, the socket should
- * be closed.
- * </pre>
- */
- public org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage.MessageType getType() {
- return type_;
- }
- // optional .paymentchannels.ClientVersion client_version = 2;
- public static final int CLIENT_VERSION_FIELD_NUMBER = 2;
- private org.bitcoin.paymentchannel.Protos.ClientVersion clientVersion_;
- /**
- * <code>optional .paymentchannels.ClientVersion client_version = 2;</code>
- *
- * <pre>
- * Now one optional field for each message. Only the field specified by type should be read.
- * </pre>
- */
- public boolean hasClientVersion() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional .paymentchannels.ClientVersion client_version = 2;</code>
- *
- * <pre>
- * Now one optional field for each message. Only the field specified by type should be read.
- * </pre>
- */
- public org.bitcoin.paymentchannel.Protos.ClientVersion getClientVersion() {
- return clientVersion_;
- }
- /**
- * <code>optional .paymentchannels.ClientVersion client_version = 2;</code>
- *
- * <pre>
- * Now one optional field for each message. Only the field specified by type should be read.
- * </pre>
- */
- public org.bitcoin.paymentchannel.Protos.ClientVersionOrBuilder getClientVersionOrBuilder() {
- return clientVersion_;
- }
- // optional .paymentchannels.ServerVersion server_version = 3;
- public static final int SERVER_VERSION_FIELD_NUMBER = 3;
- private org.bitcoin.paymentchannel.Protos.ServerVersion serverVersion_;
- /**
- * <code>optional .paymentchannels.ServerVersion server_version = 3;</code>
- */
- public boolean hasServerVersion() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional .paymentchannels.ServerVersion server_version = 3;</code>
- */
- public org.bitcoin.paymentchannel.Protos.ServerVersion getServerVersion() {
- return serverVersion_;
- }
- /**
- * <code>optional .paymentchannels.ServerVersion server_version = 3;</code>
- */
- public org.bitcoin.paymentchannel.Protos.ServerVersionOrBuilder getServerVersionOrBuilder() {
- return serverVersion_;
- }
- // optional .paymentchannels.Initiate initiate = 4;
- public static final int INITIATE_FIELD_NUMBER = 4;
- private org.bitcoin.paymentchannel.Protos.Initiate initiate_;
- /**
- * <code>optional .paymentchannels.Initiate initiate = 4;</code>
- */
- public boolean hasInitiate() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional .paymentchannels.Initiate initiate = 4;</code>
- */
- public org.bitcoin.paymentchannel.Protos.Initiate getInitiate() {
- return initiate_;
- }
- /**
- * <code>optional .paymentchannels.Initiate initiate = 4;</code>
- */
- public org.bitcoin.paymentchannel.Protos.InitiateOrBuilder getInitiateOrBuilder() {
- return initiate_;
- }
- // optional .paymentchannels.ProvideRefund provide_refund = 5;
- public static final int PROVIDE_REFUND_FIELD_NUMBER = 5;
- private org.bitcoin.paymentchannel.Protos.ProvideRefund provideRefund_;
- /**
- * <code>optional .paymentchannels.ProvideRefund provide_refund = 5;</code>
- */
- public boolean hasProvideRefund() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * <code>optional .paymentchannels.ProvideRefund provide_refund = 5;</code>
- */
- public org.bitcoin.paymentchannel.Protos.ProvideRefund getProvideRefund() {
- return provideRefund_;
- }
- /**
- * <code>optional .paymentchannels.ProvideRefund provide_refund = 5;</code>
- */
- public org.bitcoin.paymentchannel.Protos.ProvideRefundOrBuilder getProvideRefundOrBuilder() {
- return provideRefund_;
- }
- // optional .paymentchannels.ReturnRefund return_refund = 6;
- public static final int RETURN_REFUND_FIELD_NUMBER = 6;
- private org.bitcoin.paymentchannel.Protos.ReturnRefund returnRefund_;
- /**
- * <code>optional .paymentchannels.ReturnRefund return_refund = 6;</code>
- */
- public boolean hasReturnRefund() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
- }
- /**
- * <code>optional .paymentchannels.ReturnRefund return_refund = 6;</code>
- */
- public org.bitcoin.paymentchannel.Protos.ReturnRefund getReturnRefund() {
- return returnRefund_;
- }
- /**
- * <code>optional .paymentchannels.ReturnRefund return_refund = 6;</code>
- */
- public org.bitcoin.paymentchannel.Protos.ReturnRefundOrBuilder getReturnRefundOrBuilder() {
- return returnRefund_;
- }
- // optional .paymentchannels.ProvideContract provide_contract = 7;
- public static final int PROVIDE_CONTRACT_FIELD_NUMBER = 7;
- private org.bitcoin.paymentchannel.Protos.ProvideContract provideContract_;
- /**
- * <code>optional .paymentchannels.ProvideContract provide_contract = 7;</code>
- */
- public boolean hasProvideContract() {
- return ((bitField0_ & 0x00000040) == 0x00000040);
- }
- /**
- * <code>optional .paymentchannels.ProvideContract provide_contract = 7;</code>
- */
- public org.bitcoin.paymentchannel.Protos.ProvideContract getProvideContract() {
- return provideContract_;
- }
- /**
- * <code>optional .paymentchannels.ProvideContract provide_contract = 7;</code>
- */
- public org.bitcoin.paymentchannel.Protos.ProvideContractOrBuilder getProvideContractOrBuilder() {
- return provideContract_;
- }
- // optional .paymentchannels.UpdatePayment update_payment = 8;
- public static final int UPDATE_PAYMENT_FIELD_NUMBER = 8;
- private org.bitcoin.paymentchannel.Protos.UpdatePayment updatePayment_;
- /**
- * <code>optional .paymentchannels.UpdatePayment update_payment = 8;</code>
- */
- public boolean hasUpdatePayment() {
- return ((bitField0_ & 0x00000080) == 0x00000080);
- }
- /**
- * <code>optional .paymentchannels.UpdatePayment update_payment = 8;</code>
- */
- public org.bitcoin.paymentchannel.Protos.UpdatePayment getUpdatePayment() {
- return updatePayment_;
- }
- /**
- * <code>optional .paymentchannels.UpdatePayment update_payment = 8;</code>
- */
- public org.bitcoin.paymentchannel.Protos.UpdatePaymentOrBuilder getUpdatePaymentOrBuilder() {
- return updatePayment_;
- }
- // optional .paymentchannels.Close close = 9;
- public static final int CLOSE_FIELD_NUMBER = 9;
- private org.bitcoin.paymentchannel.Protos.Close close_;
- /**
- * <code>optional .paymentchannels.Close close = 9;</code>
- */
- public boolean hasClose() {
- return ((bitField0_ & 0x00000100) == 0x00000100);
- }
- /**
- * <code>optional .paymentchannels.Close close = 9;</code>
- */
- public org.bitcoin.paymentchannel.Protos.Close getClose() {
- return close_;
- }
- /**
- * <code>optional .paymentchannels.Close close = 9;</code>
- */
- public org.bitcoin.paymentchannel.Protos.CloseOrBuilder getCloseOrBuilder() {
- return close_;
- }
- // optional .paymentchannels.Error error = 10;
- public static final int ERROR_FIELD_NUMBER = 10;
- private org.bitcoin.paymentchannel.Protos.Error error_;
- /**
- * <code>optional .paymentchannels.Error error = 10;</code>
- */
- public boolean hasError() {
- return ((bitField0_ & 0x00000200) == 0x00000200);
- }
- /**
- * <code>optional .paymentchannels.Error error = 10;</code>
- */
- public org.bitcoin.paymentchannel.Protos.Error getError() {
- return error_;
- }
- /**
- * <code>optional .paymentchannels.Error error = 10;</code>
- */
- public org.bitcoin.paymentchannel.Protos.ErrorOrBuilder getErrorOrBuilder() {
- return error_;
- }
- private void initFields() {
- type_ = org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage.MessageType.CLIENT_VERSION;
- clientVersion_ = org.bitcoin.paymentchannel.Protos.ClientVersion.getDefaultInstance();
- serverVersion_ = org.bitcoin.paymentchannel.Protos.ServerVersion.getDefaultInstance();
- initiate_ = org.bitcoin.paymentchannel.Protos.Initiate.getDefaultInstance();
- provideRefund_ = org.bitcoin.paymentchannel.Protos.ProvideRefund.getDefaultInstance();
- returnRefund_ = org.bitcoin.paymentchannel.Protos.ReturnRefund.getDefaultInstance();
- provideContract_ = org.bitcoin.paymentchannel.Protos.ProvideContract.getDefaultInstance();
- updatePayment_ = org.bitcoin.paymentchannel.Protos.UpdatePayment.getDefaultInstance();
- close_ = org.bitcoin.paymentchannel.Protos.Close.getDefaultInstance();
- error_ = org.bitcoin.paymentchannel.Protos.Error.getDefaultInstance();
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
- if (!hasType()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (hasClientVersion()) {
- if (!getClientVersion().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- if (hasServerVersion()) {
- if (!getServerVersion().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- if (hasInitiate()) {
- if (!getInitiate().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- if (hasProvideRefund()) {
- if (!getProvideRefund().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- if (hasReturnRefund()) {
- if (!getReturnRefund().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- if (hasProvideContract()) {
- if (!getProvideContract().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- if (hasUpdatePayment()) {
- if (!getUpdatePayment().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- if (hasClose()) {
- if (!getClose().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- memoizedIsInitialized = 1;
- return true;
- }
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, type_.getNumber());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, clientVersion_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(3, serverVersion_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeMessage(4, initiate_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeMessage(5, provideRefund_);
- }
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeMessage(6, returnRefund_);
- }
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- output.writeMessage(7, provideContract_);
- }
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- output.writeMessage(8, updatePayment_);
- }
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- output.writeMessage(9, close_);
- }
- if (((bitField0_ & 0x00000200) == 0x00000200)) {
- output.writeMessage(10, error_);
- }
- getUnknownFields().writeTo(output);
- }
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, type_.getNumber());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, clientVersion_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, serverVersion_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, initiate_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(5, provideRefund_);
- }
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(6, returnRefund_);
- }
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(7, provideContract_);
- }
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(8, updatePayment_);
- }
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(9, close_);
- }
- if (((bitField0_ & 0x00000200) == 0x00000200)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(10, error_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
- private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
- public static org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code paymentchannels.TwoWayChannelMessage}
- *
- * <pre>
- * This message is designed to be either sent raw over the network (e.g. length prefixed) or embedded inside another
- * protocol that is being extended to support micropayments. In this file "primary" typically can be read as "client"
- * and "secondary" as "server".
- * </pre>
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.bitcoin.paymentchannel.Protos.TwoWayChannelMessageOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.bitcoin.paymentchannel.Protos.internal_static_paymentchannels_TwoWayChannelMessage_descriptor;
- }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.bitcoin.paymentchannel.Protos.internal_static_paymentchannels_TwoWayChannelMessage_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage.class, org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage.Builder.class);
- }
- // Construct using org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getClientVersionFieldBuilder();
- getServerVersionFieldBuilder();
- getInitiateFieldBuilder();
- getProvideRefundFieldBuilder();
- getReturnRefundFieldBuilder();
- getProvideContractFieldBuilder();
- getUpdatePaymentFieldBuilder();
- getCloseFieldBuilder();
- getErrorFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
- public Builder clear() {
- super.clear();
- type_ = org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage.MessageType.CLIENT_VERSION;
- bitField0_ = (bitField0_ & ~0x00000001);
- if (clientVersionBuilder_ == null) {
- clientVersion_ = org.bitcoin.paymentchannel.Protos.ClientVersion.getDefaultInstance();
- } else {
- clientVersionBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000002);
- if (serverVersionBuilder_ == null) {
- serverVersion_ = org.bitcoin.paymentchannel.Protos.ServerVersion.getDefaultInstance();
- } else {
- serverVersionBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000004);
- if (initiateBuilder_ == null) {
- initiate_ = org.bitcoin.paymentchannel.Protos.Initiate.getDefaultInstance();
- } else {
- initiateBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000008);
- if (provideRefundBuilder_ == null) {
- provideRefund_ = org.bitcoin.paymentchannel.Protos.ProvideRefund.getDefaultInstance();
- } else {
- provideRefundBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000010);
- if (returnRefundBuilder_ == null) {
- returnRefund_ = org.bitcoin.paymentchannel.Protos.ReturnRefund.getDefaultInstance();
- } else {
- returnRefundBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000020);
- if (provideContractBuilder_ == null) {
- provideContract_ = org.bitcoin.paymentchannel.Protos.ProvideContract.getDefaultInstance();
- } else {
- provideContractBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000040);
- if (updatePaymentBuilder_ == null) {
- updatePayment_ = org.bitcoin.paymentchannel.Protos.UpdatePayment.getDefaultInstance();
- } else {
- updatePaymentBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000080);
- if (closeBuilder_ == null) {
- close_ = org.bitcoin.paymentchannel.Protos.Close.getDefaultInstance();
- } else {
- closeBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000100);
- if (errorBuilder_ == null) {
- error_ = org.bitcoin.paymentchannel.Protos.Error.getDefaultInstance();
- } else {
- errorBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000200);
- return this;
- }
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.bitcoin.paymentchannel.Protos.internal_static_paymentchannels_TwoWayChannelMessage_descriptor;
- }
- public org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage getDefaultInstanceForType() {
- return org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage.getDefaultInstance();
- }
- public org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage build() {
- org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
- public org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage buildPartial() {
- org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage result = new org.bitcoin.paymentchannel.Protos.TwoWayChannelMessage(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.type_ = type_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- if (clientVersionBuilder_ == null) {
- result.clientVersion_ = clientVersion_;
- } else {
- result.clientVersion_ = clientVersionBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- if (serverVersionBuilder_ == null) {
- result.serverVersion_ = serverVersion_;
- } else {
- result.serverVersion_ = serverVersionBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000008;
- }
- if (initiateBuilder_ == null) {
- result.initiate_ = initiate_;
- } else {
- result.initiate_ = initiateBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
- to_bitField0_ |= 0x00000010;
- }
- if (provideRefundBuilder_ == null) {
- result.provideRefund_ = provideRefund_;
- } else {
- result.provideRefund_ = provideRefundBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
- to_bitField0_ |= 0x00000020;
- }
- if (returnRefundBuilder_ == null) {
- result.returnRefund_ = returnRefund_;
- } else {
- result.returnRefund_ = returnRefundBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
- to_bitField0_ |= 0x00000040;
- }
- if (provideContractBuilder_ == null) {
- result.provideContract_ = provideContract_;
- } else {
- result.provideContract_ = provideContractBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
- to_bitField0_ |= 0x00000080;
- }
- if (updatePaymentBuilder_ == null) {
- result.updatePayment_ = updatePayment_;
- } else {
- result.updatePayment_ = updatePaymentBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
- to_bitField0_ |= 0x00000100;
- }
- if (closeBuilder_ == null) {
- result.close_ = close_;
- } e…
Large files files are truncated, but you can click here to view the full file