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

com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: MarketDataFeed.proto

package com.upstox.marketdatafeeder.rpc.proto;

public final class MarketDataFeed {
  private MarketDataFeed() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code com.upstox.marketdatafeeder.rpc.proto.Type}
   */
  public enum Type
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * initial_feed = 0;
     */
    initial_feed(0),
    /**
     * live_feed = 1;
     */
    live_feed(1),
    UNRECOGNIZED(-1),
    ;

    /**
     * initial_feed = 0;
     */
    public static final int initial_feed_VALUE = 0;
    /**
     * live_feed = 1;
     */
    public static final int live_feed_VALUE = 1;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static Type valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static Type forNumber(int value) {
      switch (value) {
        case 0: return initial_feed;
        case 1: return live_feed;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        Type> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public Type findValueByNumber(int number) {
              return Type.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.getDescriptor().getEnumTypes().get(0);
    }

    private static final Type[] VALUES = values();

    public static Type valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private Type(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:com.upstox.marketdatafeeder.rpc.proto.Type)
  }

  public interface LTPCOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.LTPC)
      com.google.protobuf.MessageOrBuilder {

    /**
     * double ltp = 1;
     * @return The ltp.
     */
    double getLtp();

    /**
     * int64 ltt = 2;
     * @return The ltt.
     */
    long getLtt();

    /**
     * int64 ltq = 3;
     * @return The ltq.
     */
    long getLtq();

    /**
     * 
     *close price
     * 
* * double cp = 4; * @return The cp. */ double getCp(); } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.LTPC} */ public static final class LTPC extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.LTPC) LTPCOrBuilder { private static final long serialVersionUID = 0L; // Use LTPC.newBuilder() to construct. private LTPC(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LTPC() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LTPC(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LTPC( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 9: { ltp_ = input.readDouble(); break; } case 16: { ltt_ = input.readInt64(); break; } case 24: { ltq_ = input.readInt64(); break; } case 33: { cp_ = input.readDouble(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_LTPC_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_LTPC_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder.class); } public static final int LTP_FIELD_NUMBER = 1; private double ltp_; /** * double ltp = 1; * @return The ltp. */ @java.lang.Override public double getLtp() { return ltp_; } public static final int LTT_FIELD_NUMBER = 2; private long ltt_; /** * int64 ltt = 2; * @return The ltt. */ @java.lang.Override public long getLtt() { return ltt_; } public static final int LTQ_FIELD_NUMBER = 3; private long ltq_; /** * int64 ltq = 3; * @return The ltq. */ @java.lang.Override public long getLtq() { return ltq_; } public static final int CP_FIELD_NUMBER = 4; private double cp_; /** *
     *close price
     * 
* * double cp = 4; * @return The cp. */ @java.lang.Override public double getCp() { return cp_; } 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 (ltp_ != 0D) { output.writeDouble(1, ltp_); } if (ltt_ != 0L) { output.writeInt64(2, ltt_); } if (ltq_ != 0L) { output.writeInt64(3, ltq_); } if (cp_ != 0D) { output.writeDouble(4, cp_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (ltp_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, ltp_); } if (ltt_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, ltt_); } if (ltq_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, ltq_); } if (cp_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, cp_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC)) { return super.equals(obj); } com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC other = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC) obj; if (java.lang.Double.doubleToLongBits(getLtp()) != java.lang.Double.doubleToLongBits( other.getLtp())) return false; if (getLtt() != other.getLtt()) return false; if (getLtq() != other.getLtq()) return false; if (java.lang.Double.doubleToLongBits(getCp()) != java.lang.Double.doubleToLongBits( other.getCp())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LTP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getLtp())); hash = (37 * hash) + LTT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLtt()); hash = (37 * hash) + LTQ_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLtq()); hash = (37 * hash) + CP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getCp())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.LTPC} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.upstox.marketdatafeeder.rpc.proto.LTPC) com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_LTPC_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_LTPC_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder.class); } // Construct using com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); ltp_ = 0D; ltt_ = 0L; ltq_ = 0L; cp_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_LTPC_descriptor; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getDefaultInstanceForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance(); } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC build() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC buildPartial() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC result = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC(this); result.ltp_ = ltp_; result.ltt_ = ltt_; result.ltq_ = ltq_; result.cp_ = cp_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC) { return mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC other) { if (other == com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance()) return this; if (other.getLtp() != 0D) { setLtp(other.getLtp()); } if (other.getLtt() != 0L) { setLtt(other.getLtt()); } if (other.getLtq() != 0L) { setLtq(other.getLtq()); } if (other.getCp() != 0D) { setCp(other.getCp()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private double ltp_ ; /** * double ltp = 1; * @return The ltp. */ @java.lang.Override public double getLtp() { return ltp_; } /** * double ltp = 1; * @param value The ltp to set. * @return This builder for chaining. */ public Builder setLtp(double value) { ltp_ = value; onChanged(); return this; } /** * double ltp = 1; * @return This builder for chaining. */ public Builder clearLtp() { ltp_ = 0D; onChanged(); return this; } private long ltt_ ; /** * int64 ltt = 2; * @return The ltt. */ @java.lang.Override public long getLtt() { return ltt_; } /** * int64 ltt = 2; * @param value The ltt to set. * @return This builder for chaining. */ public Builder setLtt(long value) { ltt_ = value; onChanged(); return this; } /** * int64 ltt = 2; * @return This builder for chaining. */ public Builder clearLtt() { ltt_ = 0L; onChanged(); return this; } private long ltq_ ; /** * int64 ltq = 3; * @return The ltq. */ @java.lang.Override public long getLtq() { return ltq_; } /** * int64 ltq = 3; * @param value The ltq to set. * @return This builder for chaining. */ public Builder setLtq(long value) { ltq_ = value; onChanged(); return this; } /** * int64 ltq = 3; * @return This builder for chaining. */ public Builder clearLtq() { ltq_ = 0L; onChanged(); return this; } private double cp_ ; /** *
       *close price
       * 
* * double cp = 4; * @return The cp. */ @java.lang.Override public double getCp() { return cp_; } /** *
       *close price
       * 
* * double cp = 4; * @param value The cp to set. * @return This builder for chaining. */ public Builder setCp(double value) { cp_ = value; onChanged(); return this; } /** *
       *close price
       * 
* * double cp = 4; * @return This builder for chaining. */ public Builder clearCp() { cp_ = 0D; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.LTPC) } // @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.LTPC) private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC(); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LTPC parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LTPC(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MarketLevelOrBuilder extends // @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.MarketLevel) com.google.protobuf.MessageOrBuilder { /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ java.util.List getBidAskQuoteList(); /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote getBidAskQuote(int index); /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ int getBidAskQuoteCount(); /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ java.util.List getBidAskQuoteOrBuilderList(); /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.QuoteOrBuilder getBidAskQuoteOrBuilder( int index); } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.MarketLevel} */ public static final class MarketLevel extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.MarketLevel) MarketLevelOrBuilder { private static final long serialVersionUID = 0L; // Use MarketLevel.newBuilder() to construct. private MarketLevel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MarketLevel() { bidAskQuote_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MarketLevel(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MarketLevel( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { bidAskQuote_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } bidAskQuote_.add( input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { bidAskQuote_ = java.util.Collections.unmodifiableList(bidAskQuote_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketLevel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketLevel_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.Builder.class); } public static final int BIDASKQUOTE_FIELD_NUMBER = 1; private java.util.List bidAskQuote_; /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ @java.lang.Override public java.util.List getBidAskQuoteList() { return bidAskQuote_; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ @java.lang.Override public java.util.List getBidAskQuoteOrBuilderList() { return bidAskQuote_; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ @java.lang.Override public int getBidAskQuoteCount() { return bidAskQuote_.size(); } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote getBidAskQuote(int index) { return bidAskQuote_.get(index); } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.QuoteOrBuilder getBidAskQuoteOrBuilder( int index) { return bidAskQuote_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < bidAskQuote_.size(); i++) { output.writeMessage(1, bidAskQuote_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < bidAskQuote_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, bidAskQuote_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel)) { return super.equals(obj); } com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel other = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel) obj; if (!getBidAskQuoteList() .equals(other.getBidAskQuoteList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getBidAskQuoteCount() > 0) { hash = (37 * hash) + BIDASKQUOTE_FIELD_NUMBER; hash = (53 * hash) + getBidAskQuoteList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.MarketLevel} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.upstox.marketdatafeeder.rpc.proto.MarketLevel) com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketLevel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketLevel_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.Builder.class); } // Construct using com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBidAskQuoteFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (bidAskQuoteBuilder_ == null) { bidAskQuote_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { bidAskQuoteBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketLevel_descriptor; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel getDefaultInstanceForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.getDefaultInstance(); } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel build() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel buildPartial() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel result = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel(this); int from_bitField0_ = bitField0_; if (bidAskQuoteBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { bidAskQuote_ = java.util.Collections.unmodifiableList(bidAskQuote_); bitField0_ = (bitField0_ & ~0x00000001); } result.bidAskQuote_ = bidAskQuote_; } else { result.bidAskQuote_ = bidAskQuoteBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel) { return mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel other) { if (other == com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.getDefaultInstance()) return this; if (bidAskQuoteBuilder_ == null) { if (!other.bidAskQuote_.isEmpty()) { if (bidAskQuote_.isEmpty()) { bidAskQuote_ = other.bidAskQuote_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBidAskQuoteIsMutable(); bidAskQuote_.addAll(other.bidAskQuote_); } onChanged(); } } else { if (!other.bidAskQuote_.isEmpty()) { if (bidAskQuoteBuilder_.isEmpty()) { bidAskQuoteBuilder_.dispose(); bidAskQuoteBuilder_ = null; bidAskQuote_ = other.bidAskQuote_; bitField0_ = (bitField0_ & ~0x00000001); bidAskQuoteBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBidAskQuoteFieldBuilder() : null; } else { bidAskQuoteBuilder_.addAllMessages(other.bidAskQuote_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List bidAskQuote_ = java.util.Collections.emptyList(); private void ensureBidAskQuoteIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { bidAskQuote_ = new java.util.ArrayList(bidAskQuote_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.QuoteOrBuilder> bidAskQuoteBuilder_; /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ public java.util.List getBidAskQuoteList() { if (bidAskQuoteBuilder_ == null) { return java.util.Collections.unmodifiableList(bidAskQuote_); } else { return bidAskQuoteBuilder_.getMessageList(); } } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ public int getBidAskQuoteCount() { if (bidAskQuoteBuilder_ == null) { return bidAskQuote_.size(); } else { return bidAskQuoteBuilder_.getCount(); } } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote getBidAskQuote(int index) { if (bidAskQuoteBuilder_ == null) { return bidAskQuote_.get(index); } else { return bidAskQuoteBuilder_.getMessage(index); } } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ public Builder setBidAskQuote( int index, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote value) { if (bidAskQuoteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBidAskQuoteIsMutable(); bidAskQuote_.set(index, value); onChanged(); } else { bidAskQuoteBuilder_.setMessage(index, value); } return this; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ public Builder setBidAskQuote( int index, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder builderForValue) { if (bidAskQuoteBuilder_ == null) { ensureBidAskQuoteIsMutable(); bidAskQuote_.set(index, builderForValue.build()); onChanged(); } else { bidAskQuoteBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ public Builder addBidAskQuote(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote value) { if (bidAskQuoteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBidAskQuoteIsMutable(); bidAskQuote_.add(value); onChanged(); } else { bidAskQuoteBuilder_.addMessage(value); } return this; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ public Builder addBidAskQuote( int index, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote value) { if (bidAskQuoteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBidAskQuoteIsMutable(); bidAskQuote_.add(index, value); onChanged(); } else { bidAskQuoteBuilder_.addMessage(index, value); } return this; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ public Builder addBidAskQuote( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder builderForValue) { if (bidAskQuoteBuilder_ == null) { ensureBidAskQuoteIsMutable(); bidAskQuote_.add(builderForValue.build()); onChanged(); } else { bidAskQuoteBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ public Builder addBidAskQuote( int index, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder builderForValue) { if (bidAskQuoteBuilder_ == null) { ensureBidAskQuoteIsMutable(); bidAskQuote_.add(index, builderForValue.build()); onChanged(); } else { bidAskQuoteBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ public Builder addAllBidAskQuote( java.lang.Iterable values) { if (bidAskQuoteBuilder_ == null) { ensureBidAskQuoteIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, bidAskQuote_); onChanged(); } else { bidAskQuoteBuilder_.addAllMessages(values); } return this; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ public Builder clearBidAskQuote() { if (bidAskQuoteBuilder_ == null) { bidAskQuote_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { bidAskQuoteBuilder_.clear(); } return this; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ public Builder removeBidAskQuote(int index) { if (bidAskQuoteBuilder_ == null) { ensureBidAskQuoteIsMutable(); bidAskQuote_.remove(index); onChanged(); } else { bidAskQuoteBuilder_.remove(index); } return this; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder getBidAskQuoteBuilder( int index) { return getBidAskQuoteFieldBuilder().getBuilder(index); } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.QuoteOrBuilder getBidAskQuoteOrBuilder( int index) { if (bidAskQuoteBuilder_ == null) { return bidAskQuote_.get(index); } else { return bidAskQuoteBuilder_.getMessageOrBuilder(index); } } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ public java.util.List getBidAskQuoteOrBuilderList() { if (bidAskQuoteBuilder_ != null) { return bidAskQuoteBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(bidAskQuote_); } } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder addBidAskQuoteBuilder() { return getBidAskQuoteFieldBuilder().addBuilder( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.getDefaultInstance()); } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder addBidAskQuoteBuilder( int index) { return getBidAskQuoteFieldBuilder().addBuilder( index, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.getDefaultInstance()); } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1; */ public java.util.List getBidAskQuoteBuilderList() { return getBidAskQuoteFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.QuoteOrBuilder> getBidAskQuoteFieldBuilder() { if (bidAskQuoteBuilder_ == null) { bidAskQuoteBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.QuoteOrBuilder>( bidAskQuote_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); bidAskQuote_ = null; } return bidAskQuoteBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.MarketLevel) } // @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.MarketLevel) private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel(); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MarketLevel parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MarketLevel(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MarketOHLCOrBuilder extends // @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.MarketOHLC) com.google.protobuf.MessageOrBuilder { /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ java.util.List getOhlcList(); /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC getOhlc(int index); /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ int getOhlcCount(); /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ java.util.List getOhlcOrBuilderList(); /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLCOrBuilder getOhlcOrBuilder( int index); } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.MarketOHLC} */ public static final class MarketOHLC extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.MarketOHLC) MarketOHLCOrBuilder { private static final long serialVersionUID = 0L; // Use MarketOHLC.newBuilder() to construct. private MarketOHLC(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MarketOHLC() { ohlc_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MarketOHLC(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MarketOHLC( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { ohlc_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } ohlc_.add( input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { ohlc_ = java.util.Collections.unmodifiableList(ohlc_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketOHLC_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketOHLC_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder.class); } public static final int OHLC_FIELD_NUMBER = 1; private java.util.List ohlc_; /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ @java.lang.Override public java.util.List getOhlcList() { return ohlc_; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ @java.lang.Override public java.util.List getOhlcOrBuilderList() { return ohlc_; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ @java.lang.Override public int getOhlcCount() { return ohlc_.size(); } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC getOhlc(int index) { return ohlc_.get(index); } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLCOrBuilder getOhlcOrBuilder( int index) { return ohlc_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < ohlc_.size(); i++) { output.writeMessage(1, ohlc_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < ohlc_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, ohlc_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC)) { return super.equals(obj); } com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC other = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC) obj; if (!getOhlcList() .equals(other.getOhlcList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getOhlcCount() > 0) { hash = (37 * hash) + OHLC_FIELD_NUMBER; hash = (53 * hash) + getOhlcList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.MarketOHLC} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.upstox.marketdatafeeder.rpc.proto.MarketOHLC) com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketOHLC_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketOHLC_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder.class); } // Construct using com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOhlcFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (ohlcBuilder_ == null) { ohlc_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { ohlcBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketOHLC_descriptor; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC getDefaultInstanceForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.getDefaultInstance(); } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC build() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC buildPartial() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC result = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC(this); int from_bitField0_ = bitField0_; if (ohlcBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { ohlc_ = java.util.Collections.unmodifiableList(ohlc_); bitField0_ = (bitField0_ & ~0x00000001); } result.ohlc_ = ohlc_; } else { result.ohlc_ = ohlcBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC) { return mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC other) { if (other == com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.getDefaultInstance()) return this; if (ohlcBuilder_ == null) { if (!other.ohlc_.isEmpty()) { if (ohlc_.isEmpty()) { ohlc_ = other.ohlc_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOhlcIsMutable(); ohlc_.addAll(other.ohlc_); } onChanged(); } } else { if (!other.ohlc_.isEmpty()) { if (ohlcBuilder_.isEmpty()) { ohlcBuilder_.dispose(); ohlcBuilder_ = null; ohlc_ = other.ohlc_; bitField0_ = (bitField0_ & ~0x00000001); ohlcBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOhlcFieldBuilder() : null; } else { ohlcBuilder_.addAllMessages(other.ohlc_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List ohlc_ = java.util.Collections.emptyList(); private void ensureOhlcIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ohlc_ = new java.util.ArrayList(ohlc_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLCOrBuilder> ohlcBuilder_; /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ public java.util.List getOhlcList() { if (ohlcBuilder_ == null) { return java.util.Collections.unmodifiableList(ohlc_); } else { return ohlcBuilder_.getMessageList(); } } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ public int getOhlcCount() { if (ohlcBuilder_ == null) { return ohlc_.size(); } else { return ohlcBuilder_.getCount(); } } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC getOhlc(int index) { if (ohlcBuilder_ == null) { return ohlc_.get(index); } else { return ohlcBuilder_.getMessage(index); } } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ public Builder setOhlc( int index, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC value) { if (ohlcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOhlcIsMutable(); ohlc_.set(index, value); onChanged(); } else { ohlcBuilder_.setMessage(index, value); } return this; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ public Builder setOhlc( int index, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.Builder builderForValue) { if (ohlcBuilder_ == null) { ensureOhlcIsMutable(); ohlc_.set(index, builderForValue.build()); onChanged(); } else { ohlcBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ public Builder addOhlc(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC value) { if (ohlcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOhlcIsMutable(); ohlc_.add(value); onChanged(); } else { ohlcBuilder_.addMessage(value); } return this; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ public Builder addOhlc( int index, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC value) { if (ohlcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOhlcIsMutable(); ohlc_.add(index, value); onChanged(); } else { ohlcBuilder_.addMessage(index, value); } return this; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ public Builder addOhlc( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.Builder builderForValue) { if (ohlcBuilder_ == null) { ensureOhlcIsMutable(); ohlc_.add(builderForValue.build()); onChanged(); } else { ohlcBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ public Builder addOhlc( int index, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.Builder builderForValue) { if (ohlcBuilder_ == null) { ensureOhlcIsMutable(); ohlc_.add(index, builderForValue.build()); onChanged(); } else { ohlcBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ public Builder addAllOhlc( java.lang.Iterable values) { if (ohlcBuilder_ == null) { ensureOhlcIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ohlc_); onChanged(); } else { ohlcBuilder_.addAllMessages(values); } return this; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ public Builder clearOhlc() { if (ohlcBuilder_ == null) { ohlc_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { ohlcBuilder_.clear(); } return this; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ public Builder removeOhlc(int index) { if (ohlcBuilder_ == null) { ensureOhlcIsMutable(); ohlc_.remove(index); onChanged(); } else { ohlcBuilder_.remove(index); } return this; } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.Builder getOhlcBuilder( int index) { return getOhlcFieldBuilder().getBuilder(index); } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLCOrBuilder getOhlcOrBuilder( int index) { if (ohlcBuilder_ == null) { return ohlc_.get(index); } else { return ohlcBuilder_.getMessageOrBuilder(index); } } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ public java.util.List getOhlcOrBuilderList() { if (ohlcBuilder_ != null) { return ohlcBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ohlc_); } } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.Builder addOhlcBuilder() { return getOhlcFieldBuilder().addBuilder( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.getDefaultInstance()); } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.Builder addOhlcBuilder( int index) { return getOhlcFieldBuilder().addBuilder( index, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.getDefaultInstance()); } /** * repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1; */ public java.util.List getOhlcBuilderList() { return getOhlcFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLCOrBuilder> getOhlcFieldBuilder() { if (ohlcBuilder_ == null) { ohlcBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLCOrBuilder>( ohlc_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); ohlc_ = null; } return ohlcBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.MarketOHLC) } // @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.MarketOHLC) private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC(); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MarketOHLC parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MarketOHLC(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QuoteOrBuilder extends // @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.Quote) com.google.protobuf.MessageOrBuilder { /** *
     *bid quantity
     * 
* * int32 bq = 1; * @return The bq. */ int getBq(); /** *
     *bid price
     * 
* * double bp = 2; * @return The bp. */ double getBp(); /** *
     *bid number of orders
     * 
* * int32 bno = 3; * @return The bno. */ int getBno(); /** *
     * ask quantity
     * 
* * int32 aq = 4; * @return The aq. */ int getAq(); /** *
     * ask price
     * 
* * double ap = 5; * @return The ap. */ double getAp(); /** *
     * ask number of orders
     * 
* * int32 ano = 6; * @return The ano. */ int getAno(); } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.Quote} */ public static final class Quote extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.Quote) QuoteOrBuilder { private static final long serialVersionUID = 0L; // Use Quote.newBuilder() to construct. private Quote(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Quote() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Quote(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Quote( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { bq_ = input.readInt32(); break; } case 17: { bp_ = input.readDouble(); break; } case 24: { bno_ = input.readInt32(); break; } case 32: { aq_ = input.readInt32(); break; } case 41: { ap_ = input.readDouble(); break; } case 48: { ano_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_Quote_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_Quote_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder.class); } public static final int BQ_FIELD_NUMBER = 1; private int bq_; /** *
     *bid quantity
     * 
* * int32 bq = 1; * @return The bq. */ @java.lang.Override public int getBq() { return bq_; } public static final int BP_FIELD_NUMBER = 2; private double bp_; /** *
     *bid price
     * 
* * double bp = 2; * @return The bp. */ @java.lang.Override public double getBp() { return bp_; } public static final int BNO_FIELD_NUMBER = 3; private int bno_; /** *
     *bid number of orders
     * 
* * int32 bno = 3; * @return The bno. */ @java.lang.Override public int getBno() { return bno_; } public static final int AQ_FIELD_NUMBER = 4; private int aq_; /** *
     * ask quantity
     * 
* * int32 aq = 4; * @return The aq. */ @java.lang.Override public int getAq() { return aq_; } public static final int AP_FIELD_NUMBER = 5; private double ap_; /** *
     * ask price
     * 
* * double ap = 5; * @return The ap. */ @java.lang.Override public double getAp() { return ap_; } public static final int ANO_FIELD_NUMBER = 6; private int ano_; /** *
     * ask number of orders
     * 
* * int32 ano = 6; * @return The ano. */ @java.lang.Override public int getAno() { return ano_; } 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 (bq_ != 0) { output.writeInt32(1, bq_); } if (bp_ != 0D) { output.writeDouble(2, bp_); } if (bno_ != 0) { output.writeInt32(3, bno_); } if (aq_ != 0) { output.writeInt32(4, aq_); } if (ap_ != 0D) { output.writeDouble(5, ap_); } if (ano_ != 0) { output.writeInt32(6, ano_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (bq_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, bq_); } if (bp_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, bp_); } if (bno_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, bno_); } if (aq_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, aq_); } if (ap_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, ap_); } if (ano_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, ano_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote)) { return super.equals(obj); } com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote other = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote) obj; if (getBq() != other.getBq()) return false; if (java.lang.Double.doubleToLongBits(getBp()) != java.lang.Double.doubleToLongBits( other.getBp())) return false; if (getBno() != other.getBno()) return false; if (getAq() != other.getAq()) return false; if (java.lang.Double.doubleToLongBits(getAp()) != java.lang.Double.doubleToLongBits( other.getAp())) return false; if (getAno() != other.getAno()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BQ_FIELD_NUMBER; hash = (53 * hash) + getBq(); hash = (37 * hash) + BP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getBp())); hash = (37 * hash) + BNO_FIELD_NUMBER; hash = (53 * hash) + getBno(); hash = (37 * hash) + AQ_FIELD_NUMBER; hash = (53 * hash) + getAq(); hash = (37 * hash) + AP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getAp())); hash = (37 * hash) + ANO_FIELD_NUMBER; hash = (53 * hash) + getAno(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.Quote} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.upstox.marketdatafeeder.rpc.proto.Quote) com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.QuoteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_Quote_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_Quote_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder.class); } // Construct using com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); bq_ = 0; bp_ = 0D; bno_ = 0; aq_ = 0; ap_ = 0D; ano_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_Quote_descriptor; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote getDefaultInstanceForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.getDefaultInstance(); } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote build() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote buildPartial() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote result = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote(this); result.bq_ = bq_; result.bp_ = bp_; result.bno_ = bno_; result.aq_ = aq_; result.ap_ = ap_; result.ano_ = ano_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote) { return mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote other) { if (other == com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.getDefaultInstance()) return this; if (other.getBq() != 0) { setBq(other.getBq()); } if (other.getBp() != 0D) { setBp(other.getBp()); } if (other.getBno() != 0) { setBno(other.getBno()); } if (other.getAq() != 0) { setAq(other.getAq()); } if (other.getAp() != 0D) { setAp(other.getAp()); } if (other.getAno() != 0) { setAno(other.getAno()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bq_ ; /** *
       *bid quantity
       * 
* * int32 bq = 1; * @return The bq. */ @java.lang.Override public int getBq() { return bq_; } /** *
       *bid quantity
       * 
* * int32 bq = 1; * @param value The bq to set. * @return This builder for chaining. */ public Builder setBq(int value) { bq_ = value; onChanged(); return this; } /** *
       *bid quantity
       * 
* * int32 bq = 1; * @return This builder for chaining. */ public Builder clearBq() { bq_ = 0; onChanged(); return this; } private double bp_ ; /** *
       *bid price
       * 
* * double bp = 2; * @return The bp. */ @java.lang.Override public double getBp() { return bp_; } /** *
       *bid price
       * 
* * double bp = 2; * @param value The bp to set. * @return This builder for chaining. */ public Builder setBp(double value) { bp_ = value; onChanged(); return this; } /** *
       *bid price
       * 
* * double bp = 2; * @return This builder for chaining. */ public Builder clearBp() { bp_ = 0D; onChanged(); return this; } private int bno_ ; /** *
       *bid number of orders
       * 
* * int32 bno = 3; * @return The bno. */ @java.lang.Override public int getBno() { return bno_; } /** *
       *bid number of orders
       * 
* * int32 bno = 3; * @param value The bno to set. * @return This builder for chaining. */ public Builder setBno(int value) { bno_ = value; onChanged(); return this; } /** *
       *bid number of orders
       * 
* * int32 bno = 3; * @return This builder for chaining. */ public Builder clearBno() { bno_ = 0; onChanged(); return this; } private int aq_ ; /** *
       * ask quantity
       * 
* * int32 aq = 4; * @return The aq. */ @java.lang.Override public int getAq() { return aq_; } /** *
       * ask quantity
       * 
* * int32 aq = 4; * @param value The aq to set. * @return This builder for chaining. */ public Builder setAq(int value) { aq_ = value; onChanged(); return this; } /** *
       * ask quantity
       * 
* * int32 aq = 4; * @return This builder for chaining. */ public Builder clearAq() { aq_ = 0; onChanged(); return this; } private double ap_ ; /** *
       * ask price
       * 
* * double ap = 5; * @return The ap. */ @java.lang.Override public double getAp() { return ap_; } /** *
       * ask price
       * 
* * double ap = 5; * @param value The ap to set. * @return This builder for chaining. */ public Builder setAp(double value) { ap_ = value; onChanged(); return this; } /** *
       * ask price
       * 
* * double ap = 5; * @return This builder for chaining. */ public Builder clearAp() { ap_ = 0D; onChanged(); return this; } private int ano_ ; /** *
       * ask number of orders
       * 
* * int32 ano = 6; * @return The ano. */ @java.lang.Override public int getAno() { return ano_; } /** *
       * ask number of orders
       * 
* * int32 ano = 6; * @param value The ano to set. * @return This builder for chaining. */ public Builder setAno(int value) { ano_ = value; onChanged(); return this; } /** *
       * ask number of orders
       * 
* * int32 ano = 6; * @return This builder for chaining. */ public Builder clearAno() { ano_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.Quote) } // @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.Quote) private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote(); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Quote parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Quote(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OptionGreeksOrBuilder extends // @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.OptionGreeks) com.google.protobuf.MessageOrBuilder { /** *
     * option price
     * 
* * double op = 1; * @return The op. */ double getOp(); /** *
     *underlying price
     * 
* * double up = 2; * @return The up. */ double getUp(); /** *
     * implied volatility
     * 
* * double iv = 3; * @return The iv. */ double getIv(); /** * double delta = 4; * @return The delta. */ double getDelta(); /** * double theta = 5; * @return The theta. */ double getTheta(); /** * double gamma = 6; * @return The gamma. */ double getGamma(); /** * double vega = 7; * @return The vega. */ double getVega(); /** * double rho = 8; * @return The rho. */ double getRho(); } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.OptionGreeks} */ public static final class OptionGreeks extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.OptionGreeks) OptionGreeksOrBuilder { private static final long serialVersionUID = 0L; // Use OptionGreeks.newBuilder() to construct. private OptionGreeks(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OptionGreeks() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OptionGreeks(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OptionGreeks( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 9: { op_ = input.readDouble(); break; } case 17: { up_ = input.readDouble(); break; } case 25: { iv_ = input.readDouble(); break; } case 33: { delta_ = input.readDouble(); break; } case 41: { theta_ = input.readDouble(); break; } case 49: { gamma_ = input.readDouble(); break; } case 57: { vega_ = input.readDouble(); break; } case 65: { rho_ = input.readDouble(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionGreeks_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionGreeks_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder.class); } public static final int OP_FIELD_NUMBER = 1; private double op_; /** *
     * option price
     * 
* * double op = 1; * @return The op. */ @java.lang.Override public double getOp() { return op_; } public static final int UP_FIELD_NUMBER = 2; private double up_; /** *
     *underlying price
     * 
* * double up = 2; * @return The up. */ @java.lang.Override public double getUp() { return up_; } public static final int IV_FIELD_NUMBER = 3; private double iv_; /** *
     * implied volatility
     * 
* * double iv = 3; * @return The iv. */ @java.lang.Override public double getIv() { return iv_; } public static final int DELTA_FIELD_NUMBER = 4; private double delta_; /** * double delta = 4; * @return The delta. */ @java.lang.Override public double getDelta() { return delta_; } public static final int THETA_FIELD_NUMBER = 5; private double theta_; /** * double theta = 5; * @return The theta. */ @java.lang.Override public double getTheta() { return theta_; } public static final int GAMMA_FIELD_NUMBER = 6; private double gamma_; /** * double gamma = 6; * @return The gamma. */ @java.lang.Override public double getGamma() { return gamma_; } public static final int VEGA_FIELD_NUMBER = 7; private double vega_; /** * double vega = 7; * @return The vega. */ @java.lang.Override public double getVega() { return vega_; } public static final int RHO_FIELD_NUMBER = 8; private double rho_; /** * double rho = 8; * @return The rho. */ @java.lang.Override public double getRho() { return rho_; } 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 (op_ != 0D) { output.writeDouble(1, op_); } if (up_ != 0D) { output.writeDouble(2, up_); } if (iv_ != 0D) { output.writeDouble(3, iv_); } if (delta_ != 0D) { output.writeDouble(4, delta_); } if (theta_ != 0D) { output.writeDouble(5, theta_); } if (gamma_ != 0D) { output.writeDouble(6, gamma_); } if (vega_ != 0D) { output.writeDouble(7, vega_); } if (rho_ != 0D) { output.writeDouble(8, rho_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (op_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, op_); } if (up_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, up_); } if (iv_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, iv_); } if (delta_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, delta_); } if (theta_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, theta_); } if (gamma_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, gamma_); } if (vega_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(7, vega_); } if (rho_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(8, rho_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks)) { return super.equals(obj); } com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks other = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks) obj; if (java.lang.Double.doubleToLongBits(getOp()) != java.lang.Double.doubleToLongBits( other.getOp())) return false; if (java.lang.Double.doubleToLongBits(getUp()) != java.lang.Double.doubleToLongBits( other.getUp())) return false; if (java.lang.Double.doubleToLongBits(getIv()) != java.lang.Double.doubleToLongBits( other.getIv())) return false; if (java.lang.Double.doubleToLongBits(getDelta()) != java.lang.Double.doubleToLongBits( other.getDelta())) return false; if (java.lang.Double.doubleToLongBits(getTheta()) != java.lang.Double.doubleToLongBits( other.getTheta())) return false; if (java.lang.Double.doubleToLongBits(getGamma()) != java.lang.Double.doubleToLongBits( other.getGamma())) return false; if (java.lang.Double.doubleToLongBits(getVega()) != java.lang.Double.doubleToLongBits( other.getVega())) return false; if (java.lang.Double.doubleToLongBits(getRho()) != java.lang.Double.doubleToLongBits( other.getRho())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getOp())); hash = (37 * hash) + UP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getUp())); hash = (37 * hash) + IV_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getIv())); hash = (37 * hash) + DELTA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDelta())); hash = (37 * hash) + THETA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTheta())); hash = (37 * hash) + GAMMA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getGamma())); hash = (37 * hash) + VEGA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getVega())); hash = (37 * hash) + RHO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getRho())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.OptionGreeks} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.upstox.marketdatafeeder.rpc.proto.OptionGreeks) com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionGreeks_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionGreeks_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder.class); } // Construct using com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); op_ = 0D; up_ = 0D; iv_ = 0D; delta_ = 0D; theta_ = 0D; gamma_ = 0D; vega_ = 0D; rho_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionGreeks_descriptor; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks getDefaultInstanceForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.getDefaultInstance(); } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks build() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks buildPartial() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks result = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks(this); result.op_ = op_; result.up_ = up_; result.iv_ = iv_; result.delta_ = delta_; result.theta_ = theta_; result.gamma_ = gamma_; result.vega_ = vega_; result.rho_ = rho_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks) { return mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks other) { if (other == com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.getDefaultInstance()) return this; if (other.getOp() != 0D) { setOp(other.getOp()); } if (other.getUp() != 0D) { setUp(other.getUp()); } if (other.getIv() != 0D) { setIv(other.getIv()); } if (other.getDelta() != 0D) { setDelta(other.getDelta()); } if (other.getTheta() != 0D) { setTheta(other.getTheta()); } if (other.getGamma() != 0D) { setGamma(other.getGamma()); } if (other.getVega() != 0D) { setVega(other.getVega()); } if (other.getRho() != 0D) { setRho(other.getRho()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private double op_ ; /** *
       * option price
       * 
* * double op = 1; * @return The op. */ @java.lang.Override public double getOp() { return op_; } /** *
       * option price
       * 
* * double op = 1; * @param value The op to set. * @return This builder for chaining. */ public Builder setOp(double value) { op_ = value; onChanged(); return this; } /** *
       * option price
       * 
* * double op = 1; * @return This builder for chaining. */ public Builder clearOp() { op_ = 0D; onChanged(); return this; } private double up_ ; /** *
       *underlying price
       * 
* * double up = 2; * @return The up. */ @java.lang.Override public double getUp() { return up_; } /** *
       *underlying price
       * 
* * double up = 2; * @param value The up to set. * @return This builder for chaining. */ public Builder setUp(double value) { up_ = value; onChanged(); return this; } /** *
       *underlying price
       * 
* * double up = 2; * @return This builder for chaining. */ public Builder clearUp() { up_ = 0D; onChanged(); return this; } private double iv_ ; /** *
       * implied volatility
       * 
* * double iv = 3; * @return The iv. */ @java.lang.Override public double getIv() { return iv_; } /** *
       * implied volatility
       * 
* * double iv = 3; * @param value The iv to set. * @return This builder for chaining. */ public Builder setIv(double value) { iv_ = value; onChanged(); return this; } /** *
       * implied volatility
       * 
* * double iv = 3; * @return This builder for chaining. */ public Builder clearIv() { iv_ = 0D; onChanged(); return this; } private double delta_ ; /** * double delta = 4; * @return The delta. */ @java.lang.Override public double getDelta() { return delta_; } /** * double delta = 4; * @param value The delta to set. * @return This builder for chaining. */ public Builder setDelta(double value) { delta_ = value; onChanged(); return this; } /** * double delta = 4; * @return This builder for chaining. */ public Builder clearDelta() { delta_ = 0D; onChanged(); return this; } private double theta_ ; /** * double theta = 5; * @return The theta. */ @java.lang.Override public double getTheta() { return theta_; } /** * double theta = 5; * @param value The theta to set. * @return This builder for chaining. */ public Builder setTheta(double value) { theta_ = value; onChanged(); return this; } /** * double theta = 5; * @return This builder for chaining. */ public Builder clearTheta() { theta_ = 0D; onChanged(); return this; } private double gamma_ ; /** * double gamma = 6; * @return The gamma. */ @java.lang.Override public double getGamma() { return gamma_; } /** * double gamma = 6; * @param value The gamma to set. * @return This builder for chaining. */ public Builder setGamma(double value) { gamma_ = value; onChanged(); return this; } /** * double gamma = 6; * @return This builder for chaining. */ public Builder clearGamma() { gamma_ = 0D; onChanged(); return this; } private double vega_ ; /** * double vega = 7; * @return The vega. */ @java.lang.Override public double getVega() { return vega_; } /** * double vega = 7; * @param value The vega to set. * @return This builder for chaining. */ public Builder setVega(double value) { vega_ = value; onChanged(); return this; } /** * double vega = 7; * @return This builder for chaining. */ public Builder clearVega() { vega_ = 0D; onChanged(); return this; } private double rho_ ; /** * double rho = 8; * @return The rho. */ @java.lang.Override public double getRho() { return rho_; } /** * double rho = 8; * @param value The rho to set. * @return This builder for chaining. */ public Builder setRho(double value) { rho_ = value; onChanged(); return this; } /** * double rho = 8; * @return This builder for chaining. */ public Builder clearRho() { rho_ = 0D; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.OptionGreeks) } // @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.OptionGreeks) private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks(); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OptionGreeks parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OptionGreeks(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExtendedFeedDetailsOrBuilder extends // @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails) com.google.protobuf.MessageOrBuilder { /** *
     *avg traded price
     * 
* * double atp = 1; * @return The atp. */ double getAtp(); /** *
     *close price
     * 
* * double cp = 2; * @return The cp. */ double getCp(); /** *
     *volume traded today
     * 
* * int64 vtt = 3; * @return The vtt. */ long getVtt(); /** *
     *open interest
     * 
* * double oi = 4; * @return The oi. */ double getOi(); /** *
     *change oi
     * 
* * double changeOi = 5; * @return The changeOi. */ double getChangeOi(); /** * double lastClose = 6; * @return The lastClose. */ double getLastClose(); /** *
     *total buy quantity
     * 
* * double tbq = 7; * @return The tbq. */ double getTbq(); /** *
     *total sell quantity
     * 
* * double tsq = 8; * @return The tsq. */ double getTsq(); /** * double close = 9; * @return The close. */ double getClose(); /** *
     *lower circuit
     * 
* * double lc = 10; * @return The lc. */ double getLc(); /** *
     *upper circuit
     * 
* * double uc = 11; * @return The uc. */ double getUc(); /** *
     *yearly high
     * 
* * double yh = 12; * @return The yh. */ double getYh(); /** *
     *yearly low
     * 
* * double yl = 13; * @return The yl. */ double getYl(); /** *
     *fill price
     * 
* * double fp = 14; * @return The fp. */ double getFp(); /** *
     *fill volume
     * 
* * int32 fv = 15; * @return The fv. */ int getFv(); /** *
     *mbp buy
     * 
* * int64 mbpBuy = 16; * @return The mbpBuy. */ long getMbpBuy(); /** *
     *mbp sell
     * 
* * int64 mbpSell = 17; * @return The mbpSell. */ long getMbpSell(); /** *
     *traded volume
     * 
* * int64 tv = 18; * @return The tv. */ long getTv(); /** *
     *day high open interest
     * 
* * double dhoi = 19; * @return The dhoi. */ double getDhoi(); /** *
     *day low open interest
     * 
* * double dloi = 20; * @return The dloi. */ double getDloi(); /** *
     *spot price
     * 
* * double sp = 21; * @return The sp. */ double getSp(); /** *
     *previous open interest
     * 
* * double poi = 22; * @return The poi. */ double getPoi(); } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails} */ public static final class ExtendedFeedDetails extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails) ExtendedFeedDetailsOrBuilder { private static final long serialVersionUID = 0L; // Use ExtendedFeedDetails.newBuilder() to construct. private ExtendedFeedDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExtendedFeedDetails() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExtendedFeedDetails(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExtendedFeedDetails( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 9: { atp_ = input.readDouble(); break; } case 17: { cp_ = input.readDouble(); break; } case 24: { vtt_ = input.readInt64(); break; } case 33: { oi_ = input.readDouble(); break; } case 41: { changeOi_ = input.readDouble(); break; } case 49: { lastClose_ = input.readDouble(); break; } case 57: { tbq_ = input.readDouble(); break; } case 65: { tsq_ = input.readDouble(); break; } case 73: { close_ = input.readDouble(); break; } case 81: { lc_ = input.readDouble(); break; } case 89: { uc_ = input.readDouble(); break; } case 97: { yh_ = input.readDouble(); break; } case 105: { yl_ = input.readDouble(); break; } case 113: { fp_ = input.readDouble(); break; } case 120: { fv_ = input.readInt32(); break; } case 128: { mbpBuy_ = input.readInt64(); break; } case 136: { mbpSell_ = input.readInt64(); break; } case 144: { tv_ = input.readInt64(); break; } case 153: { dhoi_ = input.readDouble(); break; } case 161: { dloi_ = input.readDouble(); break; } case 169: { sp_ = input.readDouble(); break; } case 177: { poi_ = input.readDouble(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_ExtendedFeedDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_ExtendedFeedDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder.class); } public static final int ATP_FIELD_NUMBER = 1; private double atp_; /** *
     *avg traded price
     * 
* * double atp = 1; * @return The atp. */ @java.lang.Override public double getAtp() { return atp_; } public static final int CP_FIELD_NUMBER = 2; private double cp_; /** *
     *close price
     * 
* * double cp = 2; * @return The cp. */ @java.lang.Override public double getCp() { return cp_; } public static final int VTT_FIELD_NUMBER = 3; private long vtt_; /** *
     *volume traded today
     * 
* * int64 vtt = 3; * @return The vtt. */ @java.lang.Override public long getVtt() { return vtt_; } public static final int OI_FIELD_NUMBER = 4; private double oi_; /** *
     *open interest
     * 
* * double oi = 4; * @return The oi. */ @java.lang.Override public double getOi() { return oi_; } public static final int CHANGEOI_FIELD_NUMBER = 5; private double changeOi_; /** *
     *change oi
     * 
* * double changeOi = 5; * @return The changeOi. */ @java.lang.Override public double getChangeOi() { return changeOi_; } public static final int LASTCLOSE_FIELD_NUMBER = 6; private double lastClose_; /** * double lastClose = 6; * @return The lastClose. */ @java.lang.Override public double getLastClose() { return lastClose_; } public static final int TBQ_FIELD_NUMBER = 7; private double tbq_; /** *
     *total buy quantity
     * 
* * double tbq = 7; * @return The tbq. */ @java.lang.Override public double getTbq() { return tbq_; } public static final int TSQ_FIELD_NUMBER = 8; private double tsq_; /** *
     *total sell quantity
     * 
* * double tsq = 8; * @return The tsq. */ @java.lang.Override public double getTsq() { return tsq_; } public static final int CLOSE_FIELD_NUMBER = 9; private double close_; /** * double close = 9; * @return The close. */ @java.lang.Override public double getClose() { return close_; } public static final int LC_FIELD_NUMBER = 10; private double lc_; /** *
     *lower circuit
     * 
* * double lc = 10; * @return The lc. */ @java.lang.Override public double getLc() { return lc_; } public static final int UC_FIELD_NUMBER = 11; private double uc_; /** *
     *upper circuit
     * 
* * double uc = 11; * @return The uc. */ @java.lang.Override public double getUc() { return uc_; } public static final int YH_FIELD_NUMBER = 12; private double yh_; /** *
     *yearly high
     * 
* * double yh = 12; * @return The yh. */ @java.lang.Override public double getYh() { return yh_; } public static final int YL_FIELD_NUMBER = 13; private double yl_; /** *
     *yearly low
     * 
* * double yl = 13; * @return The yl. */ @java.lang.Override public double getYl() { return yl_; } public static final int FP_FIELD_NUMBER = 14; private double fp_; /** *
     *fill price
     * 
* * double fp = 14; * @return The fp. */ @java.lang.Override public double getFp() { return fp_; } public static final int FV_FIELD_NUMBER = 15; private int fv_; /** *
     *fill volume
     * 
* * int32 fv = 15; * @return The fv. */ @java.lang.Override public int getFv() { return fv_; } public static final int MBPBUY_FIELD_NUMBER = 16; private long mbpBuy_; /** *
     *mbp buy
     * 
* * int64 mbpBuy = 16; * @return The mbpBuy. */ @java.lang.Override public long getMbpBuy() { return mbpBuy_; } public static final int MBPSELL_FIELD_NUMBER = 17; private long mbpSell_; /** *
     *mbp sell
     * 
* * int64 mbpSell = 17; * @return The mbpSell. */ @java.lang.Override public long getMbpSell() { return mbpSell_; } public static final int TV_FIELD_NUMBER = 18; private long tv_; /** *
     *traded volume
     * 
* * int64 tv = 18; * @return The tv. */ @java.lang.Override public long getTv() { return tv_; } public static final int DHOI_FIELD_NUMBER = 19; private double dhoi_; /** *
     *day high open interest
     * 
* * double dhoi = 19; * @return The dhoi. */ @java.lang.Override public double getDhoi() { return dhoi_; } public static final int DLOI_FIELD_NUMBER = 20; private double dloi_; /** *
     *day low open interest
     * 
* * double dloi = 20; * @return The dloi. */ @java.lang.Override public double getDloi() { return dloi_; } public static final int SP_FIELD_NUMBER = 21; private double sp_; /** *
     *spot price
     * 
* * double sp = 21; * @return The sp. */ @java.lang.Override public double getSp() { return sp_; } public static final int POI_FIELD_NUMBER = 22; private double poi_; /** *
     *previous open interest
     * 
* * double poi = 22; * @return The poi. */ @java.lang.Override public double getPoi() { return poi_; } 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 (atp_ != 0D) { output.writeDouble(1, atp_); } if (cp_ != 0D) { output.writeDouble(2, cp_); } if (vtt_ != 0L) { output.writeInt64(3, vtt_); } if (oi_ != 0D) { output.writeDouble(4, oi_); } if (changeOi_ != 0D) { output.writeDouble(5, changeOi_); } if (lastClose_ != 0D) { output.writeDouble(6, lastClose_); } if (tbq_ != 0D) { output.writeDouble(7, tbq_); } if (tsq_ != 0D) { output.writeDouble(8, tsq_); } if (close_ != 0D) { output.writeDouble(9, close_); } if (lc_ != 0D) { output.writeDouble(10, lc_); } if (uc_ != 0D) { output.writeDouble(11, uc_); } if (yh_ != 0D) { output.writeDouble(12, yh_); } if (yl_ != 0D) { output.writeDouble(13, yl_); } if (fp_ != 0D) { output.writeDouble(14, fp_); } if (fv_ != 0) { output.writeInt32(15, fv_); } if (mbpBuy_ != 0L) { output.writeInt64(16, mbpBuy_); } if (mbpSell_ != 0L) { output.writeInt64(17, mbpSell_); } if (tv_ != 0L) { output.writeInt64(18, tv_); } if (dhoi_ != 0D) { output.writeDouble(19, dhoi_); } if (dloi_ != 0D) { output.writeDouble(20, dloi_); } if (sp_ != 0D) { output.writeDouble(21, sp_); } if (poi_ != 0D) { output.writeDouble(22, poi_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (atp_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, atp_); } if (cp_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, cp_); } if (vtt_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, vtt_); } if (oi_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, oi_); } if (changeOi_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, changeOi_); } if (lastClose_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, lastClose_); } if (tbq_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(7, tbq_); } if (tsq_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(8, tsq_); } if (close_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(9, close_); } if (lc_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(10, lc_); } if (uc_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(11, uc_); } if (yh_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(12, yh_); } if (yl_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(13, yl_); } if (fp_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(14, fp_); } if (fv_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(15, fv_); } if (mbpBuy_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(16, mbpBuy_); } if (mbpSell_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(17, mbpSell_); } if (tv_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(18, tv_); } if (dhoi_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(19, dhoi_); } if (dloi_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(20, dloi_); } if (sp_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(21, sp_); } if (poi_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(22, poi_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails)) { return super.equals(obj); } com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails other = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails) obj; if (java.lang.Double.doubleToLongBits(getAtp()) != java.lang.Double.doubleToLongBits( other.getAtp())) return false; if (java.lang.Double.doubleToLongBits(getCp()) != java.lang.Double.doubleToLongBits( other.getCp())) return false; if (getVtt() != other.getVtt()) return false; if (java.lang.Double.doubleToLongBits(getOi()) != java.lang.Double.doubleToLongBits( other.getOi())) return false; if (java.lang.Double.doubleToLongBits(getChangeOi()) != java.lang.Double.doubleToLongBits( other.getChangeOi())) return false; if (java.lang.Double.doubleToLongBits(getLastClose()) != java.lang.Double.doubleToLongBits( other.getLastClose())) return false; if (java.lang.Double.doubleToLongBits(getTbq()) != java.lang.Double.doubleToLongBits( other.getTbq())) return false; if (java.lang.Double.doubleToLongBits(getTsq()) != java.lang.Double.doubleToLongBits( other.getTsq())) return false; if (java.lang.Double.doubleToLongBits(getClose()) != java.lang.Double.doubleToLongBits( other.getClose())) return false; if (java.lang.Double.doubleToLongBits(getLc()) != java.lang.Double.doubleToLongBits( other.getLc())) return false; if (java.lang.Double.doubleToLongBits(getUc()) != java.lang.Double.doubleToLongBits( other.getUc())) return false; if (java.lang.Double.doubleToLongBits(getYh()) != java.lang.Double.doubleToLongBits( other.getYh())) return false; if (java.lang.Double.doubleToLongBits(getYl()) != java.lang.Double.doubleToLongBits( other.getYl())) return false; if (java.lang.Double.doubleToLongBits(getFp()) != java.lang.Double.doubleToLongBits( other.getFp())) return false; if (getFv() != other.getFv()) return false; if (getMbpBuy() != other.getMbpBuy()) return false; if (getMbpSell() != other.getMbpSell()) return false; if (getTv() != other.getTv()) return false; if (java.lang.Double.doubleToLongBits(getDhoi()) != java.lang.Double.doubleToLongBits( other.getDhoi())) return false; if (java.lang.Double.doubleToLongBits(getDloi()) != java.lang.Double.doubleToLongBits( other.getDloi())) return false; if (java.lang.Double.doubleToLongBits(getSp()) != java.lang.Double.doubleToLongBits( other.getSp())) return false; if (java.lang.Double.doubleToLongBits(getPoi()) != java.lang.Double.doubleToLongBits( other.getPoi())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ATP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getAtp())); hash = (37 * hash) + CP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getCp())); hash = (37 * hash) + VTT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVtt()); hash = (37 * hash) + OI_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getOi())); hash = (37 * hash) + CHANGEOI_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getChangeOi())); hash = (37 * hash) + LASTCLOSE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getLastClose())); hash = (37 * hash) + TBQ_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTbq())); hash = (37 * hash) + TSQ_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTsq())); hash = (37 * hash) + CLOSE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getClose())); hash = (37 * hash) + LC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getLc())); hash = (37 * hash) + UC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getUc())); hash = (37 * hash) + YH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getYh())); hash = (37 * hash) + YL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getYl())); hash = (37 * hash) + FP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getFp())); hash = (37 * hash) + FV_FIELD_NUMBER; hash = (53 * hash) + getFv(); hash = (37 * hash) + MBPBUY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMbpBuy()); hash = (37 * hash) + MBPSELL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMbpSell()); hash = (37 * hash) + TV_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTv()); hash = (37 * hash) + DHOI_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDhoi())); hash = (37 * hash) + DLOI_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDloi())); hash = (37 * hash) + SP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getSp())); hash = (37 * hash) + POI_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getPoi())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails) com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetailsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_ExtendedFeedDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_ExtendedFeedDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder.class); } // Construct using com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); atp_ = 0D; cp_ = 0D; vtt_ = 0L; oi_ = 0D; changeOi_ = 0D; lastClose_ = 0D; tbq_ = 0D; tsq_ = 0D; close_ = 0D; lc_ = 0D; uc_ = 0D; yh_ = 0D; yl_ = 0D; fp_ = 0D; fv_ = 0; mbpBuy_ = 0L; mbpSell_ = 0L; tv_ = 0L; dhoi_ = 0D; dloi_ = 0D; sp_ = 0D; poi_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_ExtendedFeedDetails_descriptor; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails getDefaultInstanceForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.getDefaultInstance(); } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails build() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails buildPartial() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails result = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails(this); result.atp_ = atp_; result.cp_ = cp_; result.vtt_ = vtt_; result.oi_ = oi_; result.changeOi_ = changeOi_; result.lastClose_ = lastClose_; result.tbq_ = tbq_; result.tsq_ = tsq_; result.close_ = close_; result.lc_ = lc_; result.uc_ = uc_; result.yh_ = yh_; result.yl_ = yl_; result.fp_ = fp_; result.fv_ = fv_; result.mbpBuy_ = mbpBuy_; result.mbpSell_ = mbpSell_; result.tv_ = tv_; result.dhoi_ = dhoi_; result.dloi_ = dloi_; result.sp_ = sp_; result.poi_ = poi_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails) { return mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails other) { if (other == com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.getDefaultInstance()) return this; if (other.getAtp() != 0D) { setAtp(other.getAtp()); } if (other.getCp() != 0D) { setCp(other.getCp()); } if (other.getVtt() != 0L) { setVtt(other.getVtt()); } if (other.getOi() != 0D) { setOi(other.getOi()); } if (other.getChangeOi() != 0D) { setChangeOi(other.getChangeOi()); } if (other.getLastClose() != 0D) { setLastClose(other.getLastClose()); } if (other.getTbq() != 0D) { setTbq(other.getTbq()); } if (other.getTsq() != 0D) { setTsq(other.getTsq()); } if (other.getClose() != 0D) { setClose(other.getClose()); } if (other.getLc() != 0D) { setLc(other.getLc()); } if (other.getUc() != 0D) { setUc(other.getUc()); } if (other.getYh() != 0D) { setYh(other.getYh()); } if (other.getYl() != 0D) { setYl(other.getYl()); } if (other.getFp() != 0D) { setFp(other.getFp()); } if (other.getFv() != 0) { setFv(other.getFv()); } if (other.getMbpBuy() != 0L) { setMbpBuy(other.getMbpBuy()); } if (other.getMbpSell() != 0L) { setMbpSell(other.getMbpSell()); } if (other.getTv() != 0L) { setTv(other.getTv()); } if (other.getDhoi() != 0D) { setDhoi(other.getDhoi()); } if (other.getDloi() != 0D) { setDloi(other.getDloi()); } if (other.getSp() != 0D) { setSp(other.getSp()); } if (other.getPoi() != 0D) { setPoi(other.getPoi()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private double atp_ ; /** *
       *avg traded price
       * 
* * double atp = 1; * @return The atp. */ @java.lang.Override public double getAtp() { return atp_; } /** *
       *avg traded price
       * 
* * double atp = 1; * @param value The atp to set. * @return This builder for chaining. */ public Builder setAtp(double value) { atp_ = value; onChanged(); return this; } /** *
       *avg traded price
       * 
* * double atp = 1; * @return This builder for chaining. */ public Builder clearAtp() { atp_ = 0D; onChanged(); return this; } private double cp_ ; /** *
       *close price
       * 
* * double cp = 2; * @return The cp. */ @java.lang.Override public double getCp() { return cp_; } /** *
       *close price
       * 
* * double cp = 2; * @param value The cp to set. * @return This builder for chaining. */ public Builder setCp(double value) { cp_ = value; onChanged(); return this; } /** *
       *close price
       * 
* * double cp = 2; * @return This builder for chaining. */ public Builder clearCp() { cp_ = 0D; onChanged(); return this; } private long vtt_ ; /** *
       *volume traded today
       * 
* * int64 vtt = 3; * @return The vtt. */ @java.lang.Override public long getVtt() { return vtt_; } /** *
       *volume traded today
       * 
* * int64 vtt = 3; * @param value The vtt to set. * @return This builder for chaining. */ public Builder setVtt(long value) { vtt_ = value; onChanged(); return this; } /** *
       *volume traded today
       * 
* * int64 vtt = 3; * @return This builder for chaining. */ public Builder clearVtt() { vtt_ = 0L; onChanged(); return this; } private double oi_ ; /** *
       *open interest
       * 
* * double oi = 4; * @return The oi. */ @java.lang.Override public double getOi() { return oi_; } /** *
       *open interest
       * 
* * double oi = 4; * @param value The oi to set. * @return This builder for chaining. */ public Builder setOi(double value) { oi_ = value; onChanged(); return this; } /** *
       *open interest
       * 
* * double oi = 4; * @return This builder for chaining. */ public Builder clearOi() { oi_ = 0D; onChanged(); return this; } private double changeOi_ ; /** *
       *change oi
       * 
* * double changeOi = 5; * @return The changeOi. */ @java.lang.Override public double getChangeOi() { return changeOi_; } /** *
       *change oi
       * 
* * double changeOi = 5; * @param value The changeOi to set. * @return This builder for chaining. */ public Builder setChangeOi(double value) { changeOi_ = value; onChanged(); return this; } /** *
       *change oi
       * 
* * double changeOi = 5; * @return This builder for chaining. */ public Builder clearChangeOi() { changeOi_ = 0D; onChanged(); return this; } private double lastClose_ ; /** * double lastClose = 6; * @return The lastClose. */ @java.lang.Override public double getLastClose() { return lastClose_; } /** * double lastClose = 6; * @param value The lastClose to set. * @return This builder for chaining. */ public Builder setLastClose(double value) { lastClose_ = value; onChanged(); return this; } /** * double lastClose = 6; * @return This builder for chaining. */ public Builder clearLastClose() { lastClose_ = 0D; onChanged(); return this; } private double tbq_ ; /** *
       *total buy quantity
       * 
* * double tbq = 7; * @return The tbq. */ @java.lang.Override public double getTbq() { return tbq_; } /** *
       *total buy quantity
       * 
* * double tbq = 7; * @param value The tbq to set. * @return This builder for chaining. */ public Builder setTbq(double value) { tbq_ = value; onChanged(); return this; } /** *
       *total buy quantity
       * 
* * double tbq = 7; * @return This builder for chaining. */ public Builder clearTbq() { tbq_ = 0D; onChanged(); return this; } private double tsq_ ; /** *
       *total sell quantity
       * 
* * double tsq = 8; * @return The tsq. */ @java.lang.Override public double getTsq() { return tsq_; } /** *
       *total sell quantity
       * 
* * double tsq = 8; * @param value The tsq to set. * @return This builder for chaining. */ public Builder setTsq(double value) { tsq_ = value; onChanged(); return this; } /** *
       *total sell quantity
       * 
* * double tsq = 8; * @return This builder for chaining. */ public Builder clearTsq() { tsq_ = 0D; onChanged(); return this; } private double close_ ; /** * double close = 9; * @return The close. */ @java.lang.Override public double getClose() { return close_; } /** * double close = 9; * @param value The close to set. * @return This builder for chaining. */ public Builder setClose(double value) { close_ = value; onChanged(); return this; } /** * double close = 9; * @return This builder for chaining. */ public Builder clearClose() { close_ = 0D; onChanged(); return this; } private double lc_ ; /** *
       *lower circuit
       * 
* * double lc = 10; * @return The lc. */ @java.lang.Override public double getLc() { return lc_; } /** *
       *lower circuit
       * 
* * double lc = 10; * @param value The lc to set. * @return This builder for chaining. */ public Builder setLc(double value) { lc_ = value; onChanged(); return this; } /** *
       *lower circuit
       * 
* * double lc = 10; * @return This builder for chaining. */ public Builder clearLc() { lc_ = 0D; onChanged(); return this; } private double uc_ ; /** *
       *upper circuit
       * 
* * double uc = 11; * @return The uc. */ @java.lang.Override public double getUc() { return uc_; } /** *
       *upper circuit
       * 
* * double uc = 11; * @param value The uc to set. * @return This builder for chaining. */ public Builder setUc(double value) { uc_ = value; onChanged(); return this; } /** *
       *upper circuit
       * 
* * double uc = 11; * @return This builder for chaining. */ public Builder clearUc() { uc_ = 0D; onChanged(); return this; } private double yh_ ; /** *
       *yearly high
       * 
* * double yh = 12; * @return The yh. */ @java.lang.Override public double getYh() { return yh_; } /** *
       *yearly high
       * 
* * double yh = 12; * @param value The yh to set. * @return This builder for chaining. */ public Builder setYh(double value) { yh_ = value; onChanged(); return this; } /** *
       *yearly high
       * 
* * double yh = 12; * @return This builder for chaining. */ public Builder clearYh() { yh_ = 0D; onChanged(); return this; } private double yl_ ; /** *
       *yearly low
       * 
* * double yl = 13; * @return The yl. */ @java.lang.Override public double getYl() { return yl_; } /** *
       *yearly low
       * 
* * double yl = 13; * @param value The yl to set. * @return This builder for chaining. */ public Builder setYl(double value) { yl_ = value; onChanged(); return this; } /** *
       *yearly low
       * 
* * double yl = 13; * @return This builder for chaining. */ public Builder clearYl() { yl_ = 0D; onChanged(); return this; } private double fp_ ; /** *
       *fill price
       * 
* * double fp = 14; * @return The fp. */ @java.lang.Override public double getFp() { return fp_; } /** *
       *fill price
       * 
* * double fp = 14; * @param value The fp to set. * @return This builder for chaining. */ public Builder setFp(double value) { fp_ = value; onChanged(); return this; } /** *
       *fill price
       * 
* * double fp = 14; * @return This builder for chaining. */ public Builder clearFp() { fp_ = 0D; onChanged(); return this; } private int fv_ ; /** *
       *fill volume
       * 
* * int32 fv = 15; * @return The fv. */ @java.lang.Override public int getFv() { return fv_; } /** *
       *fill volume
       * 
* * int32 fv = 15; * @param value The fv to set. * @return This builder for chaining. */ public Builder setFv(int value) { fv_ = value; onChanged(); return this; } /** *
       *fill volume
       * 
* * int32 fv = 15; * @return This builder for chaining. */ public Builder clearFv() { fv_ = 0; onChanged(); return this; } private long mbpBuy_ ; /** *
       *mbp buy
       * 
* * int64 mbpBuy = 16; * @return The mbpBuy. */ @java.lang.Override public long getMbpBuy() { return mbpBuy_; } /** *
       *mbp buy
       * 
* * int64 mbpBuy = 16; * @param value The mbpBuy to set. * @return This builder for chaining. */ public Builder setMbpBuy(long value) { mbpBuy_ = value; onChanged(); return this; } /** *
       *mbp buy
       * 
* * int64 mbpBuy = 16; * @return This builder for chaining. */ public Builder clearMbpBuy() { mbpBuy_ = 0L; onChanged(); return this; } private long mbpSell_ ; /** *
       *mbp sell
       * 
* * int64 mbpSell = 17; * @return The mbpSell. */ @java.lang.Override public long getMbpSell() { return mbpSell_; } /** *
       *mbp sell
       * 
* * int64 mbpSell = 17; * @param value The mbpSell to set. * @return This builder for chaining. */ public Builder setMbpSell(long value) { mbpSell_ = value; onChanged(); return this; } /** *
       *mbp sell
       * 
* * int64 mbpSell = 17; * @return This builder for chaining. */ public Builder clearMbpSell() { mbpSell_ = 0L; onChanged(); return this; } private long tv_ ; /** *
       *traded volume
       * 
* * int64 tv = 18; * @return The tv. */ @java.lang.Override public long getTv() { return tv_; } /** *
       *traded volume
       * 
* * int64 tv = 18; * @param value The tv to set. * @return This builder for chaining. */ public Builder setTv(long value) { tv_ = value; onChanged(); return this; } /** *
       *traded volume
       * 
* * int64 tv = 18; * @return This builder for chaining. */ public Builder clearTv() { tv_ = 0L; onChanged(); return this; } private double dhoi_ ; /** *
       *day high open interest
       * 
* * double dhoi = 19; * @return The dhoi. */ @java.lang.Override public double getDhoi() { return dhoi_; } /** *
       *day high open interest
       * 
* * double dhoi = 19; * @param value The dhoi to set. * @return This builder for chaining. */ public Builder setDhoi(double value) { dhoi_ = value; onChanged(); return this; } /** *
       *day high open interest
       * 
* * double dhoi = 19; * @return This builder for chaining. */ public Builder clearDhoi() { dhoi_ = 0D; onChanged(); return this; } private double dloi_ ; /** *
       *day low open interest
       * 
* * double dloi = 20; * @return The dloi. */ @java.lang.Override public double getDloi() { return dloi_; } /** *
       *day low open interest
       * 
* * double dloi = 20; * @param value The dloi to set. * @return This builder for chaining. */ public Builder setDloi(double value) { dloi_ = value; onChanged(); return this; } /** *
       *day low open interest
       * 
* * double dloi = 20; * @return This builder for chaining. */ public Builder clearDloi() { dloi_ = 0D; onChanged(); return this; } private double sp_ ; /** *
       *spot price
       * 
* * double sp = 21; * @return The sp. */ @java.lang.Override public double getSp() { return sp_; } /** *
       *spot price
       * 
* * double sp = 21; * @param value The sp to set. * @return This builder for chaining. */ public Builder setSp(double value) { sp_ = value; onChanged(); return this; } /** *
       *spot price
       * 
* * double sp = 21; * @return This builder for chaining. */ public Builder clearSp() { sp_ = 0D; onChanged(); return this; } private double poi_ ; /** *
       *previous open interest
       * 
* * double poi = 22; * @return The poi. */ @java.lang.Override public double getPoi() { return poi_; } /** *
       *previous open interest
       * 
* * double poi = 22; * @param value The poi to set. * @return This builder for chaining. */ public Builder setPoi(double value) { poi_ = value; onChanged(); return this; } /** *
       *previous open interest
       * 
* * double poi = 22; * @return This builder for chaining. */ public Builder clearPoi() { poi_ = 0D; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails) } // @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails) private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails(); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExtendedFeedDetails parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExtendedFeedDetails(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OHLCOrBuilder extends // @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.OHLC) com.google.protobuf.MessageOrBuilder { /** * string interval = 1; * @return The interval. */ java.lang.String getInterval(); /** * string interval = 1; * @return The bytes for interval. */ com.google.protobuf.ByteString getIntervalBytes(); /** * double open = 2; * @return The open. */ double getOpen(); /** * double high = 3; * @return The high. */ double getHigh(); /** * double low = 4; * @return The low. */ double getLow(); /** * double close = 5; * @return The close. */ double getClose(); /** * int32 volume = 6; * @return The volume. */ int getVolume(); /** * int64 ts = 7; * @return The ts. */ long getTs(); } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.OHLC} */ public static final class OHLC extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.OHLC) OHLCOrBuilder { private static final long serialVersionUID = 0L; // Use OHLC.newBuilder() to construct. private OHLC(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OHLC() { interval_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OHLC(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OHLC( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); interval_ = s; break; } case 17: { open_ = input.readDouble(); break; } case 25: { high_ = input.readDouble(); break; } case 33: { low_ = input.readDouble(); break; } case 41: { close_ = input.readDouble(); break; } case 48: { volume_ = input.readInt32(); break; } case 56: { ts_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OHLC_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OHLC_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.Builder.class); } public static final int INTERVAL_FIELD_NUMBER = 1; private volatile java.lang.Object interval_; /** * string interval = 1; * @return The interval. */ @java.lang.Override public java.lang.String getInterval() { java.lang.Object ref = interval_; 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(); interval_ = s; return s; } } /** * string interval = 1; * @return The bytes for interval. */ @java.lang.Override public com.google.protobuf.ByteString getIntervalBytes() { java.lang.Object ref = interval_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); interval_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPEN_FIELD_NUMBER = 2; private double open_; /** * double open = 2; * @return The open. */ @java.lang.Override public double getOpen() { return open_; } public static final int HIGH_FIELD_NUMBER = 3; private double high_; /** * double high = 3; * @return The high. */ @java.lang.Override public double getHigh() { return high_; } public static final int LOW_FIELD_NUMBER = 4; private double low_; /** * double low = 4; * @return The low. */ @java.lang.Override public double getLow() { return low_; } public static final int CLOSE_FIELD_NUMBER = 5; private double close_; /** * double close = 5; * @return The close. */ @java.lang.Override public double getClose() { return close_; } public static final int VOLUME_FIELD_NUMBER = 6; private int volume_; /** * int32 volume = 6; * @return The volume. */ @java.lang.Override public int getVolume() { return volume_; } public static final int TS_FIELD_NUMBER = 7; private long ts_; /** * int64 ts = 7; * @return The ts. */ @java.lang.Override public long getTs() { return ts_; } 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 (!getIntervalBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, interval_); } if (open_ != 0D) { output.writeDouble(2, open_); } if (high_ != 0D) { output.writeDouble(3, high_); } if (low_ != 0D) { output.writeDouble(4, low_); } if (close_ != 0D) { output.writeDouble(5, close_); } if (volume_ != 0) { output.writeInt32(6, volume_); } if (ts_ != 0L) { output.writeInt64(7, ts_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getIntervalBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, interval_); } if (open_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, open_); } if (high_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, high_); } if (low_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, low_); } if (close_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, close_); } if (volume_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, volume_); } if (ts_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, ts_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC)) { return super.equals(obj); } com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC other = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC) obj; if (!getInterval() .equals(other.getInterval())) return false; if (java.lang.Double.doubleToLongBits(getOpen()) != java.lang.Double.doubleToLongBits( other.getOpen())) return false; if (java.lang.Double.doubleToLongBits(getHigh()) != java.lang.Double.doubleToLongBits( other.getHigh())) return false; if (java.lang.Double.doubleToLongBits(getLow()) != java.lang.Double.doubleToLongBits( other.getLow())) return false; if (java.lang.Double.doubleToLongBits(getClose()) != java.lang.Double.doubleToLongBits( other.getClose())) return false; if (getVolume() != other.getVolume()) return false; if (getTs() != other.getTs()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getInterval().hashCode(); hash = (37 * hash) + OPEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getOpen())); hash = (37 * hash) + HIGH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getHigh())); hash = (37 * hash) + LOW_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getLow())); hash = (37 * hash) + CLOSE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getClose())); hash = (37 * hash) + VOLUME_FIELD_NUMBER; hash = (53 * hash) + getVolume(); hash = (37 * hash) + TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.OHLC} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.upstox.marketdatafeeder.rpc.proto.OHLC) com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLCOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OHLC_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OHLC_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.Builder.class); } // Construct using com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); interval_ = ""; open_ = 0D; high_ = 0D; low_ = 0D; close_ = 0D; volume_ = 0; ts_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OHLC_descriptor; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC getDefaultInstanceForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.getDefaultInstance(); } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC build() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC buildPartial() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC result = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC(this); result.interval_ = interval_; result.open_ = open_; result.high_ = high_; result.low_ = low_; result.close_ = close_; result.volume_ = volume_; result.ts_ = ts_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC) { return mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC other) { if (other == com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.getDefaultInstance()) return this; if (!other.getInterval().isEmpty()) { interval_ = other.interval_; onChanged(); } if (other.getOpen() != 0D) { setOpen(other.getOpen()); } if (other.getHigh() != 0D) { setHigh(other.getHigh()); } if (other.getLow() != 0D) { setLow(other.getLow()); } if (other.getClose() != 0D) { setClose(other.getClose()); } if (other.getVolume() != 0) { setVolume(other.getVolume()); } if (other.getTs() != 0L) { setTs(other.getTs()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object interval_ = ""; /** * string interval = 1; * @return The interval. */ public java.lang.String getInterval() { java.lang.Object ref = interval_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); interval_ = s; return s; } else { return (java.lang.String) ref; } } /** * string interval = 1; * @return The bytes for interval. */ public com.google.protobuf.ByteString getIntervalBytes() { java.lang.Object ref = interval_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); interval_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string interval = 1; * @param value The interval to set. * @return This builder for chaining. */ public Builder setInterval( java.lang.String value) { if (value == null) { throw new NullPointerException(); } interval_ = value; onChanged(); return this; } /** * string interval = 1; * @return This builder for chaining. */ public Builder clearInterval() { interval_ = getDefaultInstance().getInterval(); onChanged(); return this; } /** * string interval = 1; * @param value The bytes for interval to set. * @return This builder for chaining. */ public Builder setIntervalBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); interval_ = value; onChanged(); return this; } private double open_ ; /** * double open = 2; * @return The open. */ @java.lang.Override public double getOpen() { return open_; } /** * double open = 2; * @param value The open to set. * @return This builder for chaining. */ public Builder setOpen(double value) { open_ = value; onChanged(); return this; } /** * double open = 2; * @return This builder for chaining. */ public Builder clearOpen() { open_ = 0D; onChanged(); return this; } private double high_ ; /** * double high = 3; * @return The high. */ @java.lang.Override public double getHigh() { return high_; } /** * double high = 3; * @param value The high to set. * @return This builder for chaining. */ public Builder setHigh(double value) { high_ = value; onChanged(); return this; } /** * double high = 3; * @return This builder for chaining. */ public Builder clearHigh() { high_ = 0D; onChanged(); return this; } private double low_ ; /** * double low = 4; * @return The low. */ @java.lang.Override public double getLow() { return low_; } /** * double low = 4; * @param value The low to set. * @return This builder for chaining. */ public Builder setLow(double value) { low_ = value; onChanged(); return this; } /** * double low = 4; * @return This builder for chaining. */ public Builder clearLow() { low_ = 0D; onChanged(); return this; } private double close_ ; /** * double close = 5; * @return The close. */ @java.lang.Override public double getClose() { return close_; } /** * double close = 5; * @param value The close to set. * @return This builder for chaining. */ public Builder setClose(double value) { close_ = value; onChanged(); return this; } /** * double close = 5; * @return This builder for chaining. */ public Builder clearClose() { close_ = 0D; onChanged(); return this; } private int volume_ ; /** * int32 volume = 6; * @return The volume. */ @java.lang.Override public int getVolume() { return volume_; } /** * int32 volume = 6; * @param value The volume to set. * @return This builder for chaining. */ public Builder setVolume(int value) { volume_ = value; onChanged(); return this; } /** * int32 volume = 6; * @return This builder for chaining. */ public Builder clearVolume() { volume_ = 0; onChanged(); return this; } private long ts_ ; /** * int64 ts = 7; * @return The ts. */ @java.lang.Override public long getTs() { return ts_; } /** * int64 ts = 7; * @param value The ts to set. * @return This builder for chaining. */ public Builder setTs(long value) { ts_ = value; onChanged(); return this; } /** * int64 ts = 7; * @return This builder for chaining. */ public Builder clearTs() { ts_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.OHLC) } // @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.OHLC) private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC(); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OHLC parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OHLC(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MarketFullFeedOrBuilder extends // @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed) com.google.protobuf.MessageOrBuilder { /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return Whether the ltpc field is set. */ boolean hasLtpc(); /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return The ltpc. */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getLtpc(); /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder getLtpcOrBuilder(); /** * .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2; * @return Whether the marketLevel field is set. */ boolean hasMarketLevel(); /** * .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2; * @return The marketLevel. */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel getMarketLevel(); /** * .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevelOrBuilder getMarketLevelOrBuilder(); /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; * @return Whether the optionGreeks field is set. */ boolean hasOptionGreeks(); /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; * @return The optionGreeks. */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks getOptionGreeks(); /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder getOptionGreeksOrBuilder(); /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4; * @return Whether the marketOHLC field is set. */ boolean hasMarketOHLC(); /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4; * @return The marketOHLC. */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC getMarketOHLC(); /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder getMarketOHLCOrBuilder(); /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5; * @return Whether the eFeedDetails field is set. */ boolean hasEFeedDetails(); /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5; * @return The eFeedDetails. */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails getEFeedDetails(); /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetailsOrBuilder getEFeedDetailsOrBuilder(); } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed} */ public static final class MarketFullFeed extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed) MarketFullFeedOrBuilder { private static final long serialVersionUID = 0L; // Use MarketFullFeed.newBuilder() to construct. private MarketFullFeed(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MarketFullFeed() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MarketFullFeed(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MarketFullFeed( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder subBuilder = null; if (ltpc_ != null) { subBuilder = ltpc_.toBuilder(); } ltpc_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ltpc_); ltpc_ = subBuilder.buildPartial(); } break; } case 18: { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.Builder subBuilder = null; if (marketLevel_ != null) { subBuilder = marketLevel_.toBuilder(); } marketLevel_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(marketLevel_); marketLevel_ = subBuilder.buildPartial(); } break; } case 26: { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder subBuilder = null; if (optionGreeks_ != null) { subBuilder = optionGreeks_.toBuilder(); } optionGreeks_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(optionGreeks_); optionGreeks_ = subBuilder.buildPartial(); } break; } case 34: { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder subBuilder = null; if (marketOHLC_ != null) { subBuilder = marketOHLC_.toBuilder(); } marketOHLC_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(marketOHLC_); marketOHLC_ = subBuilder.buildPartial(); } break; } case 42: { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder subBuilder = null; if (eFeedDetails_ != null) { subBuilder = eFeedDetails_.toBuilder(); } eFeedDetails_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(eFeedDetails_); eFeedDetails_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketFullFeed_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketFullFeed_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.Builder.class); } public static final int LTPC_FIELD_NUMBER = 1; private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC ltpc_; /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return Whether the ltpc field is set. */ @java.lang.Override public boolean hasLtpc() { return ltpc_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return The ltpc. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getLtpc() { return ltpc_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance() : ltpc_; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder getLtpcOrBuilder() { return getLtpc(); } public static final int MARKETLEVEL_FIELD_NUMBER = 2; private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel marketLevel_; /** * .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2; * @return Whether the marketLevel field is set. */ @java.lang.Override public boolean hasMarketLevel() { return marketLevel_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2; * @return The marketLevel. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel getMarketLevel() { return marketLevel_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.getDefaultInstance() : marketLevel_; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevelOrBuilder getMarketLevelOrBuilder() { return getMarketLevel(); } public static final int OPTIONGREEKS_FIELD_NUMBER = 3; private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks optionGreeks_; /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; * @return Whether the optionGreeks field is set. */ @java.lang.Override public boolean hasOptionGreeks() { return optionGreeks_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; * @return The optionGreeks. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks getOptionGreeks() { return optionGreeks_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.getDefaultInstance() : optionGreeks_; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder getOptionGreeksOrBuilder() { return getOptionGreeks(); } public static final int MARKETOHLC_FIELD_NUMBER = 4; private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC marketOHLC_; /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4; * @return Whether the marketOHLC field is set. */ @java.lang.Override public boolean hasMarketOHLC() { return marketOHLC_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4; * @return The marketOHLC. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC getMarketOHLC() { return marketOHLC_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.getDefaultInstance() : marketOHLC_; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder getMarketOHLCOrBuilder() { return getMarketOHLC(); } public static final int EFEEDDETAILS_FIELD_NUMBER = 5; private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails eFeedDetails_; /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5; * @return Whether the eFeedDetails field is set. */ @java.lang.Override public boolean hasEFeedDetails() { return eFeedDetails_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5; * @return The eFeedDetails. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails getEFeedDetails() { return eFeedDetails_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.getDefaultInstance() : eFeedDetails_; } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetailsOrBuilder getEFeedDetailsOrBuilder() { return getEFeedDetails(); } 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 (ltpc_ != null) { output.writeMessage(1, getLtpc()); } if (marketLevel_ != null) { output.writeMessage(2, getMarketLevel()); } if (optionGreeks_ != null) { output.writeMessage(3, getOptionGreeks()); } if (marketOHLC_ != null) { output.writeMessage(4, getMarketOHLC()); } if (eFeedDetails_ != null) { output.writeMessage(5, getEFeedDetails()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (ltpc_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getLtpc()); } if (marketLevel_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMarketLevel()); } if (optionGreeks_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getOptionGreeks()); } if (marketOHLC_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMarketOHLC()); } if (eFeedDetails_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getEFeedDetails()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed)) { return super.equals(obj); } com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed other = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed) obj; if (hasLtpc() != other.hasLtpc()) return false; if (hasLtpc()) { if (!getLtpc() .equals(other.getLtpc())) return false; } if (hasMarketLevel() != other.hasMarketLevel()) return false; if (hasMarketLevel()) { if (!getMarketLevel() .equals(other.getMarketLevel())) return false; } if (hasOptionGreeks() != other.hasOptionGreeks()) return false; if (hasOptionGreeks()) { if (!getOptionGreeks() .equals(other.getOptionGreeks())) return false; } if (hasMarketOHLC() != other.hasMarketOHLC()) return false; if (hasMarketOHLC()) { if (!getMarketOHLC() .equals(other.getMarketOHLC())) return false; } if (hasEFeedDetails() != other.hasEFeedDetails()) return false; if (hasEFeedDetails()) { if (!getEFeedDetails() .equals(other.getEFeedDetails())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasLtpc()) { hash = (37 * hash) + LTPC_FIELD_NUMBER; hash = (53 * hash) + getLtpc().hashCode(); } if (hasMarketLevel()) { hash = (37 * hash) + MARKETLEVEL_FIELD_NUMBER; hash = (53 * hash) + getMarketLevel().hashCode(); } if (hasOptionGreeks()) { hash = (37 * hash) + OPTIONGREEKS_FIELD_NUMBER; hash = (53 * hash) + getOptionGreeks().hashCode(); } if (hasMarketOHLC()) { hash = (37 * hash) + MARKETOHLC_FIELD_NUMBER; hash = (53 * hash) + getMarketOHLC().hashCode(); } if (hasEFeedDetails()) { hash = (37 * hash) + EFEEDDETAILS_FIELD_NUMBER; hash = (53 * hash) + getEFeedDetails().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed) com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketFullFeed_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketFullFeed_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.Builder.class); } // Construct using com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (ltpcBuilder_ == null) { ltpc_ = null; } else { ltpc_ = null; ltpcBuilder_ = null; } if (marketLevelBuilder_ == null) { marketLevel_ = null; } else { marketLevel_ = null; marketLevelBuilder_ = null; } if (optionGreeksBuilder_ == null) { optionGreeks_ = null; } else { optionGreeks_ = null; optionGreeksBuilder_ = null; } if (marketOHLCBuilder_ == null) { marketOHLC_ = null; } else { marketOHLC_ = null; marketOHLCBuilder_ = null; } if (eFeedDetailsBuilder_ == null) { eFeedDetails_ = null; } else { eFeedDetails_ = null; eFeedDetailsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketFullFeed_descriptor; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed getDefaultInstanceForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.getDefaultInstance(); } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed build() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed buildPartial() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed result = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed(this); if (ltpcBuilder_ == null) { result.ltpc_ = ltpc_; } else { result.ltpc_ = ltpcBuilder_.build(); } if (marketLevelBuilder_ == null) { result.marketLevel_ = marketLevel_; } else { result.marketLevel_ = marketLevelBuilder_.build(); } if (optionGreeksBuilder_ == null) { result.optionGreeks_ = optionGreeks_; } else { result.optionGreeks_ = optionGreeksBuilder_.build(); } if (marketOHLCBuilder_ == null) { result.marketOHLC_ = marketOHLC_; } else { result.marketOHLC_ = marketOHLCBuilder_.build(); } if (eFeedDetailsBuilder_ == null) { result.eFeedDetails_ = eFeedDetails_; } else { result.eFeedDetails_ = eFeedDetailsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed) { return mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed other) { if (other == com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.getDefaultInstance()) return this; if (other.hasLtpc()) { mergeLtpc(other.getLtpc()); } if (other.hasMarketLevel()) { mergeMarketLevel(other.getMarketLevel()); } if (other.hasOptionGreeks()) { mergeOptionGreeks(other.getOptionGreeks()); } if (other.hasMarketOHLC()) { mergeMarketOHLC(other.getMarketOHLC()); } if (other.hasEFeedDetails()) { mergeEFeedDetails(other.getEFeedDetails()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC ltpc_; private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder> ltpcBuilder_; /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return Whether the ltpc field is set. */ public boolean hasLtpc() { return ltpcBuilder_ != null || ltpc_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return The ltpc. */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getLtpc() { if (ltpcBuilder_ == null) { return ltpc_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance() : ltpc_; } else { return ltpcBuilder_.getMessage(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public Builder setLtpc(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC value) { if (ltpcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ltpc_ = value; onChanged(); } else { ltpcBuilder_.setMessage(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public Builder setLtpc( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder builderForValue) { if (ltpcBuilder_ == null) { ltpc_ = builderForValue.build(); onChanged(); } else { ltpcBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public Builder mergeLtpc(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC value) { if (ltpcBuilder_ == null) { if (ltpc_ != null) { ltpc_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.newBuilder(ltpc_).mergeFrom(value).buildPartial(); } else { ltpc_ = value; } onChanged(); } else { ltpcBuilder_.mergeFrom(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public Builder clearLtpc() { if (ltpcBuilder_ == null) { ltpc_ = null; onChanged(); } else { ltpc_ = null; ltpcBuilder_ = null; } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder getLtpcBuilder() { onChanged(); return getLtpcFieldBuilder().getBuilder(); } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder getLtpcOrBuilder() { if (ltpcBuilder_ != null) { return ltpcBuilder_.getMessageOrBuilder(); } else { return ltpc_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance() : ltpc_; } } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder> getLtpcFieldBuilder() { if (ltpcBuilder_ == null) { ltpcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder>( getLtpc(), getParentForChildren(), isClean()); ltpc_ = null; } return ltpcBuilder_; } private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel marketLevel_; private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevelOrBuilder> marketLevelBuilder_; /** * .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2; * @return Whether the marketLevel field is set. */ public boolean hasMarketLevel() { return marketLevelBuilder_ != null || marketLevel_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2; * @return The marketLevel. */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel getMarketLevel() { if (marketLevelBuilder_ == null) { return marketLevel_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.getDefaultInstance() : marketLevel_; } else { return marketLevelBuilder_.getMessage(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2; */ public Builder setMarketLevel(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel value) { if (marketLevelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } marketLevel_ = value; onChanged(); } else { marketLevelBuilder_.setMessage(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2; */ public Builder setMarketLevel( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.Builder builderForValue) { if (marketLevelBuilder_ == null) { marketLevel_ = builderForValue.build(); onChanged(); } else { marketLevelBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2; */ public Builder mergeMarketLevel(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel value) { if (marketLevelBuilder_ == null) { if (marketLevel_ != null) { marketLevel_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.newBuilder(marketLevel_).mergeFrom(value).buildPartial(); } else { marketLevel_ = value; } onChanged(); } else { marketLevelBuilder_.mergeFrom(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2; */ public Builder clearMarketLevel() { if (marketLevelBuilder_ == null) { marketLevel_ = null; onChanged(); } else { marketLevel_ = null; marketLevelBuilder_ = null; } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.Builder getMarketLevelBuilder() { onChanged(); return getMarketLevelFieldBuilder().getBuilder(); } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevelOrBuilder getMarketLevelOrBuilder() { if (marketLevelBuilder_ != null) { return marketLevelBuilder_.getMessageOrBuilder(); } else { return marketLevel_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.getDefaultInstance() : marketLevel_; } } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevelOrBuilder> getMarketLevelFieldBuilder() { if (marketLevelBuilder_ == null) { marketLevelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevelOrBuilder>( getMarketLevel(), getParentForChildren(), isClean()); marketLevel_ = null; } return marketLevelBuilder_; } private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks optionGreeks_; private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder> optionGreeksBuilder_; /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; * @return Whether the optionGreeks field is set. */ public boolean hasOptionGreeks() { return optionGreeksBuilder_ != null || optionGreeks_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; * @return The optionGreeks. */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks getOptionGreeks() { if (optionGreeksBuilder_ == null) { return optionGreeks_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.getDefaultInstance() : optionGreeks_; } else { return optionGreeksBuilder_.getMessage(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; */ public Builder setOptionGreeks(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks value) { if (optionGreeksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionGreeks_ = value; onChanged(); } else { optionGreeksBuilder_.setMessage(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; */ public Builder setOptionGreeks( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder builderForValue) { if (optionGreeksBuilder_ == null) { optionGreeks_ = builderForValue.build(); onChanged(); } else { optionGreeksBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; */ public Builder mergeOptionGreeks(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks value) { if (optionGreeksBuilder_ == null) { if (optionGreeks_ != null) { optionGreeks_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.newBuilder(optionGreeks_).mergeFrom(value).buildPartial(); } else { optionGreeks_ = value; } onChanged(); } else { optionGreeksBuilder_.mergeFrom(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; */ public Builder clearOptionGreeks() { if (optionGreeksBuilder_ == null) { optionGreeks_ = null; onChanged(); } else { optionGreeks_ = null; optionGreeksBuilder_ = null; } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder getOptionGreeksBuilder() { onChanged(); return getOptionGreeksFieldBuilder().getBuilder(); } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder getOptionGreeksOrBuilder() { if (optionGreeksBuilder_ != null) { return optionGreeksBuilder_.getMessageOrBuilder(); } else { return optionGreeks_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.getDefaultInstance() : optionGreeks_; } } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder> getOptionGreeksFieldBuilder() { if (optionGreeksBuilder_ == null) { optionGreeksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder>( getOptionGreeks(), getParentForChildren(), isClean()); optionGreeks_ = null; } return optionGreeksBuilder_; } private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC marketOHLC_; private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder> marketOHLCBuilder_; /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4; * @return Whether the marketOHLC field is set. */ public boolean hasMarketOHLC() { return marketOHLCBuilder_ != null || marketOHLC_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4; * @return The marketOHLC. */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC getMarketOHLC() { if (marketOHLCBuilder_ == null) { return marketOHLC_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.getDefaultInstance() : marketOHLC_; } else { return marketOHLCBuilder_.getMessage(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4; */ public Builder setMarketOHLC(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC value) { if (marketOHLCBuilder_ == null) { if (value == null) { throw new NullPointerException(); } marketOHLC_ = value; onChanged(); } else { marketOHLCBuilder_.setMessage(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4; */ public Builder setMarketOHLC( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder builderForValue) { if (marketOHLCBuilder_ == null) { marketOHLC_ = builderForValue.build(); onChanged(); } else { marketOHLCBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4; */ public Builder mergeMarketOHLC(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC value) { if (marketOHLCBuilder_ == null) { if (marketOHLC_ != null) { marketOHLC_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.newBuilder(marketOHLC_).mergeFrom(value).buildPartial(); } else { marketOHLC_ = value; } onChanged(); } else { marketOHLCBuilder_.mergeFrom(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4; */ public Builder clearMarketOHLC() { if (marketOHLCBuilder_ == null) { marketOHLC_ = null; onChanged(); } else { marketOHLC_ = null; marketOHLCBuilder_ = null; } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder getMarketOHLCBuilder() { onChanged(); return getMarketOHLCFieldBuilder().getBuilder(); } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder getMarketOHLCOrBuilder() { if (marketOHLCBuilder_ != null) { return marketOHLCBuilder_.getMessageOrBuilder(); } else { return marketOHLC_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.getDefaultInstance() : marketOHLC_; } } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder> getMarketOHLCFieldBuilder() { if (marketOHLCBuilder_ == null) { marketOHLCBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder>( getMarketOHLC(), getParentForChildren(), isClean()); marketOHLC_ = null; } return marketOHLCBuilder_; } private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails eFeedDetails_; private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetailsOrBuilder> eFeedDetailsBuilder_; /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5; * @return Whether the eFeedDetails field is set. */ public boolean hasEFeedDetails() { return eFeedDetailsBuilder_ != null || eFeedDetails_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5; * @return The eFeedDetails. */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails getEFeedDetails() { if (eFeedDetailsBuilder_ == null) { return eFeedDetails_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.getDefaultInstance() : eFeedDetails_; } else { return eFeedDetailsBuilder_.getMessage(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5; */ public Builder setEFeedDetails(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails value) { if (eFeedDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } eFeedDetails_ = value; onChanged(); } else { eFeedDetailsBuilder_.setMessage(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5; */ public Builder setEFeedDetails( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder builderForValue) { if (eFeedDetailsBuilder_ == null) { eFeedDetails_ = builderForValue.build(); onChanged(); } else { eFeedDetailsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5; */ public Builder mergeEFeedDetails(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails value) { if (eFeedDetailsBuilder_ == null) { if (eFeedDetails_ != null) { eFeedDetails_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.newBuilder(eFeedDetails_).mergeFrom(value).buildPartial(); } else { eFeedDetails_ = value; } onChanged(); } else { eFeedDetailsBuilder_.mergeFrom(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5; */ public Builder clearEFeedDetails() { if (eFeedDetailsBuilder_ == null) { eFeedDetails_ = null; onChanged(); } else { eFeedDetails_ = null; eFeedDetailsBuilder_ = null; } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder getEFeedDetailsBuilder() { onChanged(); return getEFeedDetailsFieldBuilder().getBuilder(); } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetailsOrBuilder getEFeedDetailsOrBuilder() { if (eFeedDetailsBuilder_ != null) { return eFeedDetailsBuilder_.getMessageOrBuilder(); } else { return eFeedDetails_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.getDefaultInstance() : eFeedDetails_; } } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetailsOrBuilder> getEFeedDetailsFieldBuilder() { if (eFeedDetailsBuilder_ == null) { eFeedDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetailsOrBuilder>( getEFeedDetails(), getParentForChildren(), isClean()); eFeedDetails_ = null; } return eFeedDetailsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed) } // @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed) private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed(); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MarketFullFeed parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MarketFullFeed(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IndexFullFeedOrBuilder extends // @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed) com.google.protobuf.MessageOrBuilder { /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return Whether the ltpc field is set. */ boolean hasLtpc(); /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return The ltpc. */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getLtpc(); /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder getLtpcOrBuilder(); /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 2; * @return Whether the marketOHLC field is set. */ boolean hasMarketOHLC(); /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 2; * @return The marketOHLC. */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC getMarketOHLC(); /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 2; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder getMarketOHLCOrBuilder(); /** * double lastClose = 3; * @return The lastClose. */ double getLastClose(); /** *
     *yearly high
     * 
* * double yh = 4; * @return The yh. */ double getYh(); /** *
     *yearly low
     * 
* * double yl = 5; * @return The yl. */ double getYl(); } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed} */ public static final class IndexFullFeed extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed) IndexFullFeedOrBuilder { private static final long serialVersionUID = 0L; // Use IndexFullFeed.newBuilder() to construct. private IndexFullFeed(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IndexFullFeed() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IndexFullFeed(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IndexFullFeed( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder subBuilder = null; if (ltpc_ != null) { subBuilder = ltpc_.toBuilder(); } ltpc_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ltpc_); ltpc_ = subBuilder.buildPartial(); } break; } case 18: { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder subBuilder = null; if (marketOHLC_ != null) { subBuilder = marketOHLC_.toBuilder(); } marketOHLC_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(marketOHLC_); marketOHLC_ = subBuilder.buildPartial(); } break; } case 25: { lastClose_ = input.readDouble(); break; } case 33: { yh_ = input.readDouble(); break; } case 41: { yl_ = input.readDouble(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_IndexFullFeed_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_IndexFullFeed_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.Builder.class); } public static final int LTPC_FIELD_NUMBER = 1; private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC ltpc_; /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return Whether the ltpc field is set. */ @java.lang.Override public boolean hasLtpc() { return ltpc_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return The ltpc. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getLtpc() { return ltpc_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance() : ltpc_; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder getLtpcOrBuilder() { return getLtpc(); } public static final int MARKETOHLC_FIELD_NUMBER = 2; private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC marketOHLC_; /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 2; * @return Whether the marketOHLC field is set. */ @java.lang.Override public boolean hasMarketOHLC() { return marketOHLC_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 2; * @return The marketOHLC. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC getMarketOHLC() { return marketOHLC_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.getDefaultInstance() : marketOHLC_; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 2; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder getMarketOHLCOrBuilder() { return getMarketOHLC(); } public static final int LASTCLOSE_FIELD_NUMBER = 3; private double lastClose_; /** * double lastClose = 3; * @return The lastClose. */ @java.lang.Override public double getLastClose() { return lastClose_; } public static final int YH_FIELD_NUMBER = 4; private double yh_; /** *
     *yearly high
     * 
* * double yh = 4; * @return The yh. */ @java.lang.Override public double getYh() { return yh_; } public static final int YL_FIELD_NUMBER = 5; private double yl_; /** *
     *yearly low
     * 
* * double yl = 5; * @return The yl. */ @java.lang.Override public double getYl() { return yl_; } 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 (ltpc_ != null) { output.writeMessage(1, getLtpc()); } if (marketOHLC_ != null) { output.writeMessage(2, getMarketOHLC()); } if (lastClose_ != 0D) { output.writeDouble(3, lastClose_); } if (yh_ != 0D) { output.writeDouble(4, yh_); } if (yl_ != 0D) { output.writeDouble(5, yl_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (ltpc_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getLtpc()); } if (marketOHLC_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMarketOHLC()); } if (lastClose_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, lastClose_); } if (yh_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, yh_); } if (yl_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, yl_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed)) { return super.equals(obj); } com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed other = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed) obj; if (hasLtpc() != other.hasLtpc()) return false; if (hasLtpc()) { if (!getLtpc() .equals(other.getLtpc())) return false; } if (hasMarketOHLC() != other.hasMarketOHLC()) return false; if (hasMarketOHLC()) { if (!getMarketOHLC() .equals(other.getMarketOHLC())) return false; } if (java.lang.Double.doubleToLongBits(getLastClose()) != java.lang.Double.doubleToLongBits( other.getLastClose())) return false; if (java.lang.Double.doubleToLongBits(getYh()) != java.lang.Double.doubleToLongBits( other.getYh())) return false; if (java.lang.Double.doubleToLongBits(getYl()) != java.lang.Double.doubleToLongBits( other.getYl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasLtpc()) { hash = (37 * hash) + LTPC_FIELD_NUMBER; hash = (53 * hash) + getLtpc().hashCode(); } if (hasMarketOHLC()) { hash = (37 * hash) + MARKETOHLC_FIELD_NUMBER; hash = (53 * hash) + getMarketOHLC().hashCode(); } hash = (37 * hash) + LASTCLOSE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getLastClose())); hash = (37 * hash) + YH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getYh())); hash = (37 * hash) + YL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getYl())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed) com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_IndexFullFeed_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_IndexFullFeed_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.Builder.class); } // Construct using com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (ltpcBuilder_ == null) { ltpc_ = null; } else { ltpc_ = null; ltpcBuilder_ = null; } if (marketOHLCBuilder_ == null) { marketOHLC_ = null; } else { marketOHLC_ = null; marketOHLCBuilder_ = null; } lastClose_ = 0D; yh_ = 0D; yl_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_IndexFullFeed_descriptor; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed getDefaultInstanceForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.getDefaultInstance(); } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed build() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed buildPartial() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed result = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed(this); if (ltpcBuilder_ == null) { result.ltpc_ = ltpc_; } else { result.ltpc_ = ltpcBuilder_.build(); } if (marketOHLCBuilder_ == null) { result.marketOHLC_ = marketOHLC_; } else { result.marketOHLC_ = marketOHLCBuilder_.build(); } result.lastClose_ = lastClose_; result.yh_ = yh_; result.yl_ = yl_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed) { return mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed other) { if (other == com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.getDefaultInstance()) return this; if (other.hasLtpc()) { mergeLtpc(other.getLtpc()); } if (other.hasMarketOHLC()) { mergeMarketOHLC(other.getMarketOHLC()); } if (other.getLastClose() != 0D) { setLastClose(other.getLastClose()); } if (other.getYh() != 0D) { setYh(other.getYh()); } if (other.getYl() != 0D) { setYl(other.getYl()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC ltpc_; private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder> ltpcBuilder_; /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return Whether the ltpc field is set. */ public boolean hasLtpc() { return ltpcBuilder_ != null || ltpc_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return The ltpc. */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getLtpc() { if (ltpcBuilder_ == null) { return ltpc_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance() : ltpc_; } else { return ltpcBuilder_.getMessage(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public Builder setLtpc(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC value) { if (ltpcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ltpc_ = value; onChanged(); } else { ltpcBuilder_.setMessage(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public Builder setLtpc( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder builderForValue) { if (ltpcBuilder_ == null) { ltpc_ = builderForValue.build(); onChanged(); } else { ltpcBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public Builder mergeLtpc(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC value) { if (ltpcBuilder_ == null) { if (ltpc_ != null) { ltpc_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.newBuilder(ltpc_).mergeFrom(value).buildPartial(); } else { ltpc_ = value; } onChanged(); } else { ltpcBuilder_.mergeFrom(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public Builder clearLtpc() { if (ltpcBuilder_ == null) { ltpc_ = null; onChanged(); } else { ltpc_ = null; ltpcBuilder_ = null; } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder getLtpcBuilder() { onChanged(); return getLtpcFieldBuilder().getBuilder(); } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder getLtpcOrBuilder() { if (ltpcBuilder_ != null) { return ltpcBuilder_.getMessageOrBuilder(); } else { return ltpc_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance() : ltpc_; } } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder> getLtpcFieldBuilder() { if (ltpcBuilder_ == null) { ltpcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder>( getLtpc(), getParentForChildren(), isClean()); ltpc_ = null; } return ltpcBuilder_; } private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC marketOHLC_; private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder> marketOHLCBuilder_; /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 2; * @return Whether the marketOHLC field is set. */ public boolean hasMarketOHLC() { return marketOHLCBuilder_ != null || marketOHLC_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 2; * @return The marketOHLC. */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC getMarketOHLC() { if (marketOHLCBuilder_ == null) { return marketOHLC_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.getDefaultInstance() : marketOHLC_; } else { return marketOHLCBuilder_.getMessage(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 2; */ public Builder setMarketOHLC(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC value) { if (marketOHLCBuilder_ == null) { if (value == null) { throw new NullPointerException(); } marketOHLC_ = value; onChanged(); } else { marketOHLCBuilder_.setMessage(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 2; */ public Builder setMarketOHLC( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder builderForValue) { if (marketOHLCBuilder_ == null) { marketOHLC_ = builderForValue.build(); onChanged(); } else { marketOHLCBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 2; */ public Builder mergeMarketOHLC(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC value) { if (marketOHLCBuilder_ == null) { if (marketOHLC_ != null) { marketOHLC_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.newBuilder(marketOHLC_).mergeFrom(value).buildPartial(); } else { marketOHLC_ = value; } onChanged(); } else { marketOHLCBuilder_.mergeFrom(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 2; */ public Builder clearMarketOHLC() { if (marketOHLCBuilder_ == null) { marketOHLC_ = null; onChanged(); } else { marketOHLC_ = null; marketOHLCBuilder_ = null; } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 2; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder getMarketOHLCBuilder() { onChanged(); return getMarketOHLCFieldBuilder().getBuilder(); } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 2; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder getMarketOHLCOrBuilder() { if (marketOHLCBuilder_ != null) { return marketOHLCBuilder_.getMessageOrBuilder(); } else { return marketOHLC_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.getDefaultInstance() : marketOHLC_; } } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder> getMarketOHLCFieldBuilder() { if (marketOHLCBuilder_ == null) { marketOHLCBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder>( getMarketOHLC(), getParentForChildren(), isClean()); marketOHLC_ = null; } return marketOHLCBuilder_; } private double lastClose_ ; /** * double lastClose = 3; * @return The lastClose. */ @java.lang.Override public double getLastClose() { return lastClose_; } /** * double lastClose = 3; * @param value The lastClose to set. * @return This builder for chaining. */ public Builder setLastClose(double value) { lastClose_ = value; onChanged(); return this; } /** * double lastClose = 3; * @return This builder for chaining. */ public Builder clearLastClose() { lastClose_ = 0D; onChanged(); return this; } private double yh_ ; /** *
       *yearly high
       * 
* * double yh = 4; * @return The yh. */ @java.lang.Override public double getYh() { return yh_; } /** *
       *yearly high
       * 
* * double yh = 4; * @param value The yh to set. * @return This builder for chaining. */ public Builder setYh(double value) { yh_ = value; onChanged(); return this; } /** *
       *yearly high
       * 
* * double yh = 4; * @return This builder for chaining. */ public Builder clearYh() { yh_ = 0D; onChanged(); return this; } private double yl_ ; /** *
       *yearly low
       * 
* * double yl = 5; * @return The yl. */ @java.lang.Override public double getYl() { return yl_; } /** *
       *yearly low
       * 
* * double yl = 5; * @param value The yl to set. * @return This builder for chaining. */ public Builder setYl(double value) { yl_ = value; onChanged(); return this; } /** *
       *yearly low
       * 
* * double yl = 5; * @return This builder for chaining. */ public Builder clearYl() { yl_ = 0D; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed) } // @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed) private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed(); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IndexFullFeed parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IndexFullFeed(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FullFeedOrBuilder extends // @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.FullFeed) com.google.protobuf.MessageOrBuilder { /** * .com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed marketFF = 1; * @return Whether the marketFF field is set. */ boolean hasMarketFF(); /** * .com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed marketFF = 1; * @return The marketFF. */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed getMarketFF(); /** * .com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed marketFF = 1; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeedOrBuilder getMarketFFOrBuilder(); /** * .com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed indexFF = 2; * @return Whether the indexFF field is set. */ boolean hasIndexFF(); /** * .com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed indexFF = 2; * @return The indexFF. */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed getIndexFF(); /** * .com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed indexFF = 2; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeedOrBuilder getIndexFFOrBuilder(); public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.FullFeedUnionCase getFullFeedUnionCase(); } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.FullFeed} */ public static final class FullFeed extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.FullFeed) FullFeedOrBuilder { private static final long serialVersionUID = 0L; // Use FullFeed.newBuilder() to construct. private FullFeed(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FullFeed() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FullFeed(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FullFeed( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.Builder subBuilder = null; if (fullFeedUnionCase_ == 1) { subBuilder = ((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed) fullFeedUnion_).toBuilder(); } fullFeedUnion_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed) fullFeedUnion_); fullFeedUnion_ = subBuilder.buildPartial(); } fullFeedUnionCase_ = 1; break; } case 18: { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.Builder subBuilder = null; if (fullFeedUnionCase_ == 2) { subBuilder = ((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed) fullFeedUnion_).toBuilder(); } fullFeedUnion_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed) fullFeedUnion_); fullFeedUnion_ = subBuilder.buildPartial(); } fullFeedUnionCase_ = 2; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_FullFeed_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_FullFeed_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.Builder.class); } private int fullFeedUnionCase_ = 0; private java.lang.Object fullFeedUnion_; public enum FullFeedUnionCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MARKETFF(1), INDEXFF(2), FULLFEEDUNION_NOT_SET(0); private final int value; private FullFeedUnionCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FullFeedUnionCase valueOf(int value) { return forNumber(value); } public static FullFeedUnionCase forNumber(int value) { switch (value) { case 1: return MARKETFF; case 2: return INDEXFF; case 0: return FULLFEEDUNION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public FullFeedUnionCase getFullFeedUnionCase() { return FullFeedUnionCase.forNumber( fullFeedUnionCase_); } public static final int MARKETFF_FIELD_NUMBER = 1; /** * .com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed marketFF = 1; * @return Whether the marketFF field is set. */ @java.lang.Override public boolean hasMarketFF() { return fullFeedUnionCase_ == 1; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed marketFF = 1; * @return The marketFF. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed getMarketFF() { if (fullFeedUnionCase_ == 1) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed) fullFeedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.getDefaultInstance(); } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed marketFF = 1; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeedOrBuilder getMarketFFOrBuilder() { if (fullFeedUnionCase_ == 1) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed) fullFeedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.getDefaultInstance(); } public static final int INDEXFF_FIELD_NUMBER = 2; /** * .com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed indexFF = 2; * @return Whether the indexFF field is set. */ @java.lang.Override public boolean hasIndexFF() { return fullFeedUnionCase_ == 2; } /** * .com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed indexFF = 2; * @return The indexFF. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed getIndexFF() { if (fullFeedUnionCase_ == 2) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed) fullFeedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.getDefaultInstance(); } /** * .com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed indexFF = 2; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeedOrBuilder getIndexFFOrBuilder() { if (fullFeedUnionCase_ == 2) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed) fullFeedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (fullFeedUnionCase_ == 1) { output.writeMessage(1, (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed) fullFeedUnion_); } if (fullFeedUnionCase_ == 2) { output.writeMessage(2, (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed) fullFeedUnion_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (fullFeedUnionCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed) fullFeedUnion_); } if (fullFeedUnionCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed) fullFeedUnion_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed)) { return super.equals(obj); } com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed other = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed) obj; if (!getFullFeedUnionCase().equals(other.getFullFeedUnionCase())) return false; switch (fullFeedUnionCase_) { case 1: if (!getMarketFF() .equals(other.getMarketFF())) return false; break; case 2: if (!getIndexFF() .equals(other.getIndexFF())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (fullFeedUnionCase_) { case 1: hash = (37 * hash) + MARKETFF_FIELD_NUMBER; hash = (53 * hash) + getMarketFF().hashCode(); break; case 2: hash = (37 * hash) + INDEXFF_FIELD_NUMBER; hash = (53 * hash) + getIndexFF().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.FullFeed} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.upstox.marketdatafeeder.rpc.proto.FullFeed) com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_FullFeed_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_FullFeed_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.Builder.class); } // Construct using com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); fullFeedUnionCase_ = 0; fullFeedUnion_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_FullFeed_descriptor; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed getDefaultInstanceForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.getDefaultInstance(); } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed build() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed buildPartial() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed result = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed(this); if (fullFeedUnionCase_ == 1) { if (marketFFBuilder_ == null) { result.fullFeedUnion_ = fullFeedUnion_; } else { result.fullFeedUnion_ = marketFFBuilder_.build(); } } if (fullFeedUnionCase_ == 2) { if (indexFFBuilder_ == null) { result.fullFeedUnion_ = fullFeedUnion_; } else { result.fullFeedUnion_ = indexFFBuilder_.build(); } } result.fullFeedUnionCase_ = fullFeedUnionCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed) { return mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed other) { if (other == com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.getDefaultInstance()) return this; switch (other.getFullFeedUnionCase()) { case MARKETFF: { mergeMarketFF(other.getMarketFF()); break; } case INDEXFF: { mergeIndexFF(other.getIndexFF()); break; } case FULLFEEDUNION_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int fullFeedUnionCase_ = 0; private java.lang.Object fullFeedUnion_; public FullFeedUnionCase getFullFeedUnionCase() { return FullFeedUnionCase.forNumber( fullFeedUnionCase_); } public Builder clearFullFeedUnion() { fullFeedUnionCase_ = 0; fullFeedUnion_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeedOrBuilder> marketFFBuilder_; /** * .com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed marketFF = 1; * @return Whether the marketFF field is set. */ @java.lang.Override public boolean hasMarketFF() { return fullFeedUnionCase_ == 1; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed marketFF = 1; * @return The marketFF. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed getMarketFF() { if (marketFFBuilder_ == null) { if (fullFeedUnionCase_ == 1) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed) fullFeedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.getDefaultInstance(); } else { if (fullFeedUnionCase_ == 1) { return marketFFBuilder_.getMessage(); } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.getDefaultInstance(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed marketFF = 1; */ public Builder setMarketFF(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed value) { if (marketFFBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fullFeedUnion_ = value; onChanged(); } else { marketFFBuilder_.setMessage(value); } fullFeedUnionCase_ = 1; return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed marketFF = 1; */ public Builder setMarketFF( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.Builder builderForValue) { if (marketFFBuilder_ == null) { fullFeedUnion_ = builderForValue.build(); onChanged(); } else { marketFFBuilder_.setMessage(builderForValue.build()); } fullFeedUnionCase_ = 1; return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed marketFF = 1; */ public Builder mergeMarketFF(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed value) { if (marketFFBuilder_ == null) { if (fullFeedUnionCase_ == 1 && fullFeedUnion_ != com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.getDefaultInstance()) { fullFeedUnion_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.newBuilder((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed) fullFeedUnion_) .mergeFrom(value).buildPartial(); } else { fullFeedUnion_ = value; } onChanged(); } else { if (fullFeedUnionCase_ == 1) { marketFFBuilder_.mergeFrom(value); } marketFFBuilder_.setMessage(value); } fullFeedUnionCase_ = 1; return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed marketFF = 1; */ public Builder clearMarketFF() { if (marketFFBuilder_ == null) { if (fullFeedUnionCase_ == 1) { fullFeedUnionCase_ = 0; fullFeedUnion_ = null; onChanged(); } } else { if (fullFeedUnionCase_ == 1) { fullFeedUnionCase_ = 0; fullFeedUnion_ = null; } marketFFBuilder_.clear(); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed marketFF = 1; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.Builder getMarketFFBuilder() { return getMarketFFFieldBuilder().getBuilder(); } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed marketFF = 1; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeedOrBuilder getMarketFFOrBuilder() { if ((fullFeedUnionCase_ == 1) && (marketFFBuilder_ != null)) { return marketFFBuilder_.getMessageOrBuilder(); } else { if (fullFeedUnionCase_ == 1) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed) fullFeedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.getDefaultInstance(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed marketFF = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeedOrBuilder> getMarketFFFieldBuilder() { if (marketFFBuilder_ == null) { if (!(fullFeedUnionCase_ == 1)) { fullFeedUnion_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.getDefaultInstance(); } marketFFBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeedOrBuilder>( (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed) fullFeedUnion_, getParentForChildren(), isClean()); fullFeedUnion_ = null; } fullFeedUnionCase_ = 1; onChanged();; return marketFFBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeedOrBuilder> indexFFBuilder_; /** * .com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed indexFF = 2; * @return Whether the indexFF field is set. */ @java.lang.Override public boolean hasIndexFF() { return fullFeedUnionCase_ == 2; } /** * .com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed indexFF = 2; * @return The indexFF. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed getIndexFF() { if (indexFFBuilder_ == null) { if (fullFeedUnionCase_ == 2) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed) fullFeedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.getDefaultInstance(); } else { if (fullFeedUnionCase_ == 2) { return indexFFBuilder_.getMessage(); } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.getDefaultInstance(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed indexFF = 2; */ public Builder setIndexFF(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed value) { if (indexFFBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fullFeedUnion_ = value; onChanged(); } else { indexFFBuilder_.setMessage(value); } fullFeedUnionCase_ = 2; return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed indexFF = 2; */ public Builder setIndexFF( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.Builder builderForValue) { if (indexFFBuilder_ == null) { fullFeedUnion_ = builderForValue.build(); onChanged(); } else { indexFFBuilder_.setMessage(builderForValue.build()); } fullFeedUnionCase_ = 2; return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed indexFF = 2; */ public Builder mergeIndexFF(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed value) { if (indexFFBuilder_ == null) { if (fullFeedUnionCase_ == 2 && fullFeedUnion_ != com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.getDefaultInstance()) { fullFeedUnion_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.newBuilder((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed) fullFeedUnion_) .mergeFrom(value).buildPartial(); } else { fullFeedUnion_ = value; } onChanged(); } else { if (fullFeedUnionCase_ == 2) { indexFFBuilder_.mergeFrom(value); } indexFFBuilder_.setMessage(value); } fullFeedUnionCase_ = 2; return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed indexFF = 2; */ public Builder clearIndexFF() { if (indexFFBuilder_ == null) { if (fullFeedUnionCase_ == 2) { fullFeedUnionCase_ = 0; fullFeedUnion_ = null; onChanged(); } } else { if (fullFeedUnionCase_ == 2) { fullFeedUnionCase_ = 0; fullFeedUnion_ = null; } indexFFBuilder_.clear(); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed indexFF = 2; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.Builder getIndexFFBuilder() { return getIndexFFFieldBuilder().getBuilder(); } /** * .com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed indexFF = 2; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeedOrBuilder getIndexFFOrBuilder() { if ((fullFeedUnionCase_ == 2) && (indexFFBuilder_ != null)) { return indexFFBuilder_.getMessageOrBuilder(); } else { if (fullFeedUnionCase_ == 2) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed) fullFeedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.getDefaultInstance(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed indexFF = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeedOrBuilder> getIndexFFFieldBuilder() { if (indexFFBuilder_ == null) { if (!(fullFeedUnionCase_ == 2)) { fullFeedUnion_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.getDefaultInstance(); } indexFFBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeedOrBuilder>( (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.IndexFullFeed) fullFeedUnion_, getParentForChildren(), isClean()); fullFeedUnion_ = null; } fullFeedUnionCase_ = 2; onChanged();; return indexFFBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.FullFeed) } // @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.FullFeed) private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed(); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FullFeed parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FullFeed(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OptionChainOrBuilder extends // @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.OptionChain) com.google.protobuf.MessageOrBuilder { /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return Whether the ltpc field is set. */ boolean hasLtpc(); /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return The ltpc. */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getLtpc(); /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder getLtpcOrBuilder(); /** * .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 2; * @return Whether the bidAskQuote field is set. */ boolean hasBidAskQuote(); /** * .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 2; * @return The bidAskQuote. */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote getBidAskQuote(); /** * .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 2; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.QuoteOrBuilder getBidAskQuoteOrBuilder(); /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; * @return Whether the optionGreeks field is set. */ boolean hasOptionGreeks(); /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; * @return The optionGreeks. */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks getOptionGreeks(); /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder getOptionGreeksOrBuilder(); /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 4; * @return Whether the eFeedDetails field is set. */ boolean hasEFeedDetails(); /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 4; * @return The eFeedDetails. */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails getEFeedDetails(); /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 4; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetailsOrBuilder getEFeedDetailsOrBuilder(); } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.OptionChain} */ public static final class OptionChain extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.OptionChain) OptionChainOrBuilder { private static final long serialVersionUID = 0L; // Use OptionChain.newBuilder() to construct. private OptionChain(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OptionChain() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OptionChain(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OptionChain( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder subBuilder = null; if (ltpc_ != null) { subBuilder = ltpc_.toBuilder(); } ltpc_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ltpc_); ltpc_ = subBuilder.buildPartial(); } break; } case 18: { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder subBuilder = null; if (bidAskQuote_ != null) { subBuilder = bidAskQuote_.toBuilder(); } bidAskQuote_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(bidAskQuote_); bidAskQuote_ = subBuilder.buildPartial(); } break; } case 26: { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder subBuilder = null; if (optionGreeks_ != null) { subBuilder = optionGreeks_.toBuilder(); } optionGreeks_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(optionGreeks_); optionGreeks_ = subBuilder.buildPartial(); } break; } case 34: { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder subBuilder = null; if (eFeedDetails_ != null) { subBuilder = eFeedDetails_.toBuilder(); } eFeedDetails_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(eFeedDetails_); eFeedDetails_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionChain_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionChain_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.Builder.class); } public static final int LTPC_FIELD_NUMBER = 1; private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC ltpc_; /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return Whether the ltpc field is set. */ @java.lang.Override public boolean hasLtpc() { return ltpc_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return The ltpc. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getLtpc() { return ltpc_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance() : ltpc_; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder getLtpcOrBuilder() { return getLtpc(); } public static final int BIDASKQUOTE_FIELD_NUMBER = 2; private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote bidAskQuote_; /** * .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 2; * @return Whether the bidAskQuote field is set. */ @java.lang.Override public boolean hasBidAskQuote() { return bidAskQuote_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 2; * @return The bidAskQuote. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote getBidAskQuote() { return bidAskQuote_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.getDefaultInstance() : bidAskQuote_; } /** * .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 2; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.QuoteOrBuilder getBidAskQuoteOrBuilder() { return getBidAskQuote(); } public static final int OPTIONGREEKS_FIELD_NUMBER = 3; private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks optionGreeks_; /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; * @return Whether the optionGreeks field is set. */ @java.lang.Override public boolean hasOptionGreeks() { return optionGreeks_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; * @return The optionGreeks. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks getOptionGreeks() { return optionGreeks_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.getDefaultInstance() : optionGreeks_; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder getOptionGreeksOrBuilder() { return getOptionGreeks(); } public static final int EFEEDDETAILS_FIELD_NUMBER = 4; private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails eFeedDetails_; /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 4; * @return Whether the eFeedDetails field is set. */ @java.lang.Override public boolean hasEFeedDetails() { return eFeedDetails_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 4; * @return The eFeedDetails. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails getEFeedDetails() { return eFeedDetails_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.getDefaultInstance() : eFeedDetails_; } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 4; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetailsOrBuilder getEFeedDetailsOrBuilder() { return getEFeedDetails(); } 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 (ltpc_ != null) { output.writeMessage(1, getLtpc()); } if (bidAskQuote_ != null) { output.writeMessage(2, getBidAskQuote()); } if (optionGreeks_ != null) { output.writeMessage(3, getOptionGreeks()); } if (eFeedDetails_ != null) { output.writeMessage(4, getEFeedDetails()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (ltpc_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getLtpc()); } if (bidAskQuote_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBidAskQuote()); } if (optionGreeks_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getOptionGreeks()); } if (eFeedDetails_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getEFeedDetails()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain)) { return super.equals(obj); } com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain other = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain) obj; if (hasLtpc() != other.hasLtpc()) return false; if (hasLtpc()) { if (!getLtpc() .equals(other.getLtpc())) return false; } if (hasBidAskQuote() != other.hasBidAskQuote()) return false; if (hasBidAskQuote()) { if (!getBidAskQuote() .equals(other.getBidAskQuote())) return false; } if (hasOptionGreeks() != other.hasOptionGreeks()) return false; if (hasOptionGreeks()) { if (!getOptionGreeks() .equals(other.getOptionGreeks())) return false; } if (hasEFeedDetails() != other.hasEFeedDetails()) return false; if (hasEFeedDetails()) { if (!getEFeedDetails() .equals(other.getEFeedDetails())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasLtpc()) { hash = (37 * hash) + LTPC_FIELD_NUMBER; hash = (53 * hash) + getLtpc().hashCode(); } if (hasBidAskQuote()) { hash = (37 * hash) + BIDASKQUOTE_FIELD_NUMBER; hash = (53 * hash) + getBidAskQuote().hashCode(); } if (hasOptionGreeks()) { hash = (37 * hash) + OPTIONGREEKS_FIELD_NUMBER; hash = (53 * hash) + getOptionGreeks().hashCode(); } if (hasEFeedDetails()) { hash = (37 * hash) + EFEEDDETAILS_FIELD_NUMBER; hash = (53 * hash) + getEFeedDetails().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.OptionChain} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.upstox.marketdatafeeder.rpc.proto.OptionChain) com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChainOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionChain_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionChain_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.Builder.class); } // Construct using com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (ltpcBuilder_ == null) { ltpc_ = null; } else { ltpc_ = null; ltpcBuilder_ = null; } if (bidAskQuoteBuilder_ == null) { bidAskQuote_ = null; } else { bidAskQuote_ = null; bidAskQuoteBuilder_ = null; } if (optionGreeksBuilder_ == null) { optionGreeks_ = null; } else { optionGreeks_ = null; optionGreeksBuilder_ = null; } if (eFeedDetailsBuilder_ == null) { eFeedDetails_ = null; } else { eFeedDetails_ = null; eFeedDetailsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionChain_descriptor; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain getDefaultInstanceForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.getDefaultInstance(); } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain build() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain buildPartial() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain result = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain(this); if (ltpcBuilder_ == null) { result.ltpc_ = ltpc_; } else { result.ltpc_ = ltpcBuilder_.build(); } if (bidAskQuoteBuilder_ == null) { result.bidAskQuote_ = bidAskQuote_; } else { result.bidAskQuote_ = bidAskQuoteBuilder_.build(); } if (optionGreeksBuilder_ == null) { result.optionGreeks_ = optionGreeks_; } else { result.optionGreeks_ = optionGreeksBuilder_.build(); } if (eFeedDetailsBuilder_ == null) { result.eFeedDetails_ = eFeedDetails_; } else { result.eFeedDetails_ = eFeedDetailsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain) { return mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain other) { if (other == com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.getDefaultInstance()) return this; if (other.hasLtpc()) { mergeLtpc(other.getLtpc()); } if (other.hasBidAskQuote()) { mergeBidAskQuote(other.getBidAskQuote()); } if (other.hasOptionGreeks()) { mergeOptionGreeks(other.getOptionGreeks()); } if (other.hasEFeedDetails()) { mergeEFeedDetails(other.getEFeedDetails()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC ltpc_; private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder> ltpcBuilder_; /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return Whether the ltpc field is set. */ public boolean hasLtpc() { return ltpcBuilder_ != null || ltpc_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return The ltpc. */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getLtpc() { if (ltpcBuilder_ == null) { return ltpc_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance() : ltpc_; } else { return ltpcBuilder_.getMessage(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public Builder setLtpc(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC value) { if (ltpcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ltpc_ = value; onChanged(); } else { ltpcBuilder_.setMessage(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public Builder setLtpc( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder builderForValue) { if (ltpcBuilder_ == null) { ltpc_ = builderForValue.build(); onChanged(); } else { ltpcBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public Builder mergeLtpc(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC value) { if (ltpcBuilder_ == null) { if (ltpc_ != null) { ltpc_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.newBuilder(ltpc_).mergeFrom(value).buildPartial(); } else { ltpc_ = value; } onChanged(); } else { ltpcBuilder_.mergeFrom(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public Builder clearLtpc() { if (ltpcBuilder_ == null) { ltpc_ = null; onChanged(); } else { ltpc_ = null; ltpcBuilder_ = null; } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder getLtpcBuilder() { onChanged(); return getLtpcFieldBuilder().getBuilder(); } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder getLtpcOrBuilder() { if (ltpcBuilder_ != null) { return ltpcBuilder_.getMessageOrBuilder(); } else { return ltpc_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance() : ltpc_; } } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder> getLtpcFieldBuilder() { if (ltpcBuilder_ == null) { ltpcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder>( getLtpc(), getParentForChildren(), isClean()); ltpc_ = null; } return ltpcBuilder_; } private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote bidAskQuote_; private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.QuoteOrBuilder> bidAskQuoteBuilder_; /** * .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 2; * @return Whether the bidAskQuote field is set. */ public boolean hasBidAskQuote() { return bidAskQuoteBuilder_ != null || bidAskQuote_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 2; * @return The bidAskQuote. */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote getBidAskQuote() { if (bidAskQuoteBuilder_ == null) { return bidAskQuote_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.getDefaultInstance() : bidAskQuote_; } else { return bidAskQuoteBuilder_.getMessage(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 2; */ public Builder setBidAskQuote(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote value) { if (bidAskQuoteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bidAskQuote_ = value; onChanged(); } else { bidAskQuoteBuilder_.setMessage(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 2; */ public Builder setBidAskQuote( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder builderForValue) { if (bidAskQuoteBuilder_ == null) { bidAskQuote_ = builderForValue.build(); onChanged(); } else { bidAskQuoteBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 2; */ public Builder mergeBidAskQuote(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote value) { if (bidAskQuoteBuilder_ == null) { if (bidAskQuote_ != null) { bidAskQuote_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.newBuilder(bidAskQuote_).mergeFrom(value).buildPartial(); } else { bidAskQuote_ = value; } onChanged(); } else { bidAskQuoteBuilder_.mergeFrom(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 2; */ public Builder clearBidAskQuote() { if (bidAskQuoteBuilder_ == null) { bidAskQuote_ = null; onChanged(); } else { bidAskQuote_ = null; bidAskQuoteBuilder_ = null; } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 2; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder getBidAskQuoteBuilder() { onChanged(); return getBidAskQuoteFieldBuilder().getBuilder(); } /** * .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 2; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.QuoteOrBuilder getBidAskQuoteOrBuilder() { if (bidAskQuoteBuilder_ != null) { return bidAskQuoteBuilder_.getMessageOrBuilder(); } else { return bidAskQuote_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.getDefaultInstance() : bidAskQuote_; } } /** * .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.QuoteOrBuilder> getBidAskQuoteFieldBuilder() { if (bidAskQuoteBuilder_ == null) { bidAskQuoteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.QuoteOrBuilder>( getBidAskQuote(), getParentForChildren(), isClean()); bidAskQuote_ = null; } return bidAskQuoteBuilder_; } private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks optionGreeks_; private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder> optionGreeksBuilder_; /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; * @return Whether the optionGreeks field is set. */ public boolean hasOptionGreeks() { return optionGreeksBuilder_ != null || optionGreeks_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; * @return The optionGreeks. */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks getOptionGreeks() { if (optionGreeksBuilder_ == null) { return optionGreeks_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.getDefaultInstance() : optionGreeks_; } else { return optionGreeksBuilder_.getMessage(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; */ public Builder setOptionGreeks(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks value) { if (optionGreeksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } optionGreeks_ = value; onChanged(); } else { optionGreeksBuilder_.setMessage(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; */ public Builder setOptionGreeks( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder builderForValue) { if (optionGreeksBuilder_ == null) { optionGreeks_ = builderForValue.build(); onChanged(); } else { optionGreeksBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; */ public Builder mergeOptionGreeks(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks value) { if (optionGreeksBuilder_ == null) { if (optionGreeks_ != null) { optionGreeks_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.newBuilder(optionGreeks_).mergeFrom(value).buildPartial(); } else { optionGreeks_ = value; } onChanged(); } else { optionGreeksBuilder_.mergeFrom(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; */ public Builder clearOptionGreeks() { if (optionGreeksBuilder_ == null) { optionGreeks_ = null; onChanged(); } else { optionGreeks_ = null; optionGreeksBuilder_ = null; } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder getOptionGreeksBuilder() { onChanged(); return getOptionGreeksFieldBuilder().getBuilder(); } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder getOptionGreeksOrBuilder() { if (optionGreeksBuilder_ != null) { return optionGreeksBuilder_.getMessageOrBuilder(); } else { return optionGreeks_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.getDefaultInstance() : optionGreeks_; } } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder> getOptionGreeksFieldBuilder() { if (optionGreeksBuilder_ == null) { optionGreeksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder>( getOptionGreeks(), getParentForChildren(), isClean()); optionGreeks_ = null; } return optionGreeksBuilder_; } private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails eFeedDetails_; private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetailsOrBuilder> eFeedDetailsBuilder_; /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 4; * @return Whether the eFeedDetails field is set. */ public boolean hasEFeedDetails() { return eFeedDetailsBuilder_ != null || eFeedDetails_ != null; } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 4; * @return The eFeedDetails. */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails getEFeedDetails() { if (eFeedDetailsBuilder_ == null) { return eFeedDetails_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.getDefaultInstance() : eFeedDetails_; } else { return eFeedDetailsBuilder_.getMessage(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 4; */ public Builder setEFeedDetails(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails value) { if (eFeedDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } eFeedDetails_ = value; onChanged(); } else { eFeedDetailsBuilder_.setMessage(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 4; */ public Builder setEFeedDetails( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder builderForValue) { if (eFeedDetailsBuilder_ == null) { eFeedDetails_ = builderForValue.build(); onChanged(); } else { eFeedDetailsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 4; */ public Builder mergeEFeedDetails(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails value) { if (eFeedDetailsBuilder_ == null) { if (eFeedDetails_ != null) { eFeedDetails_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.newBuilder(eFeedDetails_).mergeFrom(value).buildPartial(); } else { eFeedDetails_ = value; } onChanged(); } else { eFeedDetailsBuilder_.mergeFrom(value); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 4; */ public Builder clearEFeedDetails() { if (eFeedDetailsBuilder_ == null) { eFeedDetails_ = null; onChanged(); } else { eFeedDetails_ = null; eFeedDetailsBuilder_ = null; } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 4; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder getEFeedDetailsBuilder() { onChanged(); return getEFeedDetailsFieldBuilder().getBuilder(); } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 4; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetailsOrBuilder getEFeedDetailsOrBuilder() { if (eFeedDetailsBuilder_ != null) { return eFeedDetailsBuilder_.getMessageOrBuilder(); } else { return eFeedDetails_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.getDefaultInstance() : eFeedDetails_; } } /** * .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetailsOrBuilder> getEFeedDetailsFieldBuilder() { if (eFeedDetailsBuilder_ == null) { eFeedDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetailsOrBuilder>( getEFeedDetails(), getParentForChildren(), isClean()); eFeedDetails_ = null; } return eFeedDetailsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.OptionChain) } // @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.OptionChain) private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain(); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OptionChain parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OptionChain(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FeedOrBuilder extends // @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.Feed) com.google.protobuf.MessageOrBuilder { /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return Whether the ltpc field is set. */ boolean hasLtpc(); /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return The ltpc. */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getLtpc(); /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder getLtpcOrBuilder(); /** * .com.upstox.marketdatafeeder.rpc.proto.FullFeed ff = 2; * @return Whether the ff field is set. */ boolean hasFf(); /** * .com.upstox.marketdatafeeder.rpc.proto.FullFeed ff = 2; * @return The ff. */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed getFf(); /** * .com.upstox.marketdatafeeder.rpc.proto.FullFeed ff = 2; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeedOrBuilder getFfOrBuilder(); /** * .com.upstox.marketdatafeeder.rpc.proto.OptionChain oc = 3; * @return Whether the oc field is set. */ boolean hasOc(); /** * .com.upstox.marketdatafeeder.rpc.proto.OptionChain oc = 3; * @return The oc. */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain getOc(); /** * .com.upstox.marketdatafeeder.rpc.proto.OptionChain oc = 3; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChainOrBuilder getOcOrBuilder(); public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed.FeedUnionCase getFeedUnionCase(); } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.Feed} */ public static final class Feed extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.Feed) FeedOrBuilder { private static final long serialVersionUID = 0L; // Use Feed.newBuilder() to construct. private Feed(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Feed() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Feed(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Feed( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder subBuilder = null; if (feedUnionCase_ == 1) { subBuilder = ((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC) feedUnion_).toBuilder(); } feedUnion_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC) feedUnion_); feedUnion_ = subBuilder.buildPartial(); } feedUnionCase_ = 1; break; } case 18: { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.Builder subBuilder = null; if (feedUnionCase_ == 2) { subBuilder = ((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed) feedUnion_).toBuilder(); } feedUnion_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed) feedUnion_); feedUnion_ = subBuilder.buildPartial(); } feedUnionCase_ = 2; break; } case 26: { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.Builder subBuilder = null; if (feedUnionCase_ == 3) { subBuilder = ((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain) feedUnion_).toBuilder(); } feedUnion_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain) feedUnion_); feedUnion_ = subBuilder.buildPartial(); } feedUnionCase_ = 3; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_Feed_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_Feed_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed.Builder.class); } private int feedUnionCase_ = 0; private java.lang.Object feedUnion_; public enum FeedUnionCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { LTPC(1), FF(2), OC(3), FEEDUNION_NOT_SET(0); private final int value; private FeedUnionCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FeedUnionCase valueOf(int value) { return forNumber(value); } public static FeedUnionCase forNumber(int value) { switch (value) { case 1: return LTPC; case 2: return FF; case 3: return OC; case 0: return FEEDUNION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public FeedUnionCase getFeedUnionCase() { return FeedUnionCase.forNumber( feedUnionCase_); } public static final int LTPC_FIELD_NUMBER = 1; /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return Whether the ltpc field is set. */ @java.lang.Override public boolean hasLtpc() { return feedUnionCase_ == 1; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return The ltpc. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getLtpc() { if (feedUnionCase_ == 1) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC) feedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance(); } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder getLtpcOrBuilder() { if (feedUnionCase_ == 1) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC) feedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance(); } public static final int FF_FIELD_NUMBER = 2; /** * .com.upstox.marketdatafeeder.rpc.proto.FullFeed ff = 2; * @return Whether the ff field is set. */ @java.lang.Override public boolean hasFf() { return feedUnionCase_ == 2; } /** * .com.upstox.marketdatafeeder.rpc.proto.FullFeed ff = 2; * @return The ff. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed getFf() { if (feedUnionCase_ == 2) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed) feedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.getDefaultInstance(); } /** * .com.upstox.marketdatafeeder.rpc.proto.FullFeed ff = 2; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeedOrBuilder getFfOrBuilder() { if (feedUnionCase_ == 2) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed) feedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.getDefaultInstance(); } public static final int OC_FIELD_NUMBER = 3; /** * .com.upstox.marketdatafeeder.rpc.proto.OptionChain oc = 3; * @return Whether the oc field is set. */ @java.lang.Override public boolean hasOc() { return feedUnionCase_ == 3; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionChain oc = 3; * @return The oc. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain getOc() { if (feedUnionCase_ == 3) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain) feedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.getDefaultInstance(); } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionChain oc = 3; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChainOrBuilder getOcOrBuilder() { if (feedUnionCase_ == 3) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain) feedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (feedUnionCase_ == 1) { output.writeMessage(1, (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC) feedUnion_); } if (feedUnionCase_ == 2) { output.writeMessage(2, (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed) feedUnion_); } if (feedUnionCase_ == 3) { output.writeMessage(3, (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain) feedUnion_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (feedUnionCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC) feedUnion_); } if (feedUnionCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed) feedUnion_); } if (feedUnionCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain) feedUnion_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed)) { return super.equals(obj); } com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed other = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed) obj; if (!getFeedUnionCase().equals(other.getFeedUnionCase())) return false; switch (feedUnionCase_) { case 1: if (!getLtpc() .equals(other.getLtpc())) return false; break; case 2: if (!getFf() .equals(other.getFf())) return false; break; case 3: if (!getOc() .equals(other.getOc())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (feedUnionCase_) { case 1: hash = (37 * hash) + LTPC_FIELD_NUMBER; hash = (53 * hash) + getLtpc().hashCode(); break; case 2: hash = (37 * hash) + FF_FIELD_NUMBER; hash = (53 * hash) + getFf().hashCode(); break; case 3: hash = (37 * hash) + OC_FIELD_NUMBER; hash = (53 * hash) + getOc().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.Feed} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.upstox.marketdatafeeder.rpc.proto.Feed) com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_Feed_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_Feed_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed.Builder.class); } // Construct using com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); feedUnionCase_ = 0; feedUnion_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_Feed_descriptor; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed getDefaultInstanceForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed.getDefaultInstance(); } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed build() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed buildPartial() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed result = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed(this); if (feedUnionCase_ == 1) { if (ltpcBuilder_ == null) { result.feedUnion_ = feedUnion_; } else { result.feedUnion_ = ltpcBuilder_.build(); } } if (feedUnionCase_ == 2) { if (ffBuilder_ == null) { result.feedUnion_ = feedUnion_; } else { result.feedUnion_ = ffBuilder_.build(); } } if (feedUnionCase_ == 3) { if (ocBuilder_ == null) { result.feedUnion_ = feedUnion_; } else { result.feedUnion_ = ocBuilder_.build(); } } result.feedUnionCase_ = feedUnionCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed) { return mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed other) { if (other == com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed.getDefaultInstance()) return this; switch (other.getFeedUnionCase()) { case LTPC: { mergeLtpc(other.getLtpc()); break; } case FF: { mergeFf(other.getFf()); break; } case OC: { mergeOc(other.getOc()); break; } case FEEDUNION_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int feedUnionCase_ = 0; private java.lang.Object feedUnion_; public FeedUnionCase getFeedUnionCase() { return FeedUnionCase.forNumber( feedUnionCase_); } public Builder clearFeedUnion() { feedUnionCase_ = 0; feedUnion_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder> ltpcBuilder_; /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return Whether the ltpc field is set. */ @java.lang.Override public boolean hasLtpc() { return feedUnionCase_ == 1; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; * @return The ltpc. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getLtpc() { if (ltpcBuilder_ == null) { if (feedUnionCase_ == 1) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC) feedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance(); } else { if (feedUnionCase_ == 1) { return ltpcBuilder_.getMessage(); } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public Builder setLtpc(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC value) { if (ltpcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } feedUnion_ = value; onChanged(); } else { ltpcBuilder_.setMessage(value); } feedUnionCase_ = 1; return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public Builder setLtpc( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder builderForValue) { if (ltpcBuilder_ == null) { feedUnion_ = builderForValue.build(); onChanged(); } else { ltpcBuilder_.setMessage(builderForValue.build()); } feedUnionCase_ = 1; return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public Builder mergeLtpc(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC value) { if (ltpcBuilder_ == null) { if (feedUnionCase_ == 1 && feedUnion_ != com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance()) { feedUnion_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.newBuilder((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC) feedUnion_) .mergeFrom(value).buildPartial(); } else { feedUnion_ = value; } onChanged(); } else { if (feedUnionCase_ == 1) { ltpcBuilder_.mergeFrom(value); } ltpcBuilder_.setMessage(value); } feedUnionCase_ = 1; return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public Builder clearLtpc() { if (ltpcBuilder_ == null) { if (feedUnionCase_ == 1) { feedUnionCase_ = 0; feedUnion_ = null; onChanged(); } } else { if (feedUnionCase_ == 1) { feedUnionCase_ = 0; feedUnion_ = null; } ltpcBuilder_.clear(); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder getLtpcBuilder() { return getLtpcFieldBuilder().getBuilder(); } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder getLtpcOrBuilder() { if ((feedUnionCase_ == 1) && (ltpcBuilder_ != null)) { return ltpcBuilder_.getMessageOrBuilder(); } else { if (feedUnionCase_ == 1) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC) feedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder> getLtpcFieldBuilder() { if (ltpcBuilder_ == null) { if (!(feedUnionCase_ == 1)) { feedUnion_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance(); } ltpcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder>( (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC) feedUnion_, getParentForChildren(), isClean()); feedUnion_ = null; } feedUnionCase_ = 1; onChanged();; return ltpcBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeedOrBuilder> ffBuilder_; /** * .com.upstox.marketdatafeeder.rpc.proto.FullFeed ff = 2; * @return Whether the ff field is set. */ @java.lang.Override public boolean hasFf() { return feedUnionCase_ == 2; } /** * .com.upstox.marketdatafeeder.rpc.proto.FullFeed ff = 2; * @return The ff. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed getFf() { if (ffBuilder_ == null) { if (feedUnionCase_ == 2) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed) feedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.getDefaultInstance(); } else { if (feedUnionCase_ == 2) { return ffBuilder_.getMessage(); } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.getDefaultInstance(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.FullFeed ff = 2; */ public Builder setFf(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed value) { if (ffBuilder_ == null) { if (value == null) { throw new NullPointerException(); } feedUnion_ = value; onChanged(); } else { ffBuilder_.setMessage(value); } feedUnionCase_ = 2; return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.FullFeed ff = 2; */ public Builder setFf( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.Builder builderForValue) { if (ffBuilder_ == null) { feedUnion_ = builderForValue.build(); onChanged(); } else { ffBuilder_.setMessage(builderForValue.build()); } feedUnionCase_ = 2; return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.FullFeed ff = 2; */ public Builder mergeFf(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed value) { if (ffBuilder_ == null) { if (feedUnionCase_ == 2 && feedUnion_ != com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.getDefaultInstance()) { feedUnion_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.newBuilder((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed) feedUnion_) .mergeFrom(value).buildPartial(); } else { feedUnion_ = value; } onChanged(); } else { if (feedUnionCase_ == 2) { ffBuilder_.mergeFrom(value); } ffBuilder_.setMessage(value); } feedUnionCase_ = 2; return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.FullFeed ff = 2; */ public Builder clearFf() { if (ffBuilder_ == null) { if (feedUnionCase_ == 2) { feedUnionCase_ = 0; feedUnion_ = null; onChanged(); } } else { if (feedUnionCase_ == 2) { feedUnionCase_ = 0; feedUnion_ = null; } ffBuilder_.clear(); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.FullFeed ff = 2; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.Builder getFfBuilder() { return getFfFieldBuilder().getBuilder(); } /** * .com.upstox.marketdatafeeder.rpc.proto.FullFeed ff = 2; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeedOrBuilder getFfOrBuilder() { if ((feedUnionCase_ == 2) && (ffBuilder_ != null)) { return ffBuilder_.getMessageOrBuilder(); } else { if (feedUnionCase_ == 2) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed) feedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.getDefaultInstance(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.FullFeed ff = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeedOrBuilder> getFfFieldBuilder() { if (ffBuilder_ == null) { if (!(feedUnionCase_ == 2)) { feedUnion_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.getDefaultInstance(); } ffBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeedOrBuilder>( (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FullFeed) feedUnion_, getParentForChildren(), isClean()); feedUnion_ = null; } feedUnionCase_ = 2; onChanged();; return ffBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChainOrBuilder> ocBuilder_; /** * .com.upstox.marketdatafeeder.rpc.proto.OptionChain oc = 3; * @return Whether the oc field is set. */ @java.lang.Override public boolean hasOc() { return feedUnionCase_ == 3; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionChain oc = 3; * @return The oc. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain getOc() { if (ocBuilder_ == null) { if (feedUnionCase_ == 3) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain) feedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.getDefaultInstance(); } else { if (feedUnionCase_ == 3) { return ocBuilder_.getMessage(); } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.getDefaultInstance(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionChain oc = 3; */ public Builder setOc(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain value) { if (ocBuilder_ == null) { if (value == null) { throw new NullPointerException(); } feedUnion_ = value; onChanged(); } else { ocBuilder_.setMessage(value); } feedUnionCase_ = 3; return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionChain oc = 3; */ public Builder setOc( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.Builder builderForValue) { if (ocBuilder_ == null) { feedUnion_ = builderForValue.build(); onChanged(); } else { ocBuilder_.setMessage(builderForValue.build()); } feedUnionCase_ = 3; return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionChain oc = 3; */ public Builder mergeOc(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain value) { if (ocBuilder_ == null) { if (feedUnionCase_ == 3 && feedUnion_ != com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.getDefaultInstance()) { feedUnion_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.newBuilder((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain) feedUnion_) .mergeFrom(value).buildPartial(); } else { feedUnion_ = value; } onChanged(); } else { if (feedUnionCase_ == 3) { ocBuilder_.mergeFrom(value); } ocBuilder_.setMessage(value); } feedUnionCase_ = 3; return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionChain oc = 3; */ public Builder clearOc() { if (ocBuilder_ == null) { if (feedUnionCase_ == 3) { feedUnionCase_ = 0; feedUnion_ = null; onChanged(); } } else { if (feedUnionCase_ == 3) { feedUnionCase_ = 0; feedUnion_ = null; } ocBuilder_.clear(); } return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionChain oc = 3; */ public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.Builder getOcBuilder() { return getOcFieldBuilder().getBuilder(); } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionChain oc = 3; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChainOrBuilder getOcOrBuilder() { if ((feedUnionCase_ == 3) && (ocBuilder_ != null)) { return ocBuilder_.getMessageOrBuilder(); } else { if (feedUnionCase_ == 3) { return (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain) feedUnion_; } return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.getDefaultInstance(); } } /** * .com.upstox.marketdatafeeder.rpc.proto.OptionChain oc = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChainOrBuilder> getOcFieldBuilder() { if (ocBuilder_ == null) { if (!(feedUnionCase_ == 3)) { feedUnion_ = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.getDefaultInstance(); } ocBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChainOrBuilder>( (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionChain) feedUnion_, getParentForChildren(), isClean()); feedUnion_ = null; } feedUnionCase_ = 3; onChanged();; return ocBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.Feed) } // @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.Feed) private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed(); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Feed parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Feed(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FeedResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.FeedResponse) com.google.protobuf.MessageOrBuilder { /** * .com.upstox.marketdatafeeder.rpc.proto.Type type = 1; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * .com.upstox.marketdatafeeder.rpc.proto.Type type = 1; * @return The type. */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Type getType(); /** * map<string, .com.upstox.marketdatafeeder.rpc.proto.Feed> feeds = 2; */ int getFeedsCount(); /** * map<string, .com.upstox.marketdatafeeder.rpc.proto.Feed> feeds = 2; */ boolean containsFeeds( java.lang.String key); /** * Use {@link #getFeedsMap()} instead. */ @java.lang.Deprecated java.util.Map getFeeds(); /** * map<string, .com.upstox.marketdatafeeder.rpc.proto.Feed> feeds = 2; */ java.util.Map getFeedsMap(); /** * map<string, .com.upstox.marketdatafeeder.rpc.proto.Feed> feeds = 2; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed getFeedsOrDefault( java.lang.String key, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed defaultValue); /** * map<string, .com.upstox.marketdatafeeder.rpc.proto.Feed> feeds = 2; */ com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed getFeedsOrThrow( java.lang.String key); } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.FeedResponse} */ public static final class FeedResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.FeedResponse) FeedResponseOrBuilder { private static final long serialVersionUID = 0L; // Use FeedResponse.newBuilder() to construct. private FeedResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FeedResponse() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FeedResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FeedResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { feeds_ = com.google.protobuf.MapField.newMapField( FeedsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry feeds__ = input.readMessage( FeedsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); feeds_.getMutableMap().put( feeds__.getKey(), feeds__.getValue()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_FeedResponse_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetFeeds(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_FeedResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * .com.upstox.marketdatafeeder.rpc.proto.Type type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .com.upstox.marketdatafeeder.rpc.proto.Type type = 1; * @return The type. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Type getType() { @SuppressWarnings("deprecation") com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Type result = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Type.valueOf(type_); return result == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Type.UNRECOGNIZED : result; } public static final int FEEDS_FIELD_NUMBER = 2; private static final class FeedsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_FeedResponse_FeedsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed> feeds_; private com.google.protobuf.MapField internalGetFeeds() { if (feeds_ == null) { return com.google.protobuf.MapField.emptyMapField( FeedsDefaultEntryHolder.defaultEntry); } return feeds_; } public int getFeedsCount() { return internalGetFeeds().getMap().size(); } /** * map<string, .com.upstox.marketdatafeeder.rpc.proto.Feed> feeds = 2; */ @java.lang.Override public boolean containsFeeds( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetFeeds().getMap().containsKey(key); } /** * Use {@link #getFeedsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFeeds() { return getFeedsMap(); } /** * map<string, .com.upstox.marketdatafeeder.rpc.proto.Feed> feeds = 2; */ @java.lang.Override public java.util.Map getFeedsMap() { return internalGetFeeds().getMap(); } /** * map<string, .com.upstox.marketdatafeeder.rpc.proto.Feed> feeds = 2; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed getFeedsOrDefault( java.lang.String key, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFeeds().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .com.upstox.marketdatafeeder.rpc.proto.Feed> feeds = 2; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed getFeedsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFeeds().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Type.initial_feed.getNumber()) { output.writeEnum(1, type_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetFeeds(), FeedsDefaultEntryHolder.defaultEntry, 2); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Type.initial_feed.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } for (java.util.Map.Entry entry : internalGetFeeds().getMap().entrySet()) { com.google.protobuf.MapEntry feeds__ = FeedsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, feeds__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse)) { return super.equals(obj); } com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse other = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse) obj; if (type_ != other.type_) return false; if (!internalGetFeeds().equals( other.internalGetFeeds())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (!internalGetFeeds().getMap().isEmpty()) { hash = (37 * hash) + FEEDS_FIELD_NUMBER; hash = (53 * hash) + internalGetFeeds().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.FeedResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.upstox.marketdatafeeder.rpc.proto.FeedResponse) com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_FeedResponse_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetFeeds(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableFeeds(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_FeedResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse.Builder.class); } // Construct using com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); type_ = 0; internalGetMutableFeeds().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_FeedResponse_descriptor; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse getDefaultInstanceForType() { return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse.getDefaultInstance(); } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse build() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse buildPartial() { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse result = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse(this); int from_bitField0_ = bitField0_; result.type_ = type_; result.feeds_ = internalGetFeeds(); result.feeds_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse) { return mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse other) { if (other == com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } internalGetMutableFeeds().mergeFrom( other.internalGetFeeds()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** * .com.upstox.marketdatafeeder.rpc.proto.Type type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .com.upstox.marketdatafeeder.rpc.proto.Type type = 1; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.Type type = 1; * @return The type. */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Type getType() { @SuppressWarnings("deprecation") com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Type result = com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Type.valueOf(type_); return result == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Type.UNRECOGNIZED : result; } /** * .com.upstox.marketdatafeeder.rpc.proto.Type type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .com.upstox.marketdatafeeder.rpc.proto.Type type = 1; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed> feeds_; private com.google.protobuf.MapField internalGetFeeds() { if (feeds_ == null) { return com.google.protobuf.MapField.emptyMapField( FeedsDefaultEntryHolder.defaultEntry); } return feeds_; } private com.google.protobuf.MapField internalGetMutableFeeds() { onChanged();; if (feeds_ == null) { feeds_ = com.google.protobuf.MapField.newMapField( FeedsDefaultEntryHolder.defaultEntry); } if (!feeds_.isMutable()) { feeds_ = feeds_.copy(); } return feeds_; } public int getFeedsCount() { return internalGetFeeds().getMap().size(); } /** * map<string, .com.upstox.marketdatafeeder.rpc.proto.Feed> feeds = 2; */ @java.lang.Override public boolean containsFeeds( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetFeeds().getMap().containsKey(key); } /** * Use {@link #getFeedsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFeeds() { return getFeedsMap(); } /** * map<string, .com.upstox.marketdatafeeder.rpc.proto.Feed> feeds = 2; */ @java.lang.Override public java.util.Map getFeedsMap() { return internalGetFeeds().getMap(); } /** * map<string, .com.upstox.marketdatafeeder.rpc.proto.Feed> feeds = 2; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed getFeedsOrDefault( java.lang.String key, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFeeds().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .com.upstox.marketdatafeeder.rpc.proto.Feed> feeds = 2; */ @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed getFeedsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetFeeds().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearFeeds() { internalGetMutableFeeds().getMutableMap() .clear(); return this; } /** * map<string, .com.upstox.marketdatafeeder.rpc.proto.Feed> feeds = 2; */ public Builder removeFeeds( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableFeeds().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableFeeds() { return internalGetMutableFeeds().getMutableMap(); } /** * map<string, .com.upstox.marketdatafeeder.rpc.proto.Feed> feeds = 2; */ public Builder putFeeds( java.lang.String key, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Feed value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableFeeds().getMutableMap() .put(key, value); return this; } /** * map<string, .com.upstox.marketdatafeeder.rpc.proto.Feed> feeds = 2; */ public Builder putAllFeeds( java.util.Map values) { internalGetMutableFeeds().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.FeedResponse) } // @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.FeedResponse) private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse(); } public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FeedResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FeedResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.FeedResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_upstox_marketdatafeeder_rpc_proto_LTPC_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_upstox_marketdatafeeder_rpc_proto_LTPC_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketLevel_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketLevel_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketOHLC_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketOHLC_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_upstox_marketdatafeeder_rpc_proto_Quote_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_upstox_marketdatafeeder_rpc_proto_Quote_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionGreeks_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionGreeks_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_upstox_marketdatafeeder_rpc_proto_ExtendedFeedDetails_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_upstox_marketdatafeeder_rpc_proto_ExtendedFeedDetails_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_upstox_marketdatafeeder_rpc_proto_OHLC_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_upstox_marketdatafeeder_rpc_proto_OHLC_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketFullFeed_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketFullFeed_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_upstox_marketdatafeeder_rpc_proto_IndexFullFeed_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_upstox_marketdatafeeder_rpc_proto_IndexFullFeed_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_upstox_marketdatafeeder_rpc_proto_FullFeed_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_upstox_marketdatafeeder_rpc_proto_FullFeed_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionChain_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionChain_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_upstox_marketdatafeeder_rpc_proto_Feed_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_upstox_marketdatafeeder_rpc_proto_Feed_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_upstox_marketdatafeeder_rpc_proto_FeedResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_upstox_marketdatafeeder_rpc_proto_FeedResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_upstox_marketdatafeeder_rpc_proto_FeedResponse_FeedsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_upstox_marketdatafeeder_rpc_proto_FeedResponse_FeedsEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\024MarketDataFeed.proto\022%com.upstox.marke" + "tdatafeeder.rpc.proto\"9\n\004LTPC\022\013\n\003ltp\030\001 \001" + "(\001\022\013\n\003ltt\030\002 \001(\003\022\013\n\003ltq\030\003 \001(\003\022\n\n\002cp\030\004 \001(\001" + "\"P\n\013MarketLevel\022A\n\013bidAskQuote\030\001 \003(\0132,.c" + "om.upstox.marketdatafeeder.rpc.proto.Quo" + "te\"G\n\nMarketOHLC\0229\n\004ohlc\030\001 \003(\0132+.com.ups" + "tox.marketdatafeeder.rpc.proto.OHLC\"Q\n\005Q" + "uote\022\n\n\002bq\030\001 \001(\005\022\n\n\002bp\030\002 \001(\001\022\013\n\003bno\030\003 \001(" + "\005\022\n\n\002aq\030\004 \001(\005\022\n\n\002ap\030\005 \001(\001\022\013\n\003ano\030\006 \001(\005\"z" + "\n\014OptionGreeks\022\n\n\002op\030\001 \001(\001\022\n\n\002up\030\002 \001(\001\022\n" + "\n\002iv\030\003 \001(\001\022\r\n\005delta\030\004 \001(\001\022\r\n\005theta\030\005 \001(\001" + "\022\r\n\005gamma\030\006 \001(\001\022\014\n\004vega\030\007 \001(\001\022\013\n\003rho\030\010 \001" + "(\001\"\277\002\n\023ExtendedFeedDetails\022\013\n\003atp\030\001 \001(\001\022" + "\n\n\002cp\030\002 \001(\001\022\013\n\003vtt\030\003 \001(\003\022\n\n\002oi\030\004 \001(\001\022\020\n\010" + "changeOi\030\005 \001(\001\022\021\n\tlastClose\030\006 \001(\001\022\013\n\003tbq" + "\030\007 \001(\001\022\013\n\003tsq\030\010 \001(\001\022\r\n\005close\030\t \001(\001\022\n\n\002lc" + "\030\n \001(\001\022\n\n\002uc\030\013 \001(\001\022\n\n\002yh\030\014 \001(\001\022\n\n\002yl\030\r \001" + "(\001\022\n\n\002fp\030\016 \001(\001\022\n\n\002fv\030\017 \001(\005\022\016\n\006mbpBuy\030\020 \001" + "(\003\022\017\n\007mbpSell\030\021 \001(\003\022\n\n\002tv\030\022 \001(\003\022\014\n\004dhoi\030" + "\023 \001(\001\022\014\n\004dloi\030\024 \001(\001\022\n\n\002sp\030\025 \001(\001\022\013\n\003poi\030\026" + " \001(\001\"l\n\004OHLC\022\020\n\010interval\030\001 \001(\t\022\014\n\004open\030\002" + " \001(\001\022\014\n\004high\030\003 \001(\001\022\013\n\003low\030\004 \001(\001\022\r\n\005close" + "\030\005 \001(\001\022\016\n\006volume\030\006 \001(\005\022\n\n\002ts\030\007 \001(\003\"\370\002\n\016M" + "arketFullFeed\0229\n\004ltpc\030\001 \001(\0132+.com.upstox" + ".marketdatafeeder.rpc.proto.LTPC\022G\n\013mark" + "etLevel\030\002 \001(\01322.com.upstox.marketdatafee" + "der.rpc.proto.MarketLevel\022I\n\014optionGreek" + "s\030\003 \001(\01323.com.upstox.marketdatafeeder.rp" + "c.proto.OptionGreeks\022E\n\nmarketOHLC\030\004 \001(\013" + "21.com.upstox.marketdatafeeder.rpc.proto" + ".MarketOHLC\022P\n\014eFeedDetails\030\005 \001(\0132:.com." + "upstox.marketdatafeeder.rpc.proto.Extend" + "edFeedDetails\"\274\001\n\rIndexFullFeed\0229\n\004ltpc\030" + "\001 \001(\0132+.com.upstox.marketdatafeeder.rpc." + "proto.LTPC\022E\n\nmarketOHLC\030\002 \001(\01321.com.ups" + "tox.marketdatafeeder.rpc.proto.MarketOHL" + "C\022\021\n\tlastClose\030\003 \001(\001\022\n\n\002yh\030\004 \001(\001\022\n\n\002yl\030\005" + " \001(\001\"\257\001\n\010FullFeed\022I\n\010marketFF\030\001 \001(\01325.co" + "m.upstox.marketdatafeeder.rpc.proto.Mark" + "etFullFeedH\000\022G\n\007indexFF\030\002 \001(\01324.com.upst" + "ox.marketdatafeeder.rpc.proto.IndexFullF" + "eedH\000B\017\n\rFullFeedUnion\"\250\002\n\013OptionChain\0229" + "\n\004ltpc\030\001 \001(\0132+.com.upstox.marketdatafeed" + "er.rpc.proto.LTPC\022A\n\013bidAskQuote\030\002 \001(\0132," + ".com.upstox.marketdatafeeder.rpc.proto.Q" + "uote\022I\n\014optionGreeks\030\003 \001(\01323.com.upstox." + "marketdatafeeder.rpc.proto.OptionGreeks\022" + "P\n\014eFeedDetails\030\004 \001(\0132:.com.upstox.marke" + "tdatafeeder.rpc.proto.ExtendedFeedDetail" + "s\"\321\001\n\004Feed\022;\n\004ltpc\030\001 \001(\0132+.com.upstox.ma" + "rketdatafeeder.rpc.proto.LTPCH\000\022=\n\002ff\030\002 " + "\001(\0132/.com.upstox.marketdatafeeder.rpc.pr" + "oto.FullFeedH\000\022@\n\002oc\030\003 \001(\01322.com.upstox." + "marketdatafeeder.rpc.proto.OptionChainH\000" + "B\013\n\tFeedUnion\"\363\001\n\014FeedResponse\0229\n\004type\030\001" + " \001(\0162+.com.upstox.marketdatafeeder.rpc.p" + "roto.Type\022M\n\005feeds\030\002 \003(\0132>.com.upstox.ma" + "rketdatafeeder.rpc.proto.FeedResponse.Fe" + "edsEntry\032Y\n\nFeedsEntry\022\013\n\003key\030\001 \001(\t\022:\n\005v" + "alue\030\002 \001(\0132+.com.upstox.marketdatafeeder" + ".rpc.proto.Feed:\0028\001*\'\n\004Type\022\020\n\014initial_f" + "eed\020\000\022\r\n\tlive_feed\020\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_com_upstox_marketdatafeeder_rpc_proto_LTPC_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_upstox_marketdatafeeder_rpc_proto_LTPC_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_upstox_marketdatafeeder_rpc_proto_LTPC_descriptor, new java.lang.String[] { "Ltp", "Ltt", "Ltq", "Cp", }); internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketLevel_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketLevel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketLevel_descriptor, new java.lang.String[] { "BidAskQuote", }); internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketOHLC_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketOHLC_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketOHLC_descriptor, new java.lang.String[] { "Ohlc", }); internal_static_com_upstox_marketdatafeeder_rpc_proto_Quote_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_com_upstox_marketdatafeeder_rpc_proto_Quote_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_upstox_marketdatafeeder_rpc_proto_Quote_descriptor, new java.lang.String[] { "Bq", "Bp", "Bno", "Aq", "Ap", "Ano", }); internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionGreeks_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionGreeks_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionGreeks_descriptor, new java.lang.String[] { "Op", "Up", "Iv", "Delta", "Theta", "Gamma", "Vega", "Rho", }); internal_static_com_upstox_marketdatafeeder_rpc_proto_ExtendedFeedDetails_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_com_upstox_marketdatafeeder_rpc_proto_ExtendedFeedDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_upstox_marketdatafeeder_rpc_proto_ExtendedFeedDetails_descriptor, new java.lang.String[] { "Atp", "Cp", "Vtt", "Oi", "ChangeOi", "LastClose", "Tbq", "Tsq", "Close", "Lc", "Uc", "Yh", "Yl", "Fp", "Fv", "MbpBuy", "MbpSell", "Tv", "Dhoi", "Dloi", "Sp", "Poi", }); internal_static_com_upstox_marketdatafeeder_rpc_proto_OHLC_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_com_upstox_marketdatafeeder_rpc_proto_OHLC_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_upstox_marketdatafeeder_rpc_proto_OHLC_descriptor, new java.lang.String[] { "Interval", "Open", "High", "Low", "Close", "Volume", "Ts", }); internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketFullFeed_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketFullFeed_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketFullFeed_descriptor, new java.lang.String[] { "Ltpc", "MarketLevel", "OptionGreeks", "MarketOHLC", "EFeedDetails", }); internal_static_com_upstox_marketdatafeeder_rpc_proto_IndexFullFeed_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_com_upstox_marketdatafeeder_rpc_proto_IndexFullFeed_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_upstox_marketdatafeeder_rpc_proto_IndexFullFeed_descriptor, new java.lang.String[] { "Ltpc", "MarketOHLC", "LastClose", "Yh", "Yl", }); internal_static_com_upstox_marketdatafeeder_rpc_proto_FullFeed_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_com_upstox_marketdatafeeder_rpc_proto_FullFeed_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_upstox_marketdatafeeder_rpc_proto_FullFeed_descriptor, new java.lang.String[] { "MarketFF", "IndexFF", "FullFeedUnion", }); internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionChain_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionChain_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionChain_descriptor, new java.lang.String[] { "Ltpc", "BidAskQuote", "OptionGreeks", "EFeedDetails", }); internal_static_com_upstox_marketdatafeeder_rpc_proto_Feed_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_com_upstox_marketdatafeeder_rpc_proto_Feed_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_upstox_marketdatafeeder_rpc_proto_Feed_descriptor, new java.lang.String[] { "Ltpc", "Ff", "Oc", "FeedUnion", }); internal_static_com_upstox_marketdatafeeder_rpc_proto_FeedResponse_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_com_upstox_marketdatafeeder_rpc_proto_FeedResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_upstox_marketdatafeeder_rpc_proto_FeedResponse_descriptor, new java.lang.String[] { "Type", "Feeds", }); internal_static_com_upstox_marketdatafeeder_rpc_proto_FeedResponse_FeedsEntry_descriptor = internal_static_com_upstox_marketdatafeeder_rpc_proto_FeedResponse_descriptor.getNestedTypes().get(0); internal_static_com_upstox_marketdatafeeder_rpc_proto_FeedResponse_FeedsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_upstox_marketdatafeeder_rpc_proto_FeedResponse_FeedsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy