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

org.openfeed.InstrumentAction Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: openfeed.proto
// Protobuf Java Version: 4.28.3

package org.openfeed;

/**
 * 
 * / Instrument Action
 * 
* * Protobuf type {@code org.openfeed.InstrumentAction} */ public final class InstrumentAction extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org.openfeed.InstrumentAction) InstrumentActionOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", InstrumentAction.class.getName()); } // Use InstrumentAction.newBuilder() to construct. private InstrumentAction(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private InstrumentAction() { action_ = 0; message_ = ""; oldAlias_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_InstrumentAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_InstrumentAction_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.InstrumentAction.class, org.openfeed.InstrumentAction.Builder.class); } private int bitField0_; public static final int TRANSACTIONTIME_FIELD_NUMBER = 1; private long transactionTime_ = 0L; /** * sint64 transactionTime = 1; * @return The transactionTime. */ @java.lang.Override public long getTransactionTime() { return transactionTime_; } public static final int TRADEDATE_FIELD_NUMBER = 2; private int tradeDate_ = 0; /** * sint32 tradeDate = 2; * @return The tradeDate. */ @java.lang.Override public int getTradeDate() { return tradeDate_; } public static final int ACTION_FIELD_NUMBER = 3; private int action_ = 0; /** * .org.openfeed.ActionType action = 3; * @return The enum numeric value on the wire for action. */ @java.lang.Override public int getActionValue() { return action_; } /** * .org.openfeed.ActionType action = 3; * @return The action. */ @java.lang.Override public org.openfeed.ActionType getAction() { org.openfeed.ActionType result = org.openfeed.ActionType.forNumber(action_); return result == null ? org.openfeed.ActionType.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** * string message = 4; * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; 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(); message_ = s; return s; } } /** * string message = 4; * @return The bytes for message. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OLDALIAS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object oldAlias_ = ""; /** * string oldAlias = 5; * @return The oldAlias. */ @java.lang.Override public java.lang.String getOldAlias() { java.lang.Object ref = oldAlias_; 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(); oldAlias_ = s; return s; } } /** * string oldAlias = 5; * @return The bytes for oldAlias. */ @java.lang.Override public com.google.protobuf.ByteString getOldAliasBytes() { java.lang.Object ref = oldAlias_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); oldAlias_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INSTRUMENT_FIELD_NUMBER = 10; private org.openfeed.InstrumentDefinition instrument_; /** * .org.openfeed.InstrumentDefinition instrument = 10; * @return Whether the instrument field is set. */ @java.lang.Override public boolean hasInstrument() { return ((bitField0_ & 0x00000001) != 0); } /** * .org.openfeed.InstrumentDefinition instrument = 10; * @return The instrument. */ @java.lang.Override public org.openfeed.InstrumentDefinition getInstrument() { return instrument_ == null ? org.openfeed.InstrumentDefinition.getDefaultInstance() : instrument_; } /** * .org.openfeed.InstrumentDefinition instrument = 10; */ @java.lang.Override public org.openfeed.InstrumentDefinitionOrBuilder getInstrumentOrBuilder() { return instrument_ == null ? org.openfeed.InstrumentDefinition.getDefaultInstance() : instrument_; } public static final int NEWINSTRUMENT_FIELD_NUMBER = 11; private org.openfeed.InstrumentDefinition newInstrument_; /** * .org.openfeed.InstrumentDefinition newInstrument = 11; * @return Whether the newInstrument field is set. */ @java.lang.Override public boolean hasNewInstrument() { return ((bitField0_ & 0x00000002) != 0); } /** * .org.openfeed.InstrumentDefinition newInstrument = 11; * @return The newInstrument. */ @java.lang.Override public org.openfeed.InstrumentDefinition getNewInstrument() { return newInstrument_ == null ? org.openfeed.InstrumentDefinition.getDefaultInstance() : newInstrument_; } /** * .org.openfeed.InstrumentDefinition newInstrument = 11; */ @java.lang.Override public org.openfeed.InstrumentDefinitionOrBuilder getNewInstrumentOrBuilder() { return newInstrument_ == null ? org.openfeed.InstrumentDefinition.getDefaultInstance() : newInstrument_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (transactionTime_ != 0L) { output.writeSInt64(1, transactionTime_); } if (tradeDate_ != 0) { output.writeSInt32(2, tradeDate_); } if (action_ != org.openfeed.ActionType.UNKNOWN_ACTION.getNumber()) { output.writeEnum(3, action_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, message_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(oldAlias_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, oldAlias_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(10, getInstrument()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(11, getNewInstrument()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (transactionTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(1, transactionTime_); } if (tradeDate_ != 0) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(2, tradeDate_); } if (action_ != org.openfeed.ActionType.UNKNOWN_ACTION.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, action_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, message_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(oldAlias_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, oldAlias_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getInstrument()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getNewInstrument()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.openfeed.InstrumentAction)) { return super.equals(obj); } org.openfeed.InstrumentAction other = (org.openfeed.InstrumentAction) obj; if (getTransactionTime() != other.getTransactionTime()) return false; if (getTradeDate() != other.getTradeDate()) return false; if (action_ != other.action_) return false; if (!getMessage() .equals(other.getMessage())) return false; if (!getOldAlias() .equals(other.getOldAlias())) return false; if (hasInstrument() != other.hasInstrument()) return false; if (hasInstrument()) { if (!getInstrument() .equals(other.getInstrument())) return false; } if (hasNewInstrument() != other.hasNewInstrument()) return false; if (hasNewInstrument()) { if (!getNewInstrument() .equals(other.getNewInstrument())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TRANSACTIONTIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTransactionTime()); hash = (37 * hash) + TRADEDATE_FIELD_NUMBER; hash = (53 * hash) + getTradeDate(); hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + action_; hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (37 * hash) + OLDALIAS_FIELD_NUMBER; hash = (53 * hash) + getOldAlias().hashCode(); if (hasInstrument()) { hash = (37 * hash) + INSTRUMENT_FIELD_NUMBER; hash = (53 * hash) + getInstrument().hashCode(); } if (hasNewInstrument()) { hash = (37 * hash) + NEWINSTRUMENT_FIELD_NUMBER; hash = (53 * hash) + getNewInstrument().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.openfeed.InstrumentAction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.InstrumentAction parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.InstrumentAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.InstrumentAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.InstrumentAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.InstrumentAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.InstrumentAction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.InstrumentAction parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.openfeed.InstrumentAction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.openfeed.InstrumentAction parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.openfeed.InstrumentAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.InstrumentAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.openfeed.InstrumentAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * / Instrument Action
   * 
* * Protobuf type {@code org.openfeed.InstrumentAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org.openfeed.InstrumentAction) org.openfeed.InstrumentActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_InstrumentAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_InstrumentAction_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.InstrumentAction.class, org.openfeed.InstrumentAction.Builder.class); } // Construct using org.openfeed.InstrumentAction.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getInstrumentFieldBuilder(); getNewInstrumentFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; transactionTime_ = 0L; tradeDate_ = 0; action_ = 0; message_ = ""; oldAlias_ = ""; instrument_ = null; if (instrumentBuilder_ != null) { instrumentBuilder_.dispose(); instrumentBuilder_ = null; } newInstrument_ = null; if (newInstrumentBuilder_ != null) { newInstrumentBuilder_.dispose(); newInstrumentBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openfeed.Openfeed.internal_static_org_openfeed_InstrumentAction_descriptor; } @java.lang.Override public org.openfeed.InstrumentAction getDefaultInstanceForType() { return org.openfeed.InstrumentAction.getDefaultInstance(); } @java.lang.Override public org.openfeed.InstrumentAction build() { org.openfeed.InstrumentAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openfeed.InstrumentAction buildPartial() { org.openfeed.InstrumentAction result = new org.openfeed.InstrumentAction(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.openfeed.InstrumentAction result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.transactionTime_ = transactionTime_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.tradeDate_ = tradeDate_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.action_ = action_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.message_ = message_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.oldAlias_ = oldAlias_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { result.instrument_ = instrumentBuilder_ == null ? instrument_ : instrumentBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000040) != 0)) { result.newInstrument_ = newInstrumentBuilder_ == null ? newInstrument_ : newInstrumentBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.openfeed.InstrumentAction) { return mergeFrom((org.openfeed.InstrumentAction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openfeed.InstrumentAction other) { if (other == org.openfeed.InstrumentAction.getDefaultInstance()) return this; if (other.getTransactionTime() != 0L) { setTransactionTime(other.getTransactionTime()); } if (other.getTradeDate() != 0) { setTradeDate(other.getTradeDate()); } if (other.action_ != 0) { setActionValue(other.getActionValue()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getOldAlias().isEmpty()) { oldAlias_ = other.oldAlias_; bitField0_ |= 0x00000010; onChanged(); } if (other.hasInstrument()) { mergeInstrument(other.getInstrument()); } if (other.hasNewInstrument()) { mergeNewInstrument(other.getNewInstrument()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { transactionTime_ = input.readSInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { tradeDate_ = input.readSInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { action_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { message_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { oldAlias_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 82: { input.readMessage( getInstrumentFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 82 case 90: { input.readMessage( getNewInstrumentFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long transactionTime_ ; /** * sint64 transactionTime = 1; * @return The transactionTime. */ @java.lang.Override public long getTransactionTime() { return transactionTime_; } /** * sint64 transactionTime = 1; * @param value The transactionTime to set. * @return This builder for chaining. */ public Builder setTransactionTime(long value) { transactionTime_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * sint64 transactionTime = 1; * @return This builder for chaining. */ public Builder clearTransactionTime() { bitField0_ = (bitField0_ & ~0x00000001); transactionTime_ = 0L; onChanged(); return this; } private int tradeDate_ ; /** * sint32 tradeDate = 2; * @return The tradeDate. */ @java.lang.Override public int getTradeDate() { return tradeDate_; } /** * sint32 tradeDate = 2; * @param value The tradeDate to set. * @return This builder for chaining. */ public Builder setTradeDate(int value) { tradeDate_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * sint32 tradeDate = 2; * @return This builder for chaining. */ public Builder clearTradeDate() { bitField0_ = (bitField0_ & ~0x00000002); tradeDate_ = 0; onChanged(); return this; } private int action_ = 0; /** * .org.openfeed.ActionType action = 3; * @return The enum numeric value on the wire for action. */ @java.lang.Override public int getActionValue() { return action_; } /** * .org.openfeed.ActionType action = 3; * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ public Builder setActionValue(int value) { action_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * .org.openfeed.ActionType action = 3; * @return The action. */ @java.lang.Override public org.openfeed.ActionType getAction() { org.openfeed.ActionType result = org.openfeed.ActionType.forNumber(action_); return result == null ? org.openfeed.ActionType.UNRECOGNIZED : result; } /** * .org.openfeed.ActionType action = 3; * @param value The action to set. * @return This builder for chaining. */ public Builder setAction(org.openfeed.ActionType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; action_ = value.getNumber(); onChanged(); return this; } /** * .org.openfeed.ActionType action = 3; * @return This builder for chaining. */ public Builder clearAction() { bitField0_ = (bitField0_ & ~0x00000004); action_ = 0; onChanged(); return this; } private java.lang.Object message_ = ""; /** * string message = 4; * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** * string message = 4; * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string message = 4; * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string message = 4; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * string message = 4; * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object oldAlias_ = ""; /** * string oldAlias = 5; * @return The oldAlias. */ public java.lang.String getOldAlias() { java.lang.Object ref = oldAlias_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); oldAlias_ = s; return s; } else { return (java.lang.String) ref; } } /** * string oldAlias = 5; * @return The bytes for oldAlias. */ public com.google.protobuf.ByteString getOldAliasBytes() { java.lang.Object ref = oldAlias_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); oldAlias_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string oldAlias = 5; * @param value The oldAlias to set. * @return This builder for chaining. */ public Builder setOldAlias( java.lang.String value) { if (value == null) { throw new NullPointerException(); } oldAlias_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * string oldAlias = 5; * @return This builder for chaining. */ public Builder clearOldAlias() { oldAlias_ = getDefaultInstance().getOldAlias(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * string oldAlias = 5; * @param value The bytes for oldAlias to set. * @return This builder for chaining. */ public Builder setOldAliasBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); oldAlias_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private org.openfeed.InstrumentDefinition instrument_; private com.google.protobuf.SingleFieldBuilder< org.openfeed.InstrumentDefinition, org.openfeed.InstrumentDefinition.Builder, org.openfeed.InstrumentDefinitionOrBuilder> instrumentBuilder_; /** * .org.openfeed.InstrumentDefinition instrument = 10; * @return Whether the instrument field is set. */ public boolean hasInstrument() { return ((bitField0_ & 0x00000020) != 0); } /** * .org.openfeed.InstrumentDefinition instrument = 10; * @return The instrument. */ public org.openfeed.InstrumentDefinition getInstrument() { if (instrumentBuilder_ == null) { return instrument_ == null ? org.openfeed.InstrumentDefinition.getDefaultInstance() : instrument_; } else { return instrumentBuilder_.getMessage(); } } /** * .org.openfeed.InstrumentDefinition instrument = 10; */ public Builder setInstrument(org.openfeed.InstrumentDefinition value) { if (instrumentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } instrument_ = value; } else { instrumentBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * .org.openfeed.InstrumentDefinition instrument = 10; */ public Builder setInstrument( org.openfeed.InstrumentDefinition.Builder builderForValue) { if (instrumentBuilder_ == null) { instrument_ = builderForValue.build(); } else { instrumentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * .org.openfeed.InstrumentDefinition instrument = 10; */ public Builder mergeInstrument(org.openfeed.InstrumentDefinition value) { if (instrumentBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && instrument_ != null && instrument_ != org.openfeed.InstrumentDefinition.getDefaultInstance()) { getInstrumentBuilder().mergeFrom(value); } else { instrument_ = value; } } else { instrumentBuilder_.mergeFrom(value); } if (instrument_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** * .org.openfeed.InstrumentDefinition instrument = 10; */ public Builder clearInstrument() { bitField0_ = (bitField0_ & ~0x00000020); instrument_ = null; if (instrumentBuilder_ != null) { instrumentBuilder_.dispose(); instrumentBuilder_ = null; } onChanged(); return this; } /** * .org.openfeed.InstrumentDefinition instrument = 10; */ public org.openfeed.InstrumentDefinition.Builder getInstrumentBuilder() { bitField0_ |= 0x00000020; onChanged(); return getInstrumentFieldBuilder().getBuilder(); } /** * .org.openfeed.InstrumentDefinition instrument = 10; */ public org.openfeed.InstrumentDefinitionOrBuilder getInstrumentOrBuilder() { if (instrumentBuilder_ != null) { return instrumentBuilder_.getMessageOrBuilder(); } else { return instrument_ == null ? org.openfeed.InstrumentDefinition.getDefaultInstance() : instrument_; } } /** * .org.openfeed.InstrumentDefinition instrument = 10; */ private com.google.protobuf.SingleFieldBuilder< org.openfeed.InstrumentDefinition, org.openfeed.InstrumentDefinition.Builder, org.openfeed.InstrumentDefinitionOrBuilder> getInstrumentFieldBuilder() { if (instrumentBuilder_ == null) { instrumentBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.openfeed.InstrumentDefinition, org.openfeed.InstrumentDefinition.Builder, org.openfeed.InstrumentDefinitionOrBuilder>( getInstrument(), getParentForChildren(), isClean()); instrument_ = null; } return instrumentBuilder_; } private org.openfeed.InstrumentDefinition newInstrument_; private com.google.protobuf.SingleFieldBuilder< org.openfeed.InstrumentDefinition, org.openfeed.InstrumentDefinition.Builder, org.openfeed.InstrumentDefinitionOrBuilder> newInstrumentBuilder_; /** * .org.openfeed.InstrumentDefinition newInstrument = 11; * @return Whether the newInstrument field is set. */ public boolean hasNewInstrument() { return ((bitField0_ & 0x00000040) != 0); } /** * .org.openfeed.InstrumentDefinition newInstrument = 11; * @return The newInstrument. */ public org.openfeed.InstrumentDefinition getNewInstrument() { if (newInstrumentBuilder_ == null) { return newInstrument_ == null ? org.openfeed.InstrumentDefinition.getDefaultInstance() : newInstrument_; } else { return newInstrumentBuilder_.getMessage(); } } /** * .org.openfeed.InstrumentDefinition newInstrument = 11; */ public Builder setNewInstrument(org.openfeed.InstrumentDefinition value) { if (newInstrumentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } newInstrument_ = value; } else { newInstrumentBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * .org.openfeed.InstrumentDefinition newInstrument = 11; */ public Builder setNewInstrument( org.openfeed.InstrumentDefinition.Builder builderForValue) { if (newInstrumentBuilder_ == null) { newInstrument_ = builderForValue.build(); } else { newInstrumentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * .org.openfeed.InstrumentDefinition newInstrument = 11; */ public Builder mergeNewInstrument(org.openfeed.InstrumentDefinition value) { if (newInstrumentBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && newInstrument_ != null && newInstrument_ != org.openfeed.InstrumentDefinition.getDefaultInstance()) { getNewInstrumentBuilder().mergeFrom(value); } else { newInstrument_ = value; } } else { newInstrumentBuilder_.mergeFrom(value); } if (newInstrument_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** * .org.openfeed.InstrumentDefinition newInstrument = 11; */ public Builder clearNewInstrument() { bitField0_ = (bitField0_ & ~0x00000040); newInstrument_ = null; if (newInstrumentBuilder_ != null) { newInstrumentBuilder_.dispose(); newInstrumentBuilder_ = null; } onChanged(); return this; } /** * .org.openfeed.InstrumentDefinition newInstrument = 11; */ public org.openfeed.InstrumentDefinition.Builder getNewInstrumentBuilder() { bitField0_ |= 0x00000040; onChanged(); return getNewInstrumentFieldBuilder().getBuilder(); } /** * .org.openfeed.InstrumentDefinition newInstrument = 11; */ public org.openfeed.InstrumentDefinitionOrBuilder getNewInstrumentOrBuilder() { if (newInstrumentBuilder_ != null) { return newInstrumentBuilder_.getMessageOrBuilder(); } else { return newInstrument_ == null ? org.openfeed.InstrumentDefinition.getDefaultInstance() : newInstrument_; } } /** * .org.openfeed.InstrumentDefinition newInstrument = 11; */ private com.google.protobuf.SingleFieldBuilder< org.openfeed.InstrumentDefinition, org.openfeed.InstrumentDefinition.Builder, org.openfeed.InstrumentDefinitionOrBuilder> getNewInstrumentFieldBuilder() { if (newInstrumentBuilder_ == null) { newInstrumentBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.openfeed.InstrumentDefinition, org.openfeed.InstrumentDefinition.Builder, org.openfeed.InstrumentDefinitionOrBuilder>( getNewInstrument(), getParentForChildren(), isClean()); newInstrument_ = null; } return newInstrumentBuilder_; } // @@protoc_insertion_point(builder_scope:org.openfeed.InstrumentAction) } // @@protoc_insertion_point(class_scope:org.openfeed.InstrumentAction) private static final org.openfeed.InstrumentAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openfeed.InstrumentAction(); } public static org.openfeed.InstrumentAction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InstrumentAction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.openfeed.InstrumentAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy