Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: MarketDataFeed.proto
// Protobuf Java Version: 3.25.2
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();
}
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_ = 0D;
/**
* 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_ = 0L;
/**
* 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_ = 0L;
/**
* 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_ = 0D;
/**
*
*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 (java.lang.Double.doubleToRawLongBits(ltp_) != 0) {
output.writeDouble(1, ltp_);
}
if (ltt_ != 0L) {
output.writeInt64(2, ltt_);
}
if (ltq_ != 0L) {
output.writeInt64(3, ltq_);
}
if (java.lang.Double.doubleToRawLongBits(cp_) != 0) {
output.writeDouble(4, cp_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (java.lang.Double.doubleToRawLongBits(ltp_) != 0) {
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 (java.lang.Double.doubleToRawLongBits(cp_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, cp_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof 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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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) + getUnknownFields().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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.ltp_ = ltp_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.ltt_ = ltt_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.ltq_ = ltq_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.cp_ = cp_;
}
}
@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.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 9: {
ltp_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 9
case 16: {
ltt_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
ltq_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 33: {
cp_ = input.readDouble();
bitField0_ |= 0x00000008;
break;
} // case 33
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* double ltp = 1;
* @return This builder for chaining.
*/
public Builder clearLtp() {
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int64 ltt = 2;
* @return This builder for chaining.
*/
public Builder clearLtt() {
bitField0_ = (bitField0_ & ~0x00000002);
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;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* int64 ltq = 3;
* @return This builder for chaining.
*/
public Builder clearLtq() {
bitField0_ = (bitField0_ & ~0x00000004);
ltq_ = 0L;
onChanged();
return this;
}
private double cp_ ;
/**
*
*
* double cp = 4;
* @param value The cp to set.
* @return This builder for chaining.
*/
public Builder setCp(double value) {
cp_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*close price
*
*
* double cp = 4;
* @return This builder for chaining.
*/
public Builder clearCp() {
bitField0_ = (bitField0_ & ~0x00000008);
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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public 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 extends com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.QuoteOrBuilder>
getBidAskQuoteOrBuilderList();
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1;
*/
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.QuoteOrBuilder getBidAskQuoteOrBuilder(
int index);
/**
* int64 lut = 2;
* @return The lut.
*/
long getLut();
}
/**
* 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();
}
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;
@SuppressWarnings("serial")
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 extends com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.QuoteOrBuilder>
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);
}
public static final int LUT_FIELD_NUMBER = 2;
private long lut_ = 0L;
/**
* int64 lut = 2;
* @return The lut.
*/
@java.lang.Override
public long getLut() {
return lut_;
}
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));
}
if (lut_ != 0L) {
output.writeInt64(2, lut_);
}
getUnknownFields().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));
}
if (lut_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, lut_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof 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 (getLut()
!= other.getLut()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getBidAskQuoteCount() > 0) {
hash = (37 * hash) + BIDASKQUOTE_FIELD_NUMBER;
hash = (53 * hash) + getBidAskQuoteList().hashCode();
}
hash = (37 * hash) + LUT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLut());
hash = (29 * hash) + getUnknownFields().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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (bidAskQuoteBuilder_ == null) {
bidAskQuote_ = java.util.Collections.emptyList();
} else {
bidAskQuote_ = null;
bidAskQuoteBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
lut_ = 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_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);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel result) {
if (bidAskQuoteBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
bidAskQuote_ = java.util.Collections.unmodifiableList(bidAskQuote_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.bidAskQuote_ = bidAskQuote_;
} else {
result.bidAskQuote_ = bidAskQuoteBuilder_.build();
}
}
private void buildPartial0(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.lut_ = lut_;
}
}
@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_);
}
}
}
if (other.getLut() != 0L) {
setLut(other.getLut());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote m =
input.readMessage(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.parser(),
extensionRegistry);
if (bidAskQuoteBuilder_ == null) {
ensureBidAskQuoteIsMutable();
bidAskQuote_.add(m);
} else {
bidAskQuoteBuilder_.addMessage(m);
}
break;
} // case 10
case 16: {
lut_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.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 extends com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote> 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 extends com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.QuoteOrBuilder>
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_;
}
private long lut_ ;
/**
* int64 lut = 2;
* @return The lut.
*/
@java.lang.Override
public long getLut() {
return lut_;
}
/**
* int64 lut = 2;
* @param value The lut to set.
* @return This builder for chaining.
*/
public Builder setLut(long value) {
lut_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int64 lut = 2;
* @return This builder for chaining.
*/
public Builder clearLut() {
bitField0_ = (bitField0_ & ~0x00000002);
lut_ = 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.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public 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 extends com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLCOrBuilder>
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();
}
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;
@SuppressWarnings("serial")
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 extends com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLCOrBuilder>
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));
}
getUnknownFields().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 += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof 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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getOhlcCount() > 0) {
hash = (37 * hash) + OHLC_FIELD_NUMBER;
hash = (53 * hash) + getOhlcList().hashCode();
}
hash = (29 * hash) + getUnknownFields().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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (ohlcBuilder_ == null) {
ohlc_ = java.util.Collections.emptyList();
} else {
ohlc_ = null;
ohlcBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
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);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC result) {
if (ohlcBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
ohlc_ = java.util.Collections.unmodifiableList(ohlc_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.ohlc_ = ohlc_;
} else {
result.ohlc_ = ohlcBuilder_.build();
}
}
private void buildPartial0(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC result) {
int from_bitField0_ = bitField0_;
}
@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.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC m =
input.readMessage(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.parser(),
extensionRegistry);
if (ohlcBuilder_ == null) {
ensureOhlcIsMutable();
ohlc_.add(m);
} else {
ohlcBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.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 extends com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC> 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 extends com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLCOrBuilder>
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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public 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();
/**
*
*bid quantity
*
*
* int64 bidQ = 7;
* @return The bidQ.
*/
long getBidQ();
/**
*
* ask quantity
*
*
* int64 askQ = 8;
* @return The askQ.
*/
long getAskQ();
}
/**
* 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();
}
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_ = 0;
/**
*
*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_ = 0D;
/**
*
*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_ = 0;
/**
*
*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_ = 0;
/**
*
* 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_ = 0D;
/**
*
* 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_ = 0;
/**
*
* ask number of orders
*
*
* int32 ano = 6;
* @return The ano.
*/
@java.lang.Override
public int getAno() {
return ano_;
}
public static final int BIDQ_FIELD_NUMBER = 7;
private long bidQ_ = 0L;
/**
*
*bid quantity
*
*
* int64 bidQ = 7;
* @return The bidQ.
*/
@java.lang.Override
public long getBidQ() {
return bidQ_;
}
public static final int ASKQ_FIELD_NUMBER = 8;
private long askQ_ = 0L;
/**
*
* ask quantity
*
*
* int64 askQ = 8;
* @return The askQ.
*/
@java.lang.Override
public long getAskQ() {
return askQ_;
}
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 (java.lang.Double.doubleToRawLongBits(bp_) != 0) {
output.writeDouble(2, bp_);
}
if (bno_ != 0) {
output.writeInt32(3, bno_);
}
if (aq_ != 0) {
output.writeInt32(4, aq_);
}
if (java.lang.Double.doubleToRawLongBits(ap_) != 0) {
output.writeDouble(5, ap_);
}
if (ano_ != 0) {
output.writeInt32(6, ano_);
}
if (bidQ_ != 0L) {
output.writeInt64(7, bidQ_);
}
if (askQ_ != 0L) {
output.writeInt64(8, askQ_);
}
getUnknownFields().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 (java.lang.Double.doubleToRawLongBits(bp_) != 0) {
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 (java.lang.Double.doubleToRawLongBits(ap_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, ap_);
}
if (ano_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, ano_);
}
if (bidQ_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, bidQ_);
}
if (askQ_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, askQ_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof 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 (getBidQ()
!= other.getBidQ()) return false;
if (getAskQ()
!= other.getAskQ()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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 = (37 * hash) + BIDQ_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBidQ());
hash = (37 * hash) + ASKQ_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAskQ());
hash = (29 * hash) + getUnknownFields().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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
bq_ = 0;
bp_ = 0D;
bno_ = 0;
aq_ = 0;
ap_ = 0D;
ano_ = 0;
bidQ_ = 0L;
askQ_ = 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_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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.bq_ = bq_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.bp_ = bp_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.bno_ = bno_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.aq_ = aq_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.ap_ = ap_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.ano_ = ano_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.bidQ_ = bidQ_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.askQ_ = askQ_;
}
}
@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());
}
if (other.getBidQ() != 0L) {
setBidQ(other.getBidQ());
}
if (other.getAskQ() != 0L) {
setAskQ(other.getAskQ());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
bq_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 17: {
bp_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 17
case 24: {
bno_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
aq_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 41: {
ap_ = input.readDouble();
bitField0_ |= 0x00000010;
break;
} // case 41
case 48: {
ano_ = input.readInt32();
bitField0_ |= 0x00000020;
break;
} // case 48
case 56: {
bidQ_ = input.readInt64();
bitField0_ |= 0x00000040;
break;
} // case 56
case 64: {
askQ_ = input.readInt64();
bitField0_ |= 0x00000080;
break;
} // case 64
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
* 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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*bid price
*
*
* double bp = 2;
* @return This builder for chaining.
*/
public Builder clearBp() {
bitField0_ = (bitField0_ & ~0x00000002);
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;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*bid number of orders
*
*
* int32 bno = 3;
* @return This builder for chaining.
*/
public Builder clearBno() {
bitField0_ = (bitField0_ & ~0x00000004);
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;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* ask quantity
*
*
* int32 aq = 4;
* @return This builder for chaining.
*/
public Builder clearAq() {
bitField0_ = (bitField0_ & ~0x00000008);
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;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* ask price
*
*
* double ap = 5;
* @return This builder for chaining.
*/
public Builder clearAp() {
bitField0_ = (bitField0_ & ~0x00000010);
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;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* ask number of orders
*
*
* int32 ano = 6;
* @return This builder for chaining.
*/
public Builder clearAno() {
bitField0_ = (bitField0_ & ~0x00000020);
ano_ = 0;
onChanged();
return this;
}
private long bidQ_ ;
/**
*
*bid quantity
*
*
* int64 bidQ = 7;
* @return The bidQ.
*/
@java.lang.Override
public long getBidQ() {
return bidQ_;
}
/**
*
*bid quantity
*
*
* int64 bidQ = 7;
* @param value The bidQ to set.
* @return This builder for chaining.
*/
public Builder setBidQ(long value) {
bidQ_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*bid quantity
*
*
* int64 bidQ = 7;
* @return This builder for chaining.
*/
public Builder clearBidQ() {
bitField0_ = (bitField0_ & ~0x00000040);
bidQ_ = 0L;
onChanged();
return this;
}
private long askQ_ ;
/**
*
* ask quantity
*
*
* int64 askQ = 8;
* @return The askQ.
*/
@java.lang.Override
public long getAskQ() {
return askQ_;
}
/**
*
* ask quantity
*
*
* int64 askQ = 8;
* @param value The askQ to set.
* @return This builder for chaining.
*/
public Builder setAskQ(long value) {
askQ_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* ask quantity
*
*
* int64 askQ = 8;
* @return This builder for chaining.
*/
public Builder clearAskQ() {
bitField0_ = (bitField0_ & ~0x00000080);
askQ_ = 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.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public 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();
}
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_ = 0D;
/**
*
* 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_ = 0D;
/**
*
*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_ = 0D;
/**
*
* 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_ = 0D;
/**
* 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_ = 0D;
/**
* 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_ = 0D;
/**
* 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_ = 0D;
/**
* 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_ = 0D;
/**
* 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 (java.lang.Double.doubleToRawLongBits(op_) != 0) {
output.writeDouble(1, op_);
}
if (java.lang.Double.doubleToRawLongBits(up_) != 0) {
output.writeDouble(2, up_);
}
if (java.lang.Double.doubleToRawLongBits(iv_) != 0) {
output.writeDouble(3, iv_);
}
if (java.lang.Double.doubleToRawLongBits(delta_) != 0) {
output.writeDouble(4, delta_);
}
if (java.lang.Double.doubleToRawLongBits(theta_) != 0) {
output.writeDouble(5, theta_);
}
if (java.lang.Double.doubleToRawLongBits(gamma_) != 0) {
output.writeDouble(6, gamma_);
}
if (java.lang.Double.doubleToRawLongBits(vega_) != 0) {
output.writeDouble(7, vega_);
}
if (java.lang.Double.doubleToRawLongBits(rho_) != 0) {
output.writeDouble(8, rho_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (java.lang.Double.doubleToRawLongBits(op_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, op_);
}
if (java.lang.Double.doubleToRawLongBits(up_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, up_);
}
if (java.lang.Double.doubleToRawLongBits(iv_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, iv_);
}
if (java.lang.Double.doubleToRawLongBits(delta_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, delta_);
}
if (java.lang.Double.doubleToRawLongBits(theta_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, theta_);
}
if (java.lang.Double.doubleToRawLongBits(gamma_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(6, gamma_);
}
if (java.lang.Double.doubleToRawLongBits(vega_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(7, vega_);
}
if (java.lang.Double.doubleToRawLongBits(rho_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(8, rho_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof 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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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) + getUnknownFields().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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.op_ = op_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.up_ = up_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.iv_ = iv_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.delta_ = delta_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.theta_ = theta_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.gamma_ = gamma_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.vega_ = vega_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.rho_ = rho_;
}
}
@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.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 9: {
op_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 9
case 17: {
up_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 17
case 25: {
iv_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 25
case 33: {
delta_ = input.readDouble();
bitField0_ |= 0x00000008;
break;
} // case 33
case 41: {
theta_ = input.readDouble();
bitField0_ |= 0x00000010;
break;
} // case 41
case 49: {
gamma_ = input.readDouble();
bitField0_ |= 0x00000020;
break;
} // case 49
case 57: {
vega_ = input.readDouble();
bitField0_ |= 0x00000040;
break;
} // case 57
case 65: {
rho_ = input.readDouble();
bitField0_ |= 0x00000080;
break;
} // case 65
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* option price
*
*
* double op = 1;
* @return This builder for chaining.
*/
public Builder clearOp() {
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*underlying price
*
*
* double up = 2;
* @return This builder for chaining.
*/
public Builder clearUp() {
bitField0_ = (bitField0_ & ~0x00000002);
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;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* implied volatility
*
*
* double iv = 3;
* @return This builder for chaining.
*/
public Builder clearIv() {
bitField0_ = (bitField0_ & ~0x00000004);
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;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* double delta = 4;
* @return This builder for chaining.
*/
public Builder clearDelta() {
bitField0_ = (bitField0_ & ~0x00000008);
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;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* double theta = 5;
* @return This builder for chaining.
*/
public Builder clearTheta() {
bitField0_ = (bitField0_ & ~0x00000010);
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;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* double gamma = 6;
* @return This builder for chaining.
*/
public Builder clearGamma() {
bitField0_ = (bitField0_ & ~0x00000020);
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;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* double vega = 7;
* @return This builder for chaining.
*/
public Builder clearVega() {
bitField0_ = (bitField0_ & ~0x00000040);
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;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* double rho = 8;
* @return This builder for chaining.
*/
public Builder clearRho() {
bitField0_ = (bitField0_ & ~0x00000080);
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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public 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();
/**
*
*
* 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();
}
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_ = 0D;
/**
*
*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_ = 0D;
/**
*
*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_ = 0L;
/**
*
*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_ = 0D;
/**
*
*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_ = 0D;
/**
*
*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_ = 0D;
/**
* 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_ = 0D;
/**
*
*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_ = 0D;
/**
*
*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_ = 0D;
/**
* 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_ = 0D;
/**
*
*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_ = 0D;
/**
*
*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_ = 0D;
/**
*
*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_ = 0D;
/**
*
*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_ = 0D;
/**
*
*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_ = 0;
/**
*
*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_ = 0L;
/**
*
*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_ = 0L;
/**
*
*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_ = 0L;
/**
*
*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_ = 0D;
/**
*
*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_ = 0D;
/**
*
*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_ = 0D;
/**
*
*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_ = 0D;
/**
*
*
* 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*avg traded price
*
*
* double atp = 1;
* @return This builder for chaining.
*/
public Builder clearAtp() {
bitField0_ = (bitField0_ & ~0x00000001);
atp_ = 0D;
onChanged();
return this;
}
private double cp_ ;
/**
*
*
* 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;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*open interest
*
*
* double oi = 4;
* @return This builder for chaining.
*/
public Builder clearOi() {
bitField0_ = (bitField0_ & ~0x00000008);
oi_ = 0D;
onChanged();
return this;
}
private double changeOi_ ;
/**
*
*
* double fp = 14;
* @param value The fp to set.
* @return This builder for chaining.
*/
public Builder setFp(double value) {
fp_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
*fill price
*
*
* double fp = 14;
* @return This builder for chaining.
*/
public Builder clearFp() {
bitField0_ = (bitField0_ & ~0x00002000);
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;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
*fill volume
*
*
* int32 fv = 15;
* @return This builder for chaining.
*/
public Builder clearFv() {
bitField0_ = (bitField0_ & ~0x00004000);
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;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
*mbp buy
*
*
* int64 mbpBuy = 16;
* @return This builder for chaining.
*/
public Builder clearMbpBuy() {
bitField0_ = (bitField0_ & ~0x00008000);
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;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
*mbp sell
*
*
* int64 mbpSell = 17;
* @return This builder for chaining.
*/
public Builder clearMbpSell() {
bitField0_ = (bitField0_ & ~0x00010000);
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;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
*traded volume
*
*
* int64 tv = 18;
* @return This builder for chaining.
*/
public Builder clearTv() {
bitField0_ = (bitField0_ & ~0x00020000);
tv_ = 0L;
onChanged();
return this;
}
private double dhoi_ ;
/**
*
*
* 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;
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
*previous open interest
*
*
* double poi = 22;
* @return This builder for chaining.
*/
public Builder clearPoi() {
bitField0_ = (bitField0_ & ~0x00200000);
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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public 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();
/**
* int64 vol = 9;
* @return The vol.
*/
long getVol();
}
/**
* 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();
}
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;
@SuppressWarnings("serial")
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_ = 0D;
/**
* 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_ = 0D;
/**
* 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_ = 0D;
/**
* 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_ = 0D;
/**
* 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_ = 0;
/**
* 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_ = 0L;
/**
* int64 ts = 7;
* @return The ts.
*/
@java.lang.Override
public long getTs() {
return ts_;
}
public static final int VOL_FIELD_NUMBER = 9;
private long vol_ = 0L;
/**
* int64 vol = 9;
* @return The vol.
*/
@java.lang.Override
public long getVol() {
return vol_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(interval_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, interval_);
}
if (java.lang.Double.doubleToRawLongBits(open_) != 0) {
output.writeDouble(2, open_);
}
if (java.lang.Double.doubleToRawLongBits(high_) != 0) {
output.writeDouble(3, high_);
}
if (java.lang.Double.doubleToRawLongBits(low_) != 0) {
output.writeDouble(4, low_);
}
if (java.lang.Double.doubleToRawLongBits(close_) != 0) {
output.writeDouble(5, close_);
}
if (volume_ != 0) {
output.writeInt32(6, volume_);
}
if (ts_ != 0L) {
output.writeInt64(7, ts_);
}
if (vol_ != 0L) {
output.writeInt64(9, vol_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(interval_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, interval_);
}
if (java.lang.Double.doubleToRawLongBits(open_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, open_);
}
if (java.lang.Double.doubleToRawLongBits(high_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, high_);
}
if (java.lang.Double.doubleToRawLongBits(low_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, low_);
}
if (java.lang.Double.doubleToRawLongBits(close_) != 0) {
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_);
}
if (vol_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, vol_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof 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 (getVol()
!= other.getVol()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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 = (37 * hash) + VOL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getVol());
hash = (29 * hash) + getUnknownFields().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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
interval_ = "";
open_ = 0D;
high_ = 0D;
low_ = 0D;
close_ = 0D;
volume_ = 0;
ts_ = 0L;
vol_ = 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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.interval_ = interval_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.open_ = open_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.high_ = high_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.low_ = low_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.close_ = close_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.volume_ = volume_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.ts_ = ts_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.vol_ = vol_;
}
}
@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_;
bitField0_ |= 0x00000001;
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());
}
if (other.getVol() != 0L) {
setVol(other.getVol());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
interval_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 17: {
open_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 17
case 25: {
high_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 25
case 33: {
low_ = input.readDouble();
bitField0_ |= 0x00000008;
break;
} // case 33
case 41: {
close_ = input.readDouble();
bitField0_ |= 0x00000010;
break;
} // case 41
case 48: {
volume_ = input.readInt32();
bitField0_ |= 0x00000020;
break;
} // case 48
case 56: {
ts_ = input.readInt64();
bitField0_ |= 0x00000040;
break;
} // case 56
case 72: {
vol_ = input.readInt64();
bitField0_ |= 0x00000080;
break;
} // case 72
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string interval = 1;
* @return This builder for chaining.
*/
public Builder clearInterval() {
interval_ = getDefaultInstance().getInterval();
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000001;
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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* double open = 2;
* @return This builder for chaining.
*/
public Builder clearOpen() {
bitField0_ = (bitField0_ & ~0x00000002);
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;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* double high = 3;
* @return This builder for chaining.
*/
public Builder clearHigh() {
bitField0_ = (bitField0_ & ~0x00000004);
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;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* double low = 4;
* @return This builder for chaining.
*/
public Builder clearLow() {
bitField0_ = (bitField0_ & ~0x00000008);
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;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* double close = 5;
* @return This builder for chaining.
*/
public Builder clearClose() {
bitField0_ = (bitField0_ & ~0x00000010);
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;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* int32 volume = 6;
* @return This builder for chaining.
*/
public Builder clearVolume() {
bitField0_ = (bitField0_ & ~0x00000020);
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;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* int64 ts = 7;
* @return This builder for chaining.
*/
public Builder clearTs() {
bitField0_ = (bitField0_ & ~0x00000040);
ts_ = 0L;
onChanged();
return this;
}
private long vol_ ;
/**
* int64 vol = 9;
* @return The vol.
*/
@java.lang.Override
public long getVol() {
return vol_;
}
/**
* int64 vol = 9;
* @param value The vol to set.
* @return This builder for chaining.
*/
public Builder setVol(long value) {
vol_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* int64 vol = 9;
* @return This builder for chaining.
*/
public Builder clearVol() {
bitField0_ = (bitField0_ & ~0x00000080);
vol_ = 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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public 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();
}
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);
}
private int bitField0_;
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 ((bitField0_ & 0x00000001) != 0);
}
/**
* .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 ltpc_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance() : ltpc_;
}
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 ((bitField0_ & 0x00000002) != 0);
}
/**
* .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 marketLevel_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.getDefaultInstance() : marketLevel_;
}
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 ((bitField0_ & 0x00000004) != 0);
}
/**
* .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 optionGreeks_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.getDefaultInstance() : optionGreeks_;
}
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 ((bitField0_ & 0x00000008) != 0);
}
/**
* .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 marketOHLC_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.getDefaultInstance() : marketOHLC_;
}
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 ((bitField0_ & 0x00000010) != 0);
}
/**
* .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 eFeedDetails_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.getDefaultInstance() : eFeedDetails_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getLtpc());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getMarketLevel());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getOptionGreeks());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getMarketOHLC());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getEFeedDetails());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLtpc());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMarketLevel());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getOptionGreeks());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getMarketOHLC());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getEFeedDetails());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof 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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
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) + getUnknownFields().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) {
getLtpcFieldBuilder();
getMarketLevelFieldBuilder();
getOptionGreeksFieldBuilder();
getMarketOHLCFieldBuilder();
getEFeedDetailsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
ltpc_ = null;
if (ltpcBuilder_ != null) {
ltpcBuilder_.dispose();
ltpcBuilder_ = null;
}
marketLevel_ = null;
if (marketLevelBuilder_ != null) {
marketLevelBuilder_.dispose();
marketLevelBuilder_ = null;
}
optionGreeks_ = null;
if (optionGreeksBuilder_ != null) {
optionGreeksBuilder_.dispose();
optionGreeksBuilder_ = null;
}
marketOHLC_ = null;
if (marketOHLCBuilder_ != null) {
marketOHLCBuilder_.dispose();
marketOHLCBuilder_ = null;
}
eFeedDetails_ = null;
if (eFeedDetailsBuilder_ != null) {
eFeedDetailsBuilder_.dispose();
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 (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.ltpc_ = ltpcBuilder_ == null
? ltpc_
: ltpcBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.marketLevel_ = marketLevelBuilder_ == null
? marketLevel_
: marketLevelBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.optionGreeks_ = optionGreeksBuilder_ == null
? optionGreeks_
: optionGreeksBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.marketOHLC_ = marketOHLCBuilder_ == null
? marketOHLC_
: marketOHLCBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.eFeedDetails_ = eFeedDetailsBuilder_ == null
? eFeedDetails_
: eFeedDetailsBuilder_.build();
to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@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.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getLtpcFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getMarketLevelFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getOptionGreeksFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getMarketOHLCFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getEFeedDetailsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private 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 ((bitField0_ & 0x00000001) != 0);
}
/**
* .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;
} else {
ltpcBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
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();
} else {
ltpcBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
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 (((bitField0_ & 0x00000001) != 0) &&
ltpc_ != null &&
ltpc_ != com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance()) {
getLtpcBuilder().mergeFrom(value);
} else {
ltpc_ = value;
}
} else {
ltpcBuilder_.mergeFrom(value);
}
if (ltpc_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
*/
public Builder clearLtpc() {
bitField0_ = (bitField0_ & ~0x00000001);
ltpc_ = null;
if (ltpcBuilder_ != null) {
ltpcBuilder_.dispose();
ltpcBuilder_ = null;
}
onChanged();
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder getLtpcBuilder() {
bitField0_ |= 0x00000001;
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 ((bitField0_ & 0x00000002) != 0);
}
/**
* .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;
} else {
marketLevelBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
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();
} else {
marketLevelBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
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 (((bitField0_ & 0x00000002) != 0) &&
marketLevel_ != null &&
marketLevel_ != com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.getDefaultInstance()) {
getMarketLevelBuilder().mergeFrom(value);
} else {
marketLevel_ = value;
}
} else {
marketLevelBuilder_.mergeFrom(value);
}
if (marketLevel_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2;
*/
public Builder clearMarketLevel() {
bitField0_ = (bitField0_ & ~0x00000002);
marketLevel_ = null;
if (marketLevelBuilder_ != null) {
marketLevelBuilder_.dispose();
marketLevelBuilder_ = null;
}
onChanged();
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2;
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.Builder getMarketLevelBuilder() {
bitField0_ |= 0x00000002;
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 ((bitField0_ & 0x00000004) != 0);
}
/**
* .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;
} else {
optionGreeksBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
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();
} else {
optionGreeksBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
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 (((bitField0_ & 0x00000004) != 0) &&
optionGreeks_ != null &&
optionGreeks_ != com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.getDefaultInstance()) {
getOptionGreeksBuilder().mergeFrom(value);
} else {
optionGreeks_ = value;
}
} else {
optionGreeksBuilder_.mergeFrom(value);
}
if (optionGreeks_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3;
*/
public Builder clearOptionGreeks() {
bitField0_ = (bitField0_ & ~0x00000004);
optionGreeks_ = null;
if (optionGreeksBuilder_ != null) {
optionGreeksBuilder_.dispose();
optionGreeksBuilder_ = null;
}
onChanged();
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3;
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder getOptionGreeksBuilder() {
bitField0_ |= 0x00000004;
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 ((bitField0_ & 0x00000008) != 0);
}
/**
* .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;
} else {
marketOHLCBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
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();
} else {
marketOHLCBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
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 (((bitField0_ & 0x00000008) != 0) &&
marketOHLC_ != null &&
marketOHLC_ != com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.getDefaultInstance()) {
getMarketOHLCBuilder().mergeFrom(value);
} else {
marketOHLC_ = value;
}
} else {
marketOHLCBuilder_.mergeFrom(value);
}
if (marketOHLC_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4;
*/
public Builder clearMarketOHLC() {
bitField0_ = (bitField0_ & ~0x00000008);
marketOHLC_ = null;
if (marketOHLCBuilder_ != null) {
marketOHLCBuilder_.dispose();
marketOHLCBuilder_ = null;
}
onChanged();
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4;
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder getMarketOHLCBuilder() {
bitField0_ |= 0x00000008;
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 ((bitField0_ & 0x00000010) != 0);
}
/**
* .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;
} else {
eFeedDetailsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
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();
} else {
eFeedDetailsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
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 (((bitField0_ & 0x00000010) != 0) &&
eFeedDetails_ != null &&
eFeedDetails_ != com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.getDefaultInstance()) {
getEFeedDetailsBuilder().mergeFrom(value);
} else {
eFeedDetails_ = value;
}
} else {
eFeedDetailsBuilder_.mergeFrom(value);
}
if (eFeedDetails_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5;
*/
public Builder clearEFeedDetails() {
bitField0_ = (bitField0_ & ~0x00000010);
eFeedDetails_ = null;
if (eFeedDetailsBuilder_ != null) {
eFeedDetailsBuilder_.dispose();
eFeedDetailsBuilder_ = null;
}
onChanged();
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5;
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder getEFeedDetailsBuilder() {
bitField0_ |= 0x00000010;
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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public 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();
/**
*