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

org.openfeed.RequestForQuote 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;

/**
 * 
 * / Request For Quote
 * 
* * Protobuf type {@code org.openfeed.RequestForQuote} */ public final class RequestForQuote extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org.openfeed.RequestForQuote) RequestForQuoteOrBuilder { 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= */ "", RequestForQuote.class.getName()); } // Use RequestForQuote.newBuilder() to construct. private RequestForQuote(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RequestForQuote() { quoteRequestId_ = ""; symbol_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_RequestForQuote_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_RequestForQuote_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.RequestForQuote.class, org.openfeed.RequestForQuote.Builder.class); } public static final int QUOTEREQUESTID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object quoteRequestId_ = ""; /** * string quoteRequestId = 1; * @return The quoteRequestId. */ @java.lang.Override public java.lang.String getQuoteRequestId() { java.lang.Object ref = quoteRequestId_; 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(); quoteRequestId_ = s; return s; } } /** * string quoteRequestId = 1; * @return The bytes for quoteRequestId. */ @java.lang.Override public com.google.protobuf.ByteString getQuoteRequestIdBytes() { java.lang.Object ref = quoteRequestId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); quoteRequestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SYMBOL_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object symbol_ = ""; /** * string symbol = 2; * @return The symbol. */ @java.lang.Override public java.lang.String getSymbol() { java.lang.Object ref = symbol_; 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(); symbol_ = s; return s; } } /** * string symbol = 2; * @return The bytes for symbol. */ @java.lang.Override public com.google.protobuf.ByteString getSymbolBytes() { java.lang.Object ref = symbol_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symbol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECURITYID_FIELD_NUMBER = 3; private long securityId_ = 0L; /** * sint64 securityId = 3; * @return The securityId. */ @java.lang.Override public long getSecurityId() { return securityId_; } public static final int ORDERQUANTITY_FIELD_NUMBER = 4; private int orderQuantity_ = 0; /** * sint32 orderQuantity = 4; * @return The orderQuantity. */ @java.lang.Override public int getOrderQuantity() { return orderQuantity_; } public static final int QUOTETYPE_FIELD_NUMBER = 5; private int quoteType_ = 0; /** * sint32 quoteType = 5; * @return The quoteType. */ @java.lang.Override public int getQuoteType() { return quoteType_; } public static final int SIDE_FIELD_NUMBER = 6; private int side_ = 0; /** * sint32 side = 6; * @return The side. */ @java.lang.Override public int getSide() { return side_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(quoteRequestId_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, quoteRequestId_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(symbol_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, symbol_); } if (securityId_ != 0L) { output.writeSInt64(3, securityId_); } if (orderQuantity_ != 0) { output.writeSInt32(4, orderQuantity_); } if (quoteType_ != 0) { output.writeSInt32(5, quoteType_); } if (side_ != 0) { output.writeSInt32(6, side_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(quoteRequestId_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, quoteRequestId_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(symbol_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, symbol_); } if (securityId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(3, securityId_); } if (orderQuantity_ != 0) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(4, orderQuantity_); } if (quoteType_ != 0) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(5, quoteType_); } if (side_ != 0) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(6, side_); } 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.RequestForQuote)) { return super.equals(obj); } org.openfeed.RequestForQuote other = (org.openfeed.RequestForQuote) obj; if (!getQuoteRequestId() .equals(other.getQuoteRequestId())) return false; if (!getSymbol() .equals(other.getSymbol())) return false; if (getSecurityId() != other.getSecurityId()) return false; if (getOrderQuantity() != other.getOrderQuantity()) return false; if (getQuoteType() != other.getQuoteType()) return false; if (getSide() != other.getSide()) 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) + QUOTEREQUESTID_FIELD_NUMBER; hash = (53 * hash) + getQuoteRequestId().hashCode(); hash = (37 * hash) + SYMBOL_FIELD_NUMBER; hash = (53 * hash) + getSymbol().hashCode(); hash = (37 * hash) + SECURITYID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSecurityId()); hash = (37 * hash) + ORDERQUANTITY_FIELD_NUMBER; hash = (53 * hash) + getOrderQuantity(); hash = (37 * hash) + QUOTETYPE_FIELD_NUMBER; hash = (53 * hash) + getQuoteType(); hash = (37 * hash) + SIDE_FIELD_NUMBER; hash = (53 * hash) + getSide(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.openfeed.RequestForQuote parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.RequestForQuote parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.RequestForQuote parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.RequestForQuote 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.RequestForQuote parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.RequestForQuote parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.RequestForQuote parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.RequestForQuote 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.RequestForQuote parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.openfeed.RequestForQuote 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.RequestForQuote parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.RequestForQuote 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.RequestForQuote 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; } /** *
   * / Request For Quote
   * 
* * Protobuf type {@code org.openfeed.RequestForQuote} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org.openfeed.RequestForQuote) org.openfeed.RequestForQuoteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_RequestForQuote_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_RequestForQuote_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.RequestForQuote.class, org.openfeed.RequestForQuote.Builder.class); } // Construct using org.openfeed.RequestForQuote.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; quoteRequestId_ = ""; symbol_ = ""; securityId_ = 0L; orderQuantity_ = 0; quoteType_ = 0; side_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openfeed.Openfeed.internal_static_org_openfeed_RequestForQuote_descriptor; } @java.lang.Override public org.openfeed.RequestForQuote getDefaultInstanceForType() { return org.openfeed.RequestForQuote.getDefaultInstance(); } @java.lang.Override public org.openfeed.RequestForQuote build() { org.openfeed.RequestForQuote result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openfeed.RequestForQuote buildPartial() { org.openfeed.RequestForQuote result = new org.openfeed.RequestForQuote(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.openfeed.RequestForQuote result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.quoteRequestId_ = quoteRequestId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.symbol_ = symbol_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.securityId_ = securityId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.orderQuantity_ = orderQuantity_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.quoteType_ = quoteType_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.side_ = side_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.openfeed.RequestForQuote) { return mergeFrom((org.openfeed.RequestForQuote)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openfeed.RequestForQuote other) { if (other == org.openfeed.RequestForQuote.getDefaultInstance()) return this; if (!other.getQuoteRequestId().isEmpty()) { quoteRequestId_ = other.quoteRequestId_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getSymbol().isEmpty()) { symbol_ = other.symbol_; bitField0_ |= 0x00000002; onChanged(); } if (other.getSecurityId() != 0L) { setSecurityId(other.getSecurityId()); } if (other.getOrderQuantity() != 0) { setOrderQuantity(other.getOrderQuantity()); } if (other.getQuoteType() != 0) { setQuoteType(other.getQuoteType()); } if (other.getSide() != 0) { setSide(other.getSide()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { quoteRequestId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { symbol_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { securityId_ = input.readSInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { orderQuantity_ = input.readSInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { quoteType_ = input.readSInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { side_ = input.readSInt32(); bitField0_ |= 0x00000020; break; } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object quoteRequestId_ = ""; /** * string quoteRequestId = 1; * @return The quoteRequestId. */ public java.lang.String getQuoteRequestId() { java.lang.Object ref = quoteRequestId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); quoteRequestId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string quoteRequestId = 1; * @return The bytes for quoteRequestId. */ public com.google.protobuf.ByteString getQuoteRequestIdBytes() { java.lang.Object ref = quoteRequestId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); quoteRequestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string quoteRequestId = 1; * @param value The quoteRequestId to set. * @return This builder for chaining. */ public Builder setQuoteRequestId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } quoteRequestId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string quoteRequestId = 1; * @return This builder for chaining. */ public Builder clearQuoteRequestId() { quoteRequestId_ = getDefaultInstance().getQuoteRequestId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string quoteRequestId = 1; * @param value The bytes for quoteRequestId to set. * @return This builder for chaining. */ public Builder setQuoteRequestIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); quoteRequestId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object symbol_ = ""; /** * string symbol = 2; * @return The symbol. */ public java.lang.String getSymbol() { java.lang.Object ref = symbol_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); symbol_ = s; return s; } else { return (java.lang.String) ref; } } /** * string symbol = 2; * @return The bytes for symbol. */ public com.google.protobuf.ByteString getSymbolBytes() { java.lang.Object ref = symbol_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symbol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string symbol = 2; * @param value The symbol to set. * @return This builder for chaining. */ public Builder setSymbol( java.lang.String value) { if (value == null) { throw new NullPointerException(); } symbol_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string symbol = 2; * @return This builder for chaining. */ public Builder clearSymbol() { symbol_ = getDefaultInstance().getSymbol(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string symbol = 2; * @param value The bytes for symbol to set. * @return This builder for chaining. */ public Builder setSymbolBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); symbol_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private long securityId_ ; /** * sint64 securityId = 3; * @return The securityId. */ @java.lang.Override public long getSecurityId() { return securityId_; } /** * sint64 securityId = 3; * @param value The securityId to set. * @return This builder for chaining. */ public Builder setSecurityId(long value) { securityId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * sint64 securityId = 3; * @return This builder for chaining. */ public Builder clearSecurityId() { bitField0_ = (bitField0_ & ~0x00000004); securityId_ = 0L; onChanged(); return this; } private int orderQuantity_ ; /** * sint32 orderQuantity = 4; * @return The orderQuantity. */ @java.lang.Override public int getOrderQuantity() { return orderQuantity_; } /** * sint32 orderQuantity = 4; * @param value The orderQuantity to set. * @return This builder for chaining. */ public Builder setOrderQuantity(int value) { orderQuantity_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * sint32 orderQuantity = 4; * @return This builder for chaining. */ public Builder clearOrderQuantity() { bitField0_ = (bitField0_ & ~0x00000008); orderQuantity_ = 0; onChanged(); return this; } private int quoteType_ ; /** * sint32 quoteType = 5; * @return The quoteType. */ @java.lang.Override public int getQuoteType() { return quoteType_; } /** * sint32 quoteType = 5; * @param value The quoteType to set. * @return This builder for chaining. */ public Builder setQuoteType(int value) { quoteType_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * sint32 quoteType = 5; * @return This builder for chaining. */ public Builder clearQuoteType() { bitField0_ = (bitField0_ & ~0x00000010); quoteType_ = 0; onChanged(); return this; } private int side_ ; /** * sint32 side = 6; * @return The side. */ @java.lang.Override public int getSide() { return side_; } /** * sint32 side = 6; * @param value The side to set. * @return This builder for chaining. */ public Builder setSide(int value) { side_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * sint32 side = 6; * @return This builder for chaining. */ public Builder clearSide() { bitField0_ = (bitField0_ & ~0x00000020); side_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:org.openfeed.RequestForQuote) } // @@protoc_insertion_point(class_scope:org.openfeed.RequestForQuote) private static final org.openfeed.RequestForQuote DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openfeed.RequestForQuote(); } public static org.openfeed.RequestForQuote getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestForQuote 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.RequestForQuote getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy