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
package com.upstox.marketdatafeeder.rpc.proto;
public final class MarketDataFeed {
private MarketDataFeed() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code com.upstox.marketdatafeeder.rpc.proto.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* initial_feed = 0;
*/
initial_feed(0),
/**
* live_feed = 1;
*/
live_feed(1),
UNRECOGNIZED(-1),
;
/**
* initial_feed = 0;
*/
public static final int initial_feed_VALUE = 0;
/**
* live_feed = 1;
*/
public static final int live_feed_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Type valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Type forNumber(int value) {
switch (value) {
case 0: return initial_feed;
case 1: return live_feed;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.upstox.marketdatafeeder.rpc.proto.Type)
}
public interface LTPCOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.LTPC)
com.google.protobuf.MessageOrBuilder {
/**
* double ltp = 1;
* @return The ltp.
*/
double getLtp();
/**
* int64 ltt = 2;
* @return The ltt.
*/
long getLtt();
/**
* int64 ltq = 3;
* @return The ltq.
*/
long getLtq();
/**
*
*close price
*
*
* double cp = 4;
* @return The cp.
*/
double getCp();
}
/**
* Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.LTPC}
*/
public static final class LTPC extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.LTPC)
LTPCOrBuilder {
private static final long serialVersionUID = 0L;
// Use LTPC.newBuilder() to construct.
private LTPC(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LTPC() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LTPC();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LTPC(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 9: {
ltp_ = input.readDouble();
break;
}
case 16: {
ltt_ = input.readInt64();
break;
}
case 24: {
ltq_ = input.readInt64();
break;
}
case 33: {
cp_ = input.readDouble();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_LTPC_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_LTPC_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder.class);
}
public static final int LTP_FIELD_NUMBER = 1;
private double ltp_;
/**
* double ltp = 1;
* @return The ltp.
*/
@java.lang.Override
public double getLtp() {
return ltp_;
}
public static final int LTT_FIELD_NUMBER = 2;
private long ltt_;
/**
* int64 ltt = 2;
* @return The ltt.
*/
@java.lang.Override
public long getLtt() {
return ltt_;
}
public static final int LTQ_FIELD_NUMBER = 3;
private long ltq_;
/**
* int64 ltq = 3;
* @return The ltq.
*/
@java.lang.Override
public long getLtq() {
return ltq_;
}
public static final int CP_FIELD_NUMBER = 4;
private double cp_;
/**
*
*close price
*
*
* double cp = 4;
* @return The cp.
*/
@java.lang.Override
public double getCp() {
return cp_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (ltp_ != 0D) {
output.writeDouble(1, ltp_);
}
if (ltt_ != 0L) {
output.writeInt64(2, ltt_);
}
if (ltq_ != 0L) {
output.writeInt64(3, ltq_);
}
if (cp_ != 0D) {
output.writeDouble(4, cp_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (ltp_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, ltp_);
}
if (ltt_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, ltt_);
}
if (ltq_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, ltq_);
}
if (cp_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, cp_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC)) {
return super.equals(obj);
}
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC other = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC) obj;
if (java.lang.Double.doubleToLongBits(getLtp())
!= java.lang.Double.doubleToLongBits(
other.getLtp())) return false;
if (getLtt()
!= other.getLtt()) return false;
if (getLtq()
!= other.getLtq()) return false;
if (java.lang.Double.doubleToLongBits(getCp())
!= java.lang.Double.doubleToLongBits(
other.getCp())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + LTP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLtp()));
hash = (37 * hash) + LTT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLtt());
hash = (37 * hash) + LTQ_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLtq());
hash = (37 * hash) + CP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getCp()));
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.LTPC}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.upstox.marketdatafeeder.rpc.proto.LTPC)
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_LTPC_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_LTPC_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder.class);
}
// Construct using com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
ltp_ = 0D;
ltt_ = 0L;
ltq_ = 0L;
cp_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_LTPC_descriptor;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getDefaultInstanceForType() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance();
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC build() {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC buildPartial() {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC result = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC(this);
result.ltp_ = ltp_;
result.ltt_ = ltt_;
result.ltq_ = ltq_;
result.cp_ = cp_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC) {
return mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC other) {
if (other == com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance()) return this;
if (other.getLtp() != 0D) {
setLtp(other.getLtp());
}
if (other.getLtt() != 0L) {
setLtt(other.getLtt());
}
if (other.getLtq() != 0L) {
setLtq(other.getLtq());
}
if (other.getCp() != 0D) {
setCp(other.getCp());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private double ltp_ ;
/**
* double ltp = 1;
* @return The ltp.
*/
@java.lang.Override
public double getLtp() {
return ltp_;
}
/**
* double ltp = 1;
* @param value The ltp to set.
* @return This builder for chaining.
*/
public Builder setLtp(double value) {
ltp_ = value;
onChanged();
return this;
}
/**
* double ltp = 1;
* @return This builder for chaining.
*/
public Builder clearLtp() {
ltp_ = 0D;
onChanged();
return this;
}
private long ltt_ ;
/**
* int64 ltt = 2;
* @return The ltt.
*/
@java.lang.Override
public long getLtt() {
return ltt_;
}
/**
* int64 ltt = 2;
* @param value The ltt to set.
* @return This builder for chaining.
*/
public Builder setLtt(long value) {
ltt_ = value;
onChanged();
return this;
}
/**
* int64 ltt = 2;
* @return This builder for chaining.
*/
public Builder clearLtt() {
ltt_ = 0L;
onChanged();
return this;
}
private long ltq_ ;
/**
* int64 ltq = 3;
* @return The ltq.
*/
@java.lang.Override
public long getLtq() {
return ltq_;
}
/**
* int64 ltq = 3;
* @param value The ltq to set.
* @return This builder for chaining.
*/
public Builder setLtq(long value) {
ltq_ = value;
onChanged();
return this;
}
/**
* int64 ltq = 3;
* @return This builder for chaining.
*/
public Builder clearLtq() {
ltq_ = 0L;
onChanged();
return this;
}
private double cp_ ;
/**
*
*
* double cp = 4;
* @param value The cp to set.
* @return This builder for chaining.
*/
public Builder setCp(double value) {
cp_ = value;
onChanged();
return this;
}
/**
*
*close price
*
*
* double cp = 4;
* @return This builder for chaining.
*/
public Builder clearCp() {
cp_ = 0D;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.LTPC)
}
// @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.LTPC)
private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC();
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LTPC parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LTPC(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MarketLevelOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.MarketLevel)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1;
*/
java.util.List
getBidAskQuoteList();
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1;
*/
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote getBidAskQuote(int index);
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1;
*/
int getBidAskQuoteCount();
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1;
*/
java.util.List 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);
}
/**
* Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.MarketLevel}
*/
public static final class MarketLevel extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.MarketLevel)
MarketLevelOrBuilder {
private static final long serialVersionUID = 0L;
// Use MarketLevel.newBuilder() to construct.
private MarketLevel(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MarketLevel() {
bidAskQuote_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MarketLevel();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MarketLevel(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
bidAskQuote_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
bidAskQuote_.add(
input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
bidAskQuote_ = java.util.Collections.unmodifiableList(bidAskQuote_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketLevel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketLevel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.Builder.class);
}
public static final int BIDASKQUOTE_FIELD_NUMBER = 1;
private java.util.List bidAskQuote_;
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1;
*/
@java.lang.Override
public java.util.List getBidAskQuoteList() {
return bidAskQuote_;
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1;
*/
@java.lang.Override
public java.util.List 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);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < bidAskQuote_.size(); i++) {
output.writeMessage(1, bidAskQuote_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < bidAskQuote_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, bidAskQuote_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel)) {
return super.equals(obj);
}
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel other = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel) obj;
if (!getBidAskQuoteList()
.equals(other.getBidAskQuoteList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getBidAskQuoteCount() > 0) {
hash = (37 * hash) + BIDASKQUOTE_FIELD_NUMBER;
hash = (53 * hash) + getBidAskQuoteList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.MarketLevel}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.upstox.marketdatafeeder.rpc.proto.MarketLevel)
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevelOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketLevel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketLevel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.Builder.class);
}
// Construct using com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBidAskQuoteFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (bidAskQuoteBuilder_ == null) {
bidAskQuote_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
bidAskQuoteBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketLevel_descriptor;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel getDefaultInstanceForType() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.getDefaultInstance();
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel build() {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel buildPartial() {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel result = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel(this);
int from_bitField0_ = bitField0_;
if (bidAskQuoteBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
bidAskQuote_ = java.util.Collections.unmodifiableList(bidAskQuote_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.bidAskQuote_ = bidAskQuote_;
} else {
result.bidAskQuote_ = bidAskQuoteBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel) {
return mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel other) {
if (other == com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.getDefaultInstance()) return this;
if (bidAskQuoteBuilder_ == null) {
if (!other.bidAskQuote_.isEmpty()) {
if (bidAskQuote_.isEmpty()) {
bidAskQuote_ = other.bidAskQuote_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBidAskQuoteIsMutable();
bidAskQuote_.addAll(other.bidAskQuote_);
}
onChanged();
}
} else {
if (!other.bidAskQuote_.isEmpty()) {
if (bidAskQuoteBuilder_.isEmpty()) {
bidAskQuoteBuilder_.dispose();
bidAskQuoteBuilder_ = null;
bidAskQuote_ = other.bidAskQuote_;
bitField0_ = (bitField0_ & ~0x00000001);
bidAskQuoteBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBidAskQuoteFieldBuilder() : null;
} else {
bidAskQuoteBuilder_.addAllMessages(other.bidAskQuote_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List bidAskQuote_ =
java.util.Collections.emptyList();
private void ensureBidAskQuoteIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
bidAskQuote_ = new java.util.ArrayList(bidAskQuote_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.QuoteOrBuilder> bidAskQuoteBuilder_;
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1;
*/
public java.util.List getBidAskQuoteList() {
if (bidAskQuoteBuilder_ == null) {
return java.util.Collections.unmodifiableList(bidAskQuote_);
} else {
return bidAskQuoteBuilder_.getMessageList();
}
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1;
*/
public int getBidAskQuoteCount() {
if (bidAskQuoteBuilder_ == null) {
return bidAskQuote_.size();
} else {
return bidAskQuoteBuilder_.getCount();
}
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1;
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote getBidAskQuote(int index) {
if (bidAskQuoteBuilder_ == null) {
return bidAskQuote_.get(index);
} else {
return bidAskQuoteBuilder_.getMessage(index);
}
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1;
*/
public Builder setBidAskQuote(
int index, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote value) {
if (bidAskQuoteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBidAskQuoteIsMutable();
bidAskQuote_.set(index, value);
onChanged();
} else {
bidAskQuoteBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1;
*/
public Builder setBidAskQuote(
int index, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder builderForValue) {
if (bidAskQuoteBuilder_ == null) {
ensureBidAskQuoteIsMutable();
bidAskQuote_.set(index, builderForValue.build());
onChanged();
} else {
bidAskQuoteBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1;
*/
public Builder addBidAskQuote(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote value) {
if (bidAskQuoteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBidAskQuoteIsMutable();
bidAskQuote_.add(value);
onChanged();
} else {
bidAskQuoteBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1;
*/
public Builder addBidAskQuote(
int index, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote value) {
if (bidAskQuoteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBidAskQuoteIsMutable();
bidAskQuote_.add(index, value);
onChanged();
} else {
bidAskQuoteBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1;
*/
public Builder addBidAskQuote(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder builderForValue) {
if (bidAskQuoteBuilder_ == null) {
ensureBidAskQuoteIsMutable();
bidAskQuote_.add(builderForValue.build());
onChanged();
} else {
bidAskQuoteBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1;
*/
public Builder addBidAskQuote(
int index, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder builderForValue) {
if (bidAskQuoteBuilder_ == null) {
ensureBidAskQuoteIsMutable();
bidAskQuote_.add(index, builderForValue.build());
onChanged();
} else {
bidAskQuoteBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.Quote bidAskQuote = 1;
*/
public Builder addAllBidAskQuote(
java.lang.Iterable 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_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.MarketLevel)
}
// @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.MarketLevel)
private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel();
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MarketLevel parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MarketLevel(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MarketOHLCOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.MarketOHLC)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1;
*/
java.util.List
getOhlcList();
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1;
*/
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC getOhlc(int index);
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1;
*/
int getOhlcCount();
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1;
*/
java.util.List 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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MarketOHLC(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
ohlc_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
ohlc_.add(
input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
ohlc_ = java.util.Collections.unmodifiableList(ohlc_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketOHLC_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketOHLC_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder.class);
}
public static final int OHLC_FIELD_NUMBER = 1;
private java.util.List ohlc_;
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1;
*/
@java.lang.Override
public java.util.List getOhlcList() {
return ohlc_;
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1;
*/
@java.lang.Override
public java.util.List 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));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < ohlc_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, ohlc_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC)) {
return super.equals(obj);
}
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC other = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC) obj;
if (!getOhlcList()
.equals(other.getOhlcList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getOhlcCount() > 0) {
hash = (37 * hash) + OHLC_FIELD_NUMBER;
hash = (53 * hash) + getOhlcList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.MarketOHLC}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.upstox.marketdatafeeder.rpc.proto.MarketOHLC)
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketOHLC_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketOHLC_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder.class);
}
// Construct using com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOhlcFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (ohlcBuilder_ == null) {
ohlc_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ohlcBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketOHLC_descriptor;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC getDefaultInstanceForType() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.getDefaultInstance();
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC build() {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC buildPartial() {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC result = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC(this);
int from_bitField0_ = bitField0_;
if (ohlcBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
ohlc_ = java.util.Collections.unmodifiableList(ohlc_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.ohlc_ = ohlc_;
} else {
result.ohlc_ = ohlcBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC) {
return mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC other) {
if (other == com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.getDefaultInstance()) return this;
if (ohlcBuilder_ == null) {
if (!other.ohlc_.isEmpty()) {
if (ohlc_.isEmpty()) {
ohlc_ = other.ohlc_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOhlcIsMutable();
ohlc_.addAll(other.ohlc_);
}
onChanged();
}
} else {
if (!other.ohlc_.isEmpty()) {
if (ohlcBuilder_.isEmpty()) {
ohlcBuilder_.dispose();
ohlcBuilder_ = null;
ohlc_ = other.ohlc_;
bitField0_ = (bitField0_ & ~0x00000001);
ohlcBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOhlcFieldBuilder() : null;
} else {
ohlcBuilder_.addAllMessages(other.ohlc_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List ohlc_ =
java.util.Collections.emptyList();
private void ensureOhlcIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
ohlc_ = new java.util.ArrayList(ohlc_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLCOrBuilder> ohlcBuilder_;
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1;
*/
public java.util.List getOhlcList() {
if (ohlcBuilder_ == null) {
return java.util.Collections.unmodifiableList(ohlc_);
} else {
return ohlcBuilder_.getMessageList();
}
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1;
*/
public int getOhlcCount() {
if (ohlcBuilder_ == null) {
return ohlc_.size();
} else {
return ohlcBuilder_.getCount();
}
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1;
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC getOhlc(int index) {
if (ohlcBuilder_ == null) {
return ohlc_.get(index);
} else {
return ohlcBuilder_.getMessage(index);
}
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1;
*/
public Builder setOhlc(
int index, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC value) {
if (ohlcBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOhlcIsMutable();
ohlc_.set(index, value);
onChanged();
} else {
ohlcBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1;
*/
public Builder setOhlc(
int index, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.Builder builderForValue) {
if (ohlcBuilder_ == null) {
ensureOhlcIsMutable();
ohlc_.set(index, builderForValue.build());
onChanged();
} else {
ohlcBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1;
*/
public Builder addOhlc(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC value) {
if (ohlcBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOhlcIsMutable();
ohlc_.add(value);
onChanged();
} else {
ohlcBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1;
*/
public Builder addOhlc(
int index, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC value) {
if (ohlcBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOhlcIsMutable();
ohlc_.add(index, value);
onChanged();
} else {
ohlcBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1;
*/
public Builder addOhlc(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.Builder builderForValue) {
if (ohlcBuilder_ == null) {
ensureOhlcIsMutable();
ohlc_.add(builderForValue.build());
onChanged();
} else {
ohlcBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1;
*/
public Builder addOhlc(
int index, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.Builder builderForValue) {
if (ohlcBuilder_ == null) {
ensureOhlcIsMutable();
ohlc_.add(index, builderForValue.build());
onChanged();
} else {
ohlcBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.upstox.marketdatafeeder.rpc.proto.OHLC ohlc = 1;
*/
public Builder addAllOhlc(
java.lang.Iterable 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 {
return new MarketOHLC(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QuoteOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.Quote)
com.google.protobuf.MessageOrBuilder {
/**
*
*bid quantity
*
*
* int32 bq = 1;
* @return The bq.
*/
int getBq();
/**
*
*bid price
*
*
* double bp = 2;
* @return The bp.
*/
double getBp();
/**
*
*bid number of orders
*
*
* int32 bno = 3;
* @return The bno.
*/
int getBno();
/**
*
* ask quantity
*
*
* int32 aq = 4;
* @return The aq.
*/
int getAq();
/**
*
* ask price
*
*
* double ap = 5;
* @return The ap.
*/
double getAp();
/**
*
* ask number of orders
*
*
* int32 ano = 6;
* @return The ano.
*/
int getAno();
}
/**
* Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.Quote}
*/
public static final class Quote extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.Quote)
QuoteOrBuilder {
private static final long serialVersionUID = 0L;
// Use Quote.newBuilder() to construct.
private Quote(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Quote() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Quote();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Quote(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
bq_ = input.readInt32();
break;
}
case 17: {
bp_ = input.readDouble();
break;
}
case 24: {
bno_ = input.readInt32();
break;
}
case 32: {
aq_ = input.readInt32();
break;
}
case 41: {
ap_ = input.readDouble();
break;
}
case 48: {
ano_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_Quote_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_Quote_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote.Builder.class);
}
public static final int BQ_FIELD_NUMBER = 1;
private int bq_;
/**
*
*bid quantity
*
*
* int32 bq = 1;
* @return The bq.
*/
@java.lang.Override
public int getBq() {
return bq_;
}
public static final int BP_FIELD_NUMBER = 2;
private double bp_;
/**
*
*bid price
*
*
* double bp = 2;
* @return The bp.
*/
@java.lang.Override
public double getBp() {
return bp_;
}
public static final int BNO_FIELD_NUMBER = 3;
private int bno_;
/**
*
*bid number of orders
*
*
* int32 bno = 3;
* @return The bno.
*/
@java.lang.Override
public int getBno() {
return bno_;
}
public static final int AQ_FIELD_NUMBER = 4;
private int aq_;
/**
*
* ask quantity
*
*
* int32 aq = 4;
* @return The aq.
*/
@java.lang.Override
public int getAq() {
return aq_;
}
public static final int AP_FIELD_NUMBER = 5;
private double ap_;
/**
*
* ask price
*
*
* double ap = 5;
* @return The ap.
*/
@java.lang.Override
public double getAp() {
return ap_;
}
public static final int ANO_FIELD_NUMBER = 6;
private int ano_;
/**
*
*
* int32 bq = 1;
* @return The bq.
*/
@java.lang.Override
public int getBq() {
return bq_;
}
/**
*
*bid quantity
*
*
* int32 bq = 1;
* @param value The bq to set.
* @return This builder for chaining.
*/
public Builder setBq(int value) {
bq_ = value;
onChanged();
return this;
}
/**
*
*bid quantity
*
*
* int32 bq = 1;
* @return This builder for chaining.
*/
public Builder clearBq() {
bq_ = 0;
onChanged();
return this;
}
private double bp_ ;
/**
*
*bid price
*
*
* double bp = 2;
* @return The bp.
*/
@java.lang.Override
public double getBp() {
return bp_;
}
/**
*
*bid price
*
*
* double bp = 2;
* @param value The bp to set.
* @return This builder for chaining.
*/
public Builder setBp(double value) {
bp_ = value;
onChanged();
return this;
}
/**
*
*bid price
*
*
* double bp = 2;
* @return This builder for chaining.
*/
public Builder clearBp() {
bp_ = 0D;
onChanged();
return this;
}
private int bno_ ;
/**
*
*bid number of orders
*
*
* int32 bno = 3;
* @return The bno.
*/
@java.lang.Override
public int getBno() {
return bno_;
}
/**
*
*bid number of orders
*
*
* int32 bno = 3;
* @param value The bno to set.
* @return This builder for chaining.
*/
public Builder setBno(int value) {
bno_ = value;
onChanged();
return this;
}
/**
*
*bid number of orders
*
*
* int32 bno = 3;
* @return This builder for chaining.
*/
public Builder clearBno() {
bno_ = 0;
onChanged();
return this;
}
private int aq_ ;
/**
*
* ask quantity
*
*
* int32 aq = 4;
* @return The aq.
*/
@java.lang.Override
public int getAq() {
return aq_;
}
/**
*
* ask quantity
*
*
* int32 aq = 4;
* @param value The aq to set.
* @return This builder for chaining.
*/
public Builder setAq(int value) {
aq_ = value;
onChanged();
return this;
}
/**
*
* ask quantity
*
*
* int32 aq = 4;
* @return This builder for chaining.
*/
public Builder clearAq() {
aq_ = 0;
onChanged();
return this;
}
private double ap_ ;
/**
*
* ask price
*
*
* double ap = 5;
* @return The ap.
*/
@java.lang.Override
public double getAp() {
return ap_;
}
/**
*
* ask price
*
*
* double ap = 5;
* @param value The ap to set.
* @return This builder for chaining.
*/
public Builder setAp(double value) {
ap_ = value;
onChanged();
return this;
}
/**
*
* ask price
*
*
* double ap = 5;
* @return This builder for chaining.
*/
public Builder clearAp() {
ap_ = 0D;
onChanged();
return this;
}
private int ano_ ;
/**
*
* ask number of orders
*
*
* int32 ano = 6;
* @return The ano.
*/
@java.lang.Override
public int getAno() {
return ano_;
}
/**
*
* ask number of orders
*
*
* int32 ano = 6;
* @param value The ano to set.
* @return This builder for chaining.
*/
public Builder setAno(int value) {
ano_ = value;
onChanged();
return this;
}
/**
*
* ask number of orders
*
*
* int32 ano = 6;
* @return This builder for chaining.
*/
public Builder clearAno() {
ano_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.Quote)
}
// @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.Quote)
private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote();
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Quote parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Quote(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.Quote getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OptionGreeksOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.OptionGreeks)
com.google.protobuf.MessageOrBuilder {
/**
*
* option price
*
*
* double op = 1;
* @return The op.
*/
double getOp();
/**
*
*underlying price
*
*
* double up = 2;
* @return The up.
*/
double getUp();
/**
*
* implied volatility
*
*
* double iv = 3;
* @return The iv.
*/
double getIv();
/**
* double delta = 4;
* @return The delta.
*/
double getDelta();
/**
* double theta = 5;
* @return The theta.
*/
double getTheta();
/**
* double gamma = 6;
* @return The gamma.
*/
double getGamma();
/**
* double vega = 7;
* @return The vega.
*/
double getVega();
/**
* double rho = 8;
* @return The rho.
*/
double getRho();
}
/**
* Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.OptionGreeks}
*/
public static final class OptionGreeks extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.OptionGreeks)
OptionGreeksOrBuilder {
private static final long serialVersionUID = 0L;
// Use OptionGreeks.newBuilder() to construct.
private OptionGreeks(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OptionGreeks() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OptionGreeks();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OptionGreeks(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 9: {
op_ = input.readDouble();
break;
}
case 17: {
up_ = input.readDouble();
break;
}
case 25: {
iv_ = input.readDouble();
break;
}
case 33: {
delta_ = input.readDouble();
break;
}
case 41: {
theta_ = input.readDouble();
break;
}
case 49: {
gamma_ = input.readDouble();
break;
}
case 57: {
vega_ = input.readDouble();
break;
}
case 65: {
rho_ = input.readDouble();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionGreeks_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionGreeks_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder.class);
}
public static final int OP_FIELD_NUMBER = 1;
private double op_;
/**
*
* option price
*
*
* double op = 1;
* @return The op.
*/
@java.lang.Override
public double getOp() {
return op_;
}
public static final int UP_FIELD_NUMBER = 2;
private double up_;
/**
*
*underlying price
*
*
* double up = 2;
* @return The up.
*/
@java.lang.Override
public double getUp() {
return up_;
}
public static final int IV_FIELD_NUMBER = 3;
private double iv_;
/**
*
* implied volatility
*
*
* double iv = 3;
* @return The iv.
*/
@java.lang.Override
public double getIv() {
return iv_;
}
public static final int DELTA_FIELD_NUMBER = 4;
private double delta_;
/**
* double delta = 4;
* @return The delta.
*/
@java.lang.Override
public double getDelta() {
return delta_;
}
public static final int THETA_FIELD_NUMBER = 5;
private double theta_;
/**
* double theta = 5;
* @return The theta.
*/
@java.lang.Override
public double getTheta() {
return theta_;
}
public static final int GAMMA_FIELD_NUMBER = 6;
private double gamma_;
/**
* double gamma = 6;
* @return The gamma.
*/
@java.lang.Override
public double getGamma() {
return gamma_;
}
public static final int VEGA_FIELD_NUMBER = 7;
private double vega_;
/**
* double vega = 7;
* @return The vega.
*/
@java.lang.Override
public double getVega() {
return vega_;
}
public static final int RHO_FIELD_NUMBER = 8;
private double rho_;
/**
* double rho = 8;
* @return The rho.
*/
@java.lang.Override
public double getRho() {
return rho_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (op_ != 0D) {
output.writeDouble(1, op_);
}
if (up_ != 0D) {
output.writeDouble(2, up_);
}
if (iv_ != 0D) {
output.writeDouble(3, iv_);
}
if (delta_ != 0D) {
output.writeDouble(4, delta_);
}
if (theta_ != 0D) {
output.writeDouble(5, theta_);
}
if (gamma_ != 0D) {
output.writeDouble(6, gamma_);
}
if (vega_ != 0D) {
output.writeDouble(7, vega_);
}
if (rho_ != 0D) {
output.writeDouble(8, rho_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (op_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, op_);
}
if (up_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, up_);
}
if (iv_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, iv_);
}
if (delta_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, delta_);
}
if (theta_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, theta_);
}
if (gamma_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(6, gamma_);
}
if (vega_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(7, vega_);
}
if (rho_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(8, rho_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks)) {
return super.equals(obj);
}
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks other = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks) obj;
if (java.lang.Double.doubleToLongBits(getOp())
!= java.lang.Double.doubleToLongBits(
other.getOp())) return false;
if (java.lang.Double.doubleToLongBits(getUp())
!= java.lang.Double.doubleToLongBits(
other.getUp())) return false;
if (java.lang.Double.doubleToLongBits(getIv())
!= java.lang.Double.doubleToLongBits(
other.getIv())) return false;
if (java.lang.Double.doubleToLongBits(getDelta())
!= java.lang.Double.doubleToLongBits(
other.getDelta())) return false;
if (java.lang.Double.doubleToLongBits(getTheta())
!= java.lang.Double.doubleToLongBits(
other.getTheta())) return false;
if (java.lang.Double.doubleToLongBits(getGamma())
!= java.lang.Double.doubleToLongBits(
other.getGamma())) return false;
if (java.lang.Double.doubleToLongBits(getVega())
!= java.lang.Double.doubleToLongBits(
other.getVega())) return false;
if (java.lang.Double.doubleToLongBits(getRho())
!= java.lang.Double.doubleToLongBits(
other.getRho())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + OP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getOp()));
hash = (37 * hash) + UP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getUp()));
hash = (37 * hash) + IV_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getIv()));
hash = (37 * hash) + DELTA_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDelta()));
hash = (37 * hash) + THETA_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getTheta()));
hash = (37 * hash) + GAMMA_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getGamma()));
hash = (37 * hash) + VEGA_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getVega()));
hash = (37 * hash) + RHO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRho()));
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.OptionGreeks}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.upstox.marketdatafeeder.rpc.proto.OptionGreeks)
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionGreeks_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionGreeks_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder.class);
}
// Construct using com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
op_ = 0D;
up_ = 0D;
iv_ = 0D;
delta_ = 0D;
theta_ = 0D;
gamma_ = 0D;
vega_ = 0D;
rho_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OptionGreeks_descriptor;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks getDefaultInstanceForType() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.getDefaultInstance();
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks build() {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks buildPartial() {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks result = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks(this);
result.op_ = op_;
result.up_ = up_;
result.iv_ = iv_;
result.delta_ = delta_;
result.theta_ = theta_;
result.gamma_ = gamma_;
result.vega_ = vega_;
result.rho_ = rho_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks) {
return mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks other) {
if (other == com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.getDefaultInstance()) return this;
if (other.getOp() != 0D) {
setOp(other.getOp());
}
if (other.getUp() != 0D) {
setUp(other.getUp());
}
if (other.getIv() != 0D) {
setIv(other.getIv());
}
if (other.getDelta() != 0D) {
setDelta(other.getDelta());
}
if (other.getTheta() != 0D) {
setTheta(other.getTheta());
}
if (other.getGamma() != 0D) {
setGamma(other.getGamma());
}
if (other.getVega() != 0D) {
setVega(other.getVega());
}
if (other.getRho() != 0D) {
setRho(other.getRho());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private double op_ ;
/**
*
* option price
*
*
* double op = 1;
* @return The op.
*/
@java.lang.Override
public double getOp() {
return op_;
}
/**
*
* option price
*
*
* double op = 1;
* @param value The op to set.
* @return This builder for chaining.
*/
public Builder setOp(double value) {
op_ = value;
onChanged();
return this;
}
/**
*
* option price
*
*
* double op = 1;
* @return This builder for chaining.
*/
public Builder clearOp() {
op_ = 0D;
onChanged();
return this;
}
private double up_ ;
/**
*
*underlying price
*
*
* double up = 2;
* @return The up.
*/
@java.lang.Override
public double getUp() {
return up_;
}
/**
*
*underlying price
*
*
* double up = 2;
* @param value The up to set.
* @return This builder for chaining.
*/
public Builder setUp(double value) {
up_ = value;
onChanged();
return this;
}
/**
*
*underlying price
*
*
* double up = 2;
* @return This builder for chaining.
*/
public Builder clearUp() {
up_ = 0D;
onChanged();
return this;
}
private double iv_ ;
/**
*
* implied volatility
*
*
* double iv = 3;
* @return The iv.
*/
@java.lang.Override
public double getIv() {
return iv_;
}
/**
*
* implied volatility
*
*
* double iv = 3;
* @param value The iv to set.
* @return This builder for chaining.
*/
public Builder setIv(double value) {
iv_ = value;
onChanged();
return this;
}
/**
*
* implied volatility
*
*
* double iv = 3;
* @return This builder for chaining.
*/
public Builder clearIv() {
iv_ = 0D;
onChanged();
return this;
}
private double delta_ ;
/**
* double delta = 4;
* @return The delta.
*/
@java.lang.Override
public double getDelta() {
return delta_;
}
/**
* double delta = 4;
* @param value The delta to set.
* @return This builder for chaining.
*/
public Builder setDelta(double value) {
delta_ = value;
onChanged();
return this;
}
/**
* double delta = 4;
* @return This builder for chaining.
*/
public Builder clearDelta() {
delta_ = 0D;
onChanged();
return this;
}
private double theta_ ;
/**
* double theta = 5;
* @return The theta.
*/
@java.lang.Override
public double getTheta() {
return theta_;
}
/**
* double theta = 5;
* @param value The theta to set.
* @return This builder for chaining.
*/
public Builder setTheta(double value) {
theta_ = value;
onChanged();
return this;
}
/**
* double theta = 5;
* @return This builder for chaining.
*/
public Builder clearTheta() {
theta_ = 0D;
onChanged();
return this;
}
private double gamma_ ;
/**
* double gamma = 6;
* @return The gamma.
*/
@java.lang.Override
public double getGamma() {
return gamma_;
}
/**
* double gamma = 6;
* @param value The gamma to set.
* @return This builder for chaining.
*/
public Builder setGamma(double value) {
gamma_ = value;
onChanged();
return this;
}
/**
* double gamma = 6;
* @return This builder for chaining.
*/
public Builder clearGamma() {
gamma_ = 0D;
onChanged();
return this;
}
private double vega_ ;
/**
* double vega = 7;
* @return The vega.
*/
@java.lang.Override
public double getVega() {
return vega_;
}
/**
* double vega = 7;
* @param value The vega to set.
* @return This builder for chaining.
*/
public Builder setVega(double value) {
vega_ = value;
onChanged();
return this;
}
/**
* double vega = 7;
* @return This builder for chaining.
*/
public Builder clearVega() {
vega_ = 0D;
onChanged();
return this;
}
private double rho_ ;
/**
* double rho = 8;
* @return The rho.
*/
@java.lang.Override
public double getRho() {
return rho_;
}
/**
* double rho = 8;
* @param value The rho to set.
* @return This builder for chaining.
*/
public Builder setRho(double value) {
rho_ = value;
onChanged();
return this;
}
/**
* double rho = 8;
* @return This builder for chaining.
*/
public Builder clearRho() {
rho_ = 0D;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.OptionGreeks)
}
// @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.OptionGreeks)
private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks();
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OptionGreeks parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OptionGreeks(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExtendedFeedDetailsOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails)
com.google.protobuf.MessageOrBuilder {
/**
*
*avg traded price
*
*
* double atp = 1;
* @return The atp.
*/
double getAtp();
/**
*
*
* double poi = 22;
* @return The poi.
*/
double getPoi();
}
/**
* Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails}
*/
public static final class ExtendedFeedDetails extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails)
ExtendedFeedDetailsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExtendedFeedDetails.newBuilder() to construct.
private ExtendedFeedDetails(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExtendedFeedDetails() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExtendedFeedDetails();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExtendedFeedDetails(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 9: {
atp_ = input.readDouble();
break;
}
case 17: {
cp_ = input.readDouble();
break;
}
case 24: {
vtt_ = input.readInt64();
break;
}
case 33: {
oi_ = input.readDouble();
break;
}
case 41: {
changeOi_ = input.readDouble();
break;
}
case 49: {
lastClose_ = input.readDouble();
break;
}
case 57: {
tbq_ = input.readDouble();
break;
}
case 65: {
tsq_ = input.readDouble();
break;
}
case 73: {
close_ = input.readDouble();
break;
}
case 81: {
lc_ = input.readDouble();
break;
}
case 89: {
uc_ = input.readDouble();
break;
}
case 97: {
yh_ = input.readDouble();
break;
}
case 105: {
yl_ = input.readDouble();
break;
}
case 113: {
fp_ = input.readDouble();
break;
}
case 120: {
fv_ = input.readInt32();
break;
}
case 128: {
mbpBuy_ = input.readInt64();
break;
}
case 136: {
mbpSell_ = input.readInt64();
break;
}
case 144: {
tv_ = input.readInt64();
break;
}
case 153: {
dhoi_ = input.readDouble();
break;
}
case 161: {
dloi_ = input.readDouble();
break;
}
case 169: {
sp_ = input.readDouble();
break;
}
case 177: {
poi_ = input.readDouble();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_ExtendedFeedDetails_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_ExtendedFeedDetails_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder.class);
}
public static final int ATP_FIELD_NUMBER = 1;
private double atp_;
/**
*
*avg traded price
*
*
* double atp = 1;
* @return The atp.
*/
@java.lang.Override
public double getAtp() {
return atp_;
}
public static final int CP_FIELD_NUMBER = 2;
private double cp_;
/**
*
*close price
*
*
* double cp = 2;
* @return The cp.
*/
@java.lang.Override
public double getCp() {
return cp_;
}
public static final int VTT_FIELD_NUMBER = 3;
private long vtt_;
/**
*
*volume traded today
*
*
* int64 vtt = 3;
* @return The vtt.
*/
@java.lang.Override
public long getVtt() {
return vtt_;
}
public static final int OI_FIELD_NUMBER = 4;
private double oi_;
/**
*
*open interest
*
*
* double oi = 4;
* @return The oi.
*/
@java.lang.Override
public double getOi() {
return oi_;
}
public static final int CHANGEOI_FIELD_NUMBER = 5;
private double changeOi_;
/**
*
*change oi
*
*
* double changeOi = 5;
* @return The changeOi.
*/
@java.lang.Override
public double getChangeOi() {
return changeOi_;
}
public static final int LASTCLOSE_FIELD_NUMBER = 6;
private double lastClose_;
/**
* double lastClose = 6;
* @return The lastClose.
*/
@java.lang.Override
public double getLastClose() {
return lastClose_;
}
public static final int TBQ_FIELD_NUMBER = 7;
private double tbq_;
/**
*
*total buy quantity
*
*
* double tbq = 7;
* @return The tbq.
*/
@java.lang.Override
public double getTbq() {
return tbq_;
}
public static final int TSQ_FIELD_NUMBER = 8;
private double tsq_;
/**
*
*total sell quantity
*
*
* double tsq = 8;
* @return The tsq.
*/
@java.lang.Override
public double getTsq() {
return tsq_;
}
public static final int CLOSE_FIELD_NUMBER = 9;
private double close_;
/**
* double close = 9;
* @return The close.
*/
@java.lang.Override
public double getClose() {
return close_;
}
public static final int LC_FIELD_NUMBER = 10;
private double lc_;
/**
*
*lower circuit
*
*
* double lc = 10;
* @return The lc.
*/
@java.lang.Override
public double getLc() {
return lc_;
}
public static final int UC_FIELD_NUMBER = 11;
private double uc_;
/**
*
*upper circuit
*
*
* double uc = 11;
* @return The uc.
*/
@java.lang.Override
public double getUc() {
return uc_;
}
public static final int YH_FIELD_NUMBER = 12;
private double yh_;
/**
*
*yearly high
*
*
* double yh = 12;
* @return The yh.
*/
@java.lang.Override
public double getYh() {
return yh_;
}
public static final int YL_FIELD_NUMBER = 13;
private double yl_;
/**
*
*yearly low
*
*
* double yl = 13;
* @return The yl.
*/
@java.lang.Override
public double getYl() {
return yl_;
}
public static final int FP_FIELD_NUMBER = 14;
private double fp_;
/**
*
*fill price
*
*
* double fp = 14;
* @return The fp.
*/
@java.lang.Override
public double getFp() {
return fp_;
}
public static final int FV_FIELD_NUMBER = 15;
private int fv_;
/**
*
*fill volume
*
*
* int32 fv = 15;
* @return The fv.
*/
@java.lang.Override
public int getFv() {
return fv_;
}
public static final int MBPBUY_FIELD_NUMBER = 16;
private long mbpBuy_;
/**
*
*mbp buy
*
*
* int64 mbpBuy = 16;
* @return The mbpBuy.
*/
@java.lang.Override
public long getMbpBuy() {
return mbpBuy_;
}
public static final int MBPSELL_FIELD_NUMBER = 17;
private long mbpSell_;
/**
*
*mbp sell
*
*
* int64 mbpSell = 17;
* @return The mbpSell.
*/
@java.lang.Override
public long getMbpSell() {
return mbpSell_;
}
public static final int TV_FIELD_NUMBER = 18;
private long tv_;
/**
*
*traded volume
*
*
* int64 tv = 18;
* @return The tv.
*/
@java.lang.Override
public long getTv() {
return tv_;
}
public static final int DHOI_FIELD_NUMBER = 19;
private double dhoi_;
/**
*
*day high open interest
*
*
* double dhoi = 19;
* @return The dhoi.
*/
@java.lang.Override
public double getDhoi() {
return dhoi_;
}
public static final int DLOI_FIELD_NUMBER = 20;
private double dloi_;
/**
*
*day low open interest
*
*
* double dloi = 20;
* @return The dloi.
*/
@java.lang.Override
public double getDloi() {
return dloi_;
}
public static final int SP_FIELD_NUMBER = 21;
private double sp_;
/**
*
*spot price
*
*
* double sp = 21;
* @return The sp.
*/
@java.lang.Override
public double getSp() {
return sp_;
}
public static final int POI_FIELD_NUMBER = 22;
private double poi_;
/**
*
*
* double atp = 1;
* @return The atp.
*/
@java.lang.Override
public double getAtp() {
return atp_;
}
/**
*
*avg traded price
*
*
* double atp = 1;
* @param value The atp to set.
* @return This builder for chaining.
*/
public Builder setAtp(double value) {
atp_ = value;
onChanged();
return this;
}
/**
*
*avg traded price
*
*
* double atp = 1;
* @return This builder for chaining.
*/
public Builder clearAtp() {
atp_ = 0D;
onChanged();
return this;
}
private double cp_ ;
/**
*
*
* double cp = 2;
* @param value The cp to set.
* @return This builder for chaining.
*/
public Builder setCp(double value) {
cp_ = value;
onChanged();
return this;
}
/**
*
*close price
*
*
* double cp = 2;
* @return This builder for chaining.
*/
public Builder clearCp() {
cp_ = 0D;
onChanged();
return this;
}
private long vtt_ ;
/**
*
*volume traded today
*
*
* int64 vtt = 3;
* @return The vtt.
*/
@java.lang.Override
public long getVtt() {
return vtt_;
}
/**
*
*volume traded today
*
*
* int64 vtt = 3;
* @param value The vtt to set.
* @return This builder for chaining.
*/
public Builder setVtt(long value) {
vtt_ = value;
onChanged();
return this;
}
/**
*
*volume traded today
*
*
* int64 vtt = 3;
* @return This builder for chaining.
*/
public Builder clearVtt() {
vtt_ = 0L;
onChanged();
return this;
}
private double oi_ ;
/**
*
*open interest
*
*
* double oi = 4;
* @return The oi.
*/
@java.lang.Override
public double getOi() {
return oi_;
}
/**
*
*open interest
*
*
* double oi = 4;
* @param value The oi to set.
* @return This builder for chaining.
*/
public Builder setOi(double value) {
oi_ = value;
onChanged();
return this;
}
/**
*
*open interest
*
*
* double oi = 4;
* @return This builder for chaining.
*/
public Builder clearOi() {
oi_ = 0D;
onChanged();
return this;
}
private double changeOi_ ;
/**
*
*
* double fp = 14;
* @param value The fp to set.
* @return This builder for chaining.
*/
public Builder setFp(double value) {
fp_ = value;
onChanged();
return this;
}
/**
*
*fill price
*
*
* double fp = 14;
* @return This builder for chaining.
*/
public Builder clearFp() {
fp_ = 0D;
onChanged();
return this;
}
private int fv_ ;
/**
*
*fill volume
*
*
* int32 fv = 15;
* @return The fv.
*/
@java.lang.Override
public int getFv() {
return fv_;
}
/**
*
*fill volume
*
*
* int32 fv = 15;
* @param value The fv to set.
* @return This builder for chaining.
*/
public Builder setFv(int value) {
fv_ = value;
onChanged();
return this;
}
/**
*
*fill volume
*
*
* int32 fv = 15;
* @return This builder for chaining.
*/
public Builder clearFv() {
fv_ = 0;
onChanged();
return this;
}
private long mbpBuy_ ;
/**
*
*mbp buy
*
*
* int64 mbpBuy = 16;
* @return The mbpBuy.
*/
@java.lang.Override
public long getMbpBuy() {
return mbpBuy_;
}
/**
*
*mbp buy
*
*
* int64 mbpBuy = 16;
* @param value The mbpBuy to set.
* @return This builder for chaining.
*/
public Builder setMbpBuy(long value) {
mbpBuy_ = value;
onChanged();
return this;
}
/**
*
*mbp buy
*
*
* int64 mbpBuy = 16;
* @return This builder for chaining.
*/
public Builder clearMbpBuy() {
mbpBuy_ = 0L;
onChanged();
return this;
}
private long mbpSell_ ;
/**
*
*mbp sell
*
*
* int64 mbpSell = 17;
* @return The mbpSell.
*/
@java.lang.Override
public long getMbpSell() {
return mbpSell_;
}
/**
*
*mbp sell
*
*
* int64 mbpSell = 17;
* @param value The mbpSell to set.
* @return This builder for chaining.
*/
public Builder setMbpSell(long value) {
mbpSell_ = value;
onChanged();
return this;
}
/**
*
*mbp sell
*
*
* int64 mbpSell = 17;
* @return This builder for chaining.
*/
public Builder clearMbpSell() {
mbpSell_ = 0L;
onChanged();
return this;
}
private long tv_ ;
/**
*
*traded volume
*
*
* int64 tv = 18;
* @return The tv.
*/
@java.lang.Override
public long getTv() {
return tv_;
}
/**
*
*traded volume
*
*
* int64 tv = 18;
* @param value The tv to set.
* @return This builder for chaining.
*/
public Builder setTv(long value) {
tv_ = value;
onChanged();
return this;
}
/**
*
*traded volume
*
*
* int64 tv = 18;
* @return This builder for chaining.
*/
public Builder clearTv() {
tv_ = 0L;
onChanged();
return this;
}
private double dhoi_ ;
/**
*
*
* double sp = 21;
* @param value The sp to set.
* @return This builder for chaining.
*/
public Builder setSp(double value) {
sp_ = value;
onChanged();
return this;
}
/**
*
*spot price
*
*
* double sp = 21;
* @return This builder for chaining.
*/
public Builder clearSp() {
sp_ = 0D;
onChanged();
return this;
}
private double poi_ ;
/**
*
*previous open interest
*
*
* double poi = 22;
* @return The poi.
*/
@java.lang.Override
public double getPoi() {
return poi_;
}
/**
*
*previous open interest
*
*
* double poi = 22;
* @param value The poi to set.
* @return This builder for chaining.
*/
public Builder setPoi(double value) {
poi_ = value;
onChanged();
return this;
}
/**
*
*previous open interest
*
*
* double poi = 22;
* @return This builder for chaining.
*/
public Builder clearPoi() {
poi_ = 0D;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails)
}
// @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails)
private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails();
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExtendedFeedDetails parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExtendedFeedDetails(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OHLCOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.OHLC)
com.google.protobuf.MessageOrBuilder {
/**
* string interval = 1;
* @return The interval.
*/
java.lang.String getInterval();
/**
* string interval = 1;
* @return The bytes for interval.
*/
com.google.protobuf.ByteString
getIntervalBytes();
/**
* double open = 2;
* @return The open.
*/
double getOpen();
/**
* double high = 3;
* @return The high.
*/
double getHigh();
/**
* double low = 4;
* @return The low.
*/
double getLow();
/**
* double close = 5;
* @return The close.
*/
double getClose();
/**
* int32 volume = 6;
* @return The volume.
*/
int getVolume();
/**
* int64 ts = 7;
* @return The ts.
*/
long getTs();
}
/**
* Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.OHLC}
*/
public static final class OHLC extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.OHLC)
OHLCOrBuilder {
private static final long serialVersionUID = 0L;
// Use OHLC.newBuilder() to construct.
private OHLC(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OHLC() {
interval_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OHLC();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OHLC(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
interval_ = s;
break;
}
case 17: {
open_ = input.readDouble();
break;
}
case 25: {
high_ = input.readDouble();
break;
}
case 33: {
low_ = input.readDouble();
break;
}
case 41: {
close_ = input.readDouble();
break;
}
case 48: {
volume_ = input.readInt32();
break;
}
case 56: {
ts_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OHLC_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OHLC_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.Builder.class);
}
public static final int INTERVAL_FIELD_NUMBER = 1;
private volatile java.lang.Object interval_;
/**
* string interval = 1;
* @return The interval.
*/
@java.lang.Override
public java.lang.String getInterval() {
java.lang.Object ref = interval_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
interval_ = s;
return s;
}
}
/**
* string interval = 1;
* @return The bytes for interval.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIntervalBytes() {
java.lang.Object ref = interval_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
interval_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPEN_FIELD_NUMBER = 2;
private double open_;
/**
* double open = 2;
* @return The open.
*/
@java.lang.Override
public double getOpen() {
return open_;
}
public static final int HIGH_FIELD_NUMBER = 3;
private double high_;
/**
* double high = 3;
* @return The high.
*/
@java.lang.Override
public double getHigh() {
return high_;
}
public static final int LOW_FIELD_NUMBER = 4;
private double low_;
/**
* double low = 4;
* @return The low.
*/
@java.lang.Override
public double getLow() {
return low_;
}
public static final int CLOSE_FIELD_NUMBER = 5;
private double close_;
/**
* double close = 5;
* @return The close.
*/
@java.lang.Override
public double getClose() {
return close_;
}
public static final int VOLUME_FIELD_NUMBER = 6;
private int volume_;
/**
* int32 volume = 6;
* @return The volume.
*/
@java.lang.Override
public int getVolume() {
return volume_;
}
public static final int TS_FIELD_NUMBER = 7;
private long ts_;
/**
* int64 ts = 7;
* @return The ts.
*/
@java.lang.Override
public long getTs() {
return ts_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getIntervalBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, interval_);
}
if (open_ != 0D) {
output.writeDouble(2, open_);
}
if (high_ != 0D) {
output.writeDouble(3, high_);
}
if (low_ != 0D) {
output.writeDouble(4, low_);
}
if (close_ != 0D) {
output.writeDouble(5, close_);
}
if (volume_ != 0) {
output.writeInt32(6, volume_);
}
if (ts_ != 0L) {
output.writeInt64(7, ts_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getIntervalBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, interval_);
}
if (open_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, open_);
}
if (high_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, high_);
}
if (low_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, low_);
}
if (close_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, close_);
}
if (volume_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, volume_);
}
if (ts_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, ts_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC)) {
return super.equals(obj);
}
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC other = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC) obj;
if (!getInterval()
.equals(other.getInterval())) return false;
if (java.lang.Double.doubleToLongBits(getOpen())
!= java.lang.Double.doubleToLongBits(
other.getOpen())) return false;
if (java.lang.Double.doubleToLongBits(getHigh())
!= java.lang.Double.doubleToLongBits(
other.getHigh())) return false;
if (java.lang.Double.doubleToLongBits(getLow())
!= java.lang.Double.doubleToLongBits(
other.getLow())) return false;
if (java.lang.Double.doubleToLongBits(getClose())
!= java.lang.Double.doubleToLongBits(
other.getClose())) return false;
if (getVolume()
!= other.getVolume()) return false;
if (getTs()
!= other.getTs()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + INTERVAL_FIELD_NUMBER;
hash = (53 * hash) + getInterval().hashCode();
hash = (37 * hash) + OPEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getOpen()));
hash = (37 * hash) + HIGH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getHigh()));
hash = (37 * hash) + LOW_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLow()));
hash = (37 * hash) + CLOSE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getClose()));
hash = (37 * hash) + VOLUME_FIELD_NUMBER;
hash = (53 * hash) + getVolume();
hash = (37 * hash) + TS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTs());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.OHLC}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.upstox.marketdatafeeder.rpc.proto.OHLC)
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLCOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OHLC_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OHLC_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.Builder.class);
}
// Construct using com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
interval_ = "";
open_ = 0D;
high_ = 0D;
low_ = 0D;
close_ = 0D;
volume_ = 0;
ts_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_OHLC_descriptor;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC getDefaultInstanceForType() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.getDefaultInstance();
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC build() {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC buildPartial() {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC result = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC(this);
result.interval_ = interval_;
result.open_ = open_;
result.high_ = high_;
result.low_ = low_;
result.close_ = close_;
result.volume_ = volume_;
result.ts_ = ts_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC) {
return mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC other) {
if (other == com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC.getDefaultInstance()) return this;
if (!other.getInterval().isEmpty()) {
interval_ = other.interval_;
onChanged();
}
if (other.getOpen() != 0D) {
setOpen(other.getOpen());
}
if (other.getHigh() != 0D) {
setHigh(other.getHigh());
}
if (other.getLow() != 0D) {
setLow(other.getLow());
}
if (other.getClose() != 0D) {
setClose(other.getClose());
}
if (other.getVolume() != 0) {
setVolume(other.getVolume());
}
if (other.getTs() != 0L) {
setTs(other.getTs());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object interval_ = "";
/**
* string interval = 1;
* @return The interval.
*/
public java.lang.String getInterval() {
java.lang.Object ref = interval_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
interval_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string interval = 1;
* @return The bytes for interval.
*/
public com.google.protobuf.ByteString
getIntervalBytes() {
java.lang.Object ref = interval_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
interval_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string interval = 1;
* @param value The interval to set.
* @return This builder for chaining.
*/
public Builder setInterval(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
interval_ = value;
onChanged();
return this;
}
/**
* string interval = 1;
* @return This builder for chaining.
*/
public Builder clearInterval() {
interval_ = getDefaultInstance().getInterval();
onChanged();
return this;
}
/**
* string interval = 1;
* @param value The bytes for interval to set.
* @return This builder for chaining.
*/
public Builder setIntervalBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
interval_ = value;
onChanged();
return this;
}
private double open_ ;
/**
* double open = 2;
* @return The open.
*/
@java.lang.Override
public double getOpen() {
return open_;
}
/**
* double open = 2;
* @param value The open to set.
* @return This builder for chaining.
*/
public Builder setOpen(double value) {
open_ = value;
onChanged();
return this;
}
/**
* double open = 2;
* @return This builder for chaining.
*/
public Builder clearOpen() {
open_ = 0D;
onChanged();
return this;
}
private double high_ ;
/**
* double high = 3;
* @return The high.
*/
@java.lang.Override
public double getHigh() {
return high_;
}
/**
* double high = 3;
* @param value The high to set.
* @return This builder for chaining.
*/
public Builder setHigh(double value) {
high_ = value;
onChanged();
return this;
}
/**
* double high = 3;
* @return This builder for chaining.
*/
public Builder clearHigh() {
high_ = 0D;
onChanged();
return this;
}
private double low_ ;
/**
* double low = 4;
* @return The low.
*/
@java.lang.Override
public double getLow() {
return low_;
}
/**
* double low = 4;
* @param value The low to set.
* @return This builder for chaining.
*/
public Builder setLow(double value) {
low_ = value;
onChanged();
return this;
}
/**
* double low = 4;
* @return This builder for chaining.
*/
public Builder clearLow() {
low_ = 0D;
onChanged();
return this;
}
private double close_ ;
/**
* double close = 5;
* @return The close.
*/
@java.lang.Override
public double getClose() {
return close_;
}
/**
* double close = 5;
* @param value The close to set.
* @return This builder for chaining.
*/
public Builder setClose(double value) {
close_ = value;
onChanged();
return this;
}
/**
* double close = 5;
* @return This builder for chaining.
*/
public Builder clearClose() {
close_ = 0D;
onChanged();
return this;
}
private int volume_ ;
/**
* int32 volume = 6;
* @return The volume.
*/
@java.lang.Override
public int getVolume() {
return volume_;
}
/**
* int32 volume = 6;
* @param value The volume to set.
* @return This builder for chaining.
*/
public Builder setVolume(int value) {
volume_ = value;
onChanged();
return this;
}
/**
* int32 volume = 6;
* @return This builder for chaining.
*/
public Builder clearVolume() {
volume_ = 0;
onChanged();
return this;
}
private long ts_ ;
/**
* int64 ts = 7;
* @return The ts.
*/
@java.lang.Override
public long getTs() {
return ts_;
}
/**
* int64 ts = 7;
* @param value The ts to set.
* @return This builder for chaining.
*/
public Builder setTs(long value) {
ts_ = value;
onChanged();
return this;
}
/**
* int64 ts = 7;
* @return This builder for chaining.
*/
public Builder clearTs() {
ts_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.OHLC)
}
// @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.OHLC)
private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC();
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OHLC parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OHLC(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OHLC getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MarketFullFeedOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed)
com.google.protobuf.MessageOrBuilder {
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
* @return Whether the ltpc field is set.
*/
boolean hasLtpc();
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
* @return The ltpc.
*/
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getLtpc();
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
*/
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder getLtpcOrBuilder();
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2;
* @return Whether the marketLevel field is set.
*/
boolean hasMarketLevel();
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2;
* @return The marketLevel.
*/
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel getMarketLevel();
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2;
*/
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevelOrBuilder getMarketLevelOrBuilder();
/**
* .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3;
* @return Whether the optionGreeks field is set.
*/
boolean hasOptionGreeks();
/**
* .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3;
* @return The optionGreeks.
*/
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks getOptionGreeks();
/**
* .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3;
*/
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder getOptionGreeksOrBuilder();
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4;
* @return Whether the marketOHLC field is set.
*/
boolean hasMarketOHLC();
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4;
* @return The marketOHLC.
*/
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC getMarketOHLC();
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4;
*/
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder getMarketOHLCOrBuilder();
/**
* .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5;
* @return Whether the eFeedDetails field is set.
*/
boolean hasEFeedDetails();
/**
* .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5;
* @return The eFeedDetails.
*/
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails getEFeedDetails();
/**
* .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5;
*/
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetailsOrBuilder getEFeedDetailsOrBuilder();
}
/**
* Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed}
*/
public static final class MarketFullFeed extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed)
MarketFullFeedOrBuilder {
private static final long serialVersionUID = 0L;
// Use MarketFullFeed.newBuilder() to construct.
private MarketFullFeed(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MarketFullFeed() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MarketFullFeed();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MarketFullFeed(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder subBuilder = null;
if (ltpc_ != null) {
subBuilder = ltpc_.toBuilder();
}
ltpc_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ltpc_);
ltpc_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.Builder subBuilder = null;
if (marketLevel_ != null) {
subBuilder = marketLevel_.toBuilder();
}
marketLevel_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(marketLevel_);
marketLevel_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder subBuilder = null;
if (optionGreeks_ != null) {
subBuilder = optionGreeks_.toBuilder();
}
optionGreeks_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(optionGreeks_);
optionGreeks_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder subBuilder = null;
if (marketOHLC_ != null) {
subBuilder = marketOHLC_.toBuilder();
}
marketOHLC_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(marketOHLC_);
marketOHLC_ = subBuilder.buildPartial();
}
break;
}
case 42: {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder subBuilder = null;
if (eFeedDetails_ != null) {
subBuilder = eFeedDetails_.toBuilder();
}
eFeedDetails_ = input.readMessage(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(eFeedDetails_);
eFeedDetails_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketFullFeed_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketFullFeed_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.Builder.class);
}
public static final int LTPC_FIELD_NUMBER = 1;
private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC ltpc_;
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
* @return Whether the ltpc field is set.
*/
@java.lang.Override
public boolean hasLtpc() {
return ltpc_ != null;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
* @return The ltpc.
*/
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getLtpc() {
return ltpc_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance() : ltpc_;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
*/
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder getLtpcOrBuilder() {
return getLtpc();
}
public static final int MARKETLEVEL_FIELD_NUMBER = 2;
private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel marketLevel_;
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2;
* @return Whether the marketLevel field is set.
*/
@java.lang.Override
public boolean hasMarketLevel() {
return marketLevel_ != null;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2;
* @return The marketLevel.
*/
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel getMarketLevel() {
return marketLevel_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.getDefaultInstance() : marketLevel_;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2;
*/
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevelOrBuilder getMarketLevelOrBuilder() {
return getMarketLevel();
}
public static final int OPTIONGREEKS_FIELD_NUMBER = 3;
private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks optionGreeks_;
/**
* .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3;
* @return Whether the optionGreeks field is set.
*/
@java.lang.Override
public boolean hasOptionGreeks() {
return optionGreeks_ != null;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3;
* @return The optionGreeks.
*/
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks getOptionGreeks() {
return optionGreeks_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.getDefaultInstance() : optionGreeks_;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3;
*/
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder getOptionGreeksOrBuilder() {
return getOptionGreeks();
}
public static final int MARKETOHLC_FIELD_NUMBER = 4;
private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC marketOHLC_;
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4;
* @return Whether the marketOHLC field is set.
*/
@java.lang.Override
public boolean hasMarketOHLC() {
return marketOHLC_ != null;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4;
* @return The marketOHLC.
*/
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC getMarketOHLC() {
return marketOHLC_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.getDefaultInstance() : marketOHLC_;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4;
*/
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder getMarketOHLCOrBuilder() {
return getMarketOHLC();
}
public static final int EFEEDDETAILS_FIELD_NUMBER = 5;
private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails eFeedDetails_;
/**
* .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5;
* @return Whether the eFeedDetails field is set.
*/
@java.lang.Override
public boolean hasEFeedDetails() {
return eFeedDetails_ != null;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5;
* @return The eFeedDetails.
*/
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails getEFeedDetails() {
return eFeedDetails_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.getDefaultInstance() : eFeedDetails_;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5;
*/
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetailsOrBuilder getEFeedDetailsOrBuilder() {
return getEFeedDetails();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (ltpc_ != null) {
output.writeMessage(1, getLtpc());
}
if (marketLevel_ != null) {
output.writeMessage(2, getMarketLevel());
}
if (optionGreeks_ != null) {
output.writeMessage(3, getOptionGreeks());
}
if (marketOHLC_ != null) {
output.writeMessage(4, getMarketOHLC());
}
if (eFeedDetails_ != null) {
output.writeMessage(5, getEFeedDetails());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (ltpc_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLtpc());
}
if (marketLevel_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMarketLevel());
}
if (optionGreeks_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getOptionGreeks());
}
if (marketOHLC_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getMarketOHLC());
}
if (eFeedDetails_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getEFeedDetails());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed)) {
return super.equals(obj);
}
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed other = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed) obj;
if (hasLtpc() != other.hasLtpc()) return false;
if (hasLtpc()) {
if (!getLtpc()
.equals(other.getLtpc())) return false;
}
if (hasMarketLevel() != other.hasMarketLevel()) return false;
if (hasMarketLevel()) {
if (!getMarketLevel()
.equals(other.getMarketLevel())) return false;
}
if (hasOptionGreeks() != other.hasOptionGreeks()) return false;
if (hasOptionGreeks()) {
if (!getOptionGreeks()
.equals(other.getOptionGreeks())) return false;
}
if (hasMarketOHLC() != other.hasMarketOHLC()) return false;
if (hasMarketOHLC()) {
if (!getMarketOHLC()
.equals(other.getMarketOHLC())) return false;
}
if (hasEFeedDetails() != other.hasEFeedDetails()) return false;
if (hasEFeedDetails()) {
if (!getEFeedDetails()
.equals(other.getEFeedDetails())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasLtpc()) {
hash = (37 * hash) + LTPC_FIELD_NUMBER;
hash = (53 * hash) + getLtpc().hashCode();
}
if (hasMarketLevel()) {
hash = (37 * hash) + MARKETLEVEL_FIELD_NUMBER;
hash = (53 * hash) + getMarketLevel().hashCode();
}
if (hasOptionGreeks()) {
hash = (37 * hash) + OPTIONGREEKS_FIELD_NUMBER;
hash = (53 * hash) + getOptionGreeks().hashCode();
}
if (hasMarketOHLC()) {
hash = (37 * hash) + MARKETOHLC_FIELD_NUMBER;
hash = (53 * hash) + getMarketOHLC().hashCode();
}
if (hasEFeedDetails()) {
hash = (37 * hash) + EFEEDDETAILS_FIELD_NUMBER;
hash = (53 * hash) + getEFeedDetails().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed)
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketFullFeed_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketFullFeed_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.class, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.Builder.class);
}
// Construct using com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (ltpcBuilder_ == null) {
ltpc_ = null;
} else {
ltpc_ = null;
ltpcBuilder_ = null;
}
if (marketLevelBuilder_ == null) {
marketLevel_ = null;
} else {
marketLevel_ = null;
marketLevelBuilder_ = null;
}
if (optionGreeksBuilder_ == null) {
optionGreeks_ = null;
} else {
optionGreeks_ = null;
optionGreeksBuilder_ = null;
}
if (marketOHLCBuilder_ == null) {
marketOHLC_ = null;
} else {
marketOHLC_ = null;
marketOHLCBuilder_ = null;
}
if (eFeedDetailsBuilder_ == null) {
eFeedDetails_ = null;
} else {
eFeedDetails_ = null;
eFeedDetailsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.internal_static_com_upstox_marketdatafeeder_rpc_proto_MarketFullFeed_descriptor;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed getDefaultInstanceForType() {
return com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.getDefaultInstance();
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed build() {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed buildPartial() {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed result = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed(this);
if (ltpcBuilder_ == null) {
result.ltpc_ = ltpc_;
} else {
result.ltpc_ = ltpcBuilder_.build();
}
if (marketLevelBuilder_ == null) {
result.marketLevel_ = marketLevel_;
} else {
result.marketLevel_ = marketLevelBuilder_.build();
}
if (optionGreeksBuilder_ == null) {
result.optionGreeks_ = optionGreeks_;
} else {
result.optionGreeks_ = optionGreeksBuilder_.build();
}
if (marketOHLCBuilder_ == null) {
result.marketOHLC_ = marketOHLC_;
} else {
result.marketOHLC_ = marketOHLCBuilder_.build();
}
if (eFeedDetailsBuilder_ == null) {
result.eFeedDetails_ = eFeedDetails_;
} else {
result.eFeedDetails_ = eFeedDetailsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed) {
return mergeFrom((com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed other) {
if (other == com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed.getDefaultInstance()) return this;
if (other.hasLtpc()) {
mergeLtpc(other.getLtpc());
}
if (other.hasMarketLevel()) {
mergeMarketLevel(other.getMarketLevel());
}
if (other.hasOptionGreeks()) {
mergeOptionGreeks(other.getOptionGreeks());
}
if (other.hasMarketOHLC()) {
mergeMarketOHLC(other.getMarketOHLC());
}
if (other.hasEFeedDetails()) {
mergeEFeedDetails(other.getEFeedDetails());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC ltpc_;
private com.google.protobuf.SingleFieldBuilderV3<
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder> ltpcBuilder_;
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
* @return Whether the ltpc field is set.
*/
public boolean hasLtpc() {
return ltpcBuilder_ != null || ltpc_ != null;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
* @return The ltpc.
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getLtpc() {
if (ltpcBuilder_ == null) {
return ltpc_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance() : ltpc_;
} else {
return ltpcBuilder_.getMessage();
}
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
*/
public Builder setLtpc(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC value) {
if (ltpcBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ltpc_ = value;
onChanged();
} else {
ltpcBuilder_.setMessage(value);
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
*/
public Builder setLtpc(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder builderForValue) {
if (ltpcBuilder_ == null) {
ltpc_ = builderForValue.build();
onChanged();
} else {
ltpcBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
*/
public Builder mergeLtpc(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC value) {
if (ltpcBuilder_ == null) {
if (ltpc_ != null) {
ltpc_ =
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.newBuilder(ltpc_).mergeFrom(value).buildPartial();
} else {
ltpc_ = value;
}
onChanged();
} else {
ltpcBuilder_.mergeFrom(value);
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
*/
public Builder clearLtpc() {
if (ltpcBuilder_ == null) {
ltpc_ = null;
onChanged();
} else {
ltpc_ = null;
ltpcBuilder_ = null;
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder getLtpcBuilder() {
onChanged();
return getLtpcFieldBuilder().getBuilder();
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder getLtpcOrBuilder() {
if (ltpcBuilder_ != null) {
return ltpcBuilder_.getMessageOrBuilder();
} else {
return ltpc_ == null ?
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.getDefaultInstance() : ltpc_;
}
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder>
getLtpcFieldBuilder() {
if (ltpcBuilder_ == null) {
ltpcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder>(
getLtpc(),
getParentForChildren(),
isClean());
ltpc_ = null;
}
return ltpcBuilder_;
}
private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel marketLevel_;
private com.google.protobuf.SingleFieldBuilderV3<
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevelOrBuilder> marketLevelBuilder_;
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2;
* @return Whether the marketLevel field is set.
*/
public boolean hasMarketLevel() {
return marketLevelBuilder_ != null || marketLevel_ != null;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2;
* @return The marketLevel.
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel getMarketLevel() {
if (marketLevelBuilder_ == null) {
return marketLevel_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.getDefaultInstance() : marketLevel_;
} else {
return marketLevelBuilder_.getMessage();
}
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2;
*/
public Builder setMarketLevel(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel value) {
if (marketLevelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
marketLevel_ = value;
onChanged();
} else {
marketLevelBuilder_.setMessage(value);
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2;
*/
public Builder setMarketLevel(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.Builder builderForValue) {
if (marketLevelBuilder_ == null) {
marketLevel_ = builderForValue.build();
onChanged();
} else {
marketLevelBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2;
*/
public Builder mergeMarketLevel(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel value) {
if (marketLevelBuilder_ == null) {
if (marketLevel_ != null) {
marketLevel_ =
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.newBuilder(marketLevel_).mergeFrom(value).buildPartial();
} else {
marketLevel_ = value;
}
onChanged();
} else {
marketLevelBuilder_.mergeFrom(value);
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2;
*/
public Builder clearMarketLevel() {
if (marketLevelBuilder_ == null) {
marketLevel_ = null;
onChanged();
} else {
marketLevel_ = null;
marketLevelBuilder_ = null;
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2;
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.Builder getMarketLevelBuilder() {
onChanged();
return getMarketLevelFieldBuilder().getBuilder();
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2;
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevelOrBuilder getMarketLevelOrBuilder() {
if (marketLevelBuilder_ != null) {
return marketLevelBuilder_.getMessageOrBuilder();
} else {
return marketLevel_ == null ?
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.getDefaultInstance() : marketLevel_;
}
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketLevel marketLevel = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevelOrBuilder>
getMarketLevelFieldBuilder() {
if (marketLevelBuilder_ == null) {
marketLevelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevel.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketLevelOrBuilder>(
getMarketLevel(),
getParentForChildren(),
isClean());
marketLevel_ = null;
}
return marketLevelBuilder_;
}
private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks optionGreeks_;
private com.google.protobuf.SingleFieldBuilderV3<
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder> optionGreeksBuilder_;
/**
* .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3;
* @return Whether the optionGreeks field is set.
*/
public boolean hasOptionGreeks() {
return optionGreeksBuilder_ != null || optionGreeks_ != null;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3;
* @return The optionGreeks.
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks getOptionGreeks() {
if (optionGreeksBuilder_ == null) {
return optionGreeks_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.getDefaultInstance() : optionGreeks_;
} else {
return optionGreeksBuilder_.getMessage();
}
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3;
*/
public Builder setOptionGreeks(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks value) {
if (optionGreeksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionGreeks_ = value;
onChanged();
} else {
optionGreeksBuilder_.setMessage(value);
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3;
*/
public Builder setOptionGreeks(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder builderForValue) {
if (optionGreeksBuilder_ == null) {
optionGreeks_ = builderForValue.build();
onChanged();
} else {
optionGreeksBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3;
*/
public Builder mergeOptionGreeks(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks value) {
if (optionGreeksBuilder_ == null) {
if (optionGreeks_ != null) {
optionGreeks_ =
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.newBuilder(optionGreeks_).mergeFrom(value).buildPartial();
} else {
optionGreeks_ = value;
}
onChanged();
} else {
optionGreeksBuilder_.mergeFrom(value);
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3;
*/
public Builder clearOptionGreeks() {
if (optionGreeksBuilder_ == null) {
optionGreeks_ = null;
onChanged();
} else {
optionGreeks_ = null;
optionGreeksBuilder_ = null;
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3;
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder getOptionGreeksBuilder() {
onChanged();
return getOptionGreeksFieldBuilder().getBuilder();
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3;
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder getOptionGreeksOrBuilder() {
if (optionGreeksBuilder_ != null) {
return optionGreeksBuilder_.getMessageOrBuilder();
} else {
return optionGreeks_ == null ?
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.getDefaultInstance() : optionGreeks_;
}
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.OptionGreeks optionGreeks = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder>
getOptionGreeksFieldBuilder() {
if (optionGreeksBuilder_ == null) {
optionGreeksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeks.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.OptionGreeksOrBuilder>(
getOptionGreeks(),
getParentForChildren(),
isClean());
optionGreeks_ = null;
}
return optionGreeksBuilder_;
}
private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC marketOHLC_;
private com.google.protobuf.SingleFieldBuilderV3<
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder> marketOHLCBuilder_;
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4;
* @return Whether the marketOHLC field is set.
*/
public boolean hasMarketOHLC() {
return marketOHLCBuilder_ != null || marketOHLC_ != null;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4;
* @return The marketOHLC.
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC getMarketOHLC() {
if (marketOHLCBuilder_ == null) {
return marketOHLC_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.getDefaultInstance() : marketOHLC_;
} else {
return marketOHLCBuilder_.getMessage();
}
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4;
*/
public Builder setMarketOHLC(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC value) {
if (marketOHLCBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
marketOHLC_ = value;
onChanged();
} else {
marketOHLCBuilder_.setMessage(value);
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4;
*/
public Builder setMarketOHLC(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder builderForValue) {
if (marketOHLCBuilder_ == null) {
marketOHLC_ = builderForValue.build();
onChanged();
} else {
marketOHLCBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4;
*/
public Builder mergeMarketOHLC(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC value) {
if (marketOHLCBuilder_ == null) {
if (marketOHLC_ != null) {
marketOHLC_ =
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.newBuilder(marketOHLC_).mergeFrom(value).buildPartial();
} else {
marketOHLC_ = value;
}
onChanged();
} else {
marketOHLCBuilder_.mergeFrom(value);
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4;
*/
public Builder clearMarketOHLC() {
if (marketOHLCBuilder_ == null) {
marketOHLC_ = null;
onChanged();
} else {
marketOHLC_ = null;
marketOHLCBuilder_ = null;
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4;
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder getMarketOHLCBuilder() {
onChanged();
return getMarketOHLCFieldBuilder().getBuilder();
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4;
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder getMarketOHLCOrBuilder() {
if (marketOHLCBuilder_ != null) {
return marketOHLCBuilder_.getMessageOrBuilder();
} else {
return marketOHLC_ == null ?
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.getDefaultInstance() : marketOHLC_;
}
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder>
getMarketOHLCFieldBuilder() {
if (marketOHLCBuilder_ == null) {
marketOHLCBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder>(
getMarketOHLC(),
getParentForChildren(),
isClean());
marketOHLC_ = null;
}
return marketOHLCBuilder_;
}
private com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails eFeedDetails_;
private com.google.protobuf.SingleFieldBuilderV3<
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetailsOrBuilder> eFeedDetailsBuilder_;
/**
* .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5;
* @return Whether the eFeedDetails field is set.
*/
public boolean hasEFeedDetails() {
return eFeedDetailsBuilder_ != null || eFeedDetails_ != null;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5;
* @return The eFeedDetails.
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails getEFeedDetails() {
if (eFeedDetailsBuilder_ == null) {
return eFeedDetails_ == null ? com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.getDefaultInstance() : eFeedDetails_;
} else {
return eFeedDetailsBuilder_.getMessage();
}
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5;
*/
public Builder setEFeedDetails(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails value) {
if (eFeedDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
eFeedDetails_ = value;
onChanged();
} else {
eFeedDetailsBuilder_.setMessage(value);
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5;
*/
public Builder setEFeedDetails(
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder builderForValue) {
if (eFeedDetailsBuilder_ == null) {
eFeedDetails_ = builderForValue.build();
onChanged();
} else {
eFeedDetailsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5;
*/
public Builder mergeEFeedDetails(com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails value) {
if (eFeedDetailsBuilder_ == null) {
if (eFeedDetails_ != null) {
eFeedDetails_ =
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.newBuilder(eFeedDetails_).mergeFrom(value).buildPartial();
} else {
eFeedDetails_ = value;
}
onChanged();
} else {
eFeedDetailsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5;
*/
public Builder clearEFeedDetails() {
if (eFeedDetailsBuilder_ == null) {
eFeedDetails_ = null;
onChanged();
} else {
eFeedDetails_ = null;
eFeedDetailsBuilder_ = null;
}
return this;
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5;
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder getEFeedDetailsBuilder() {
onChanged();
return getEFeedDetailsFieldBuilder().getBuilder();
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5;
*/
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetailsOrBuilder getEFeedDetailsOrBuilder() {
if (eFeedDetailsBuilder_ != null) {
return eFeedDetailsBuilder_.getMessageOrBuilder();
} else {
return eFeedDetails_ == null ?
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.getDefaultInstance() : eFeedDetails_;
}
}
/**
* .com.upstox.marketdatafeeder.rpc.proto.ExtendedFeedDetails eFeedDetails = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetailsOrBuilder>
getEFeedDetailsFieldBuilder() {
if (eFeedDetailsBuilder_ == null) {
eFeedDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetails.Builder, com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.ExtendedFeedDetailsOrBuilder>(
getEFeedDetails(),
getParentForChildren(),
isClean());
eFeedDetails_ = null;
}
return eFeedDetailsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed)
}
// @@protoc_insertion_point(class_scope:com.upstox.marketdatafeeder.rpc.proto.MarketFullFeed)
private static final com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed();
}
public static com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MarketFullFeed parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MarketFullFeed(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketFullFeed getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IndexFullFeedOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.upstox.marketdatafeeder.rpc.proto.IndexFullFeed)
com.google.protobuf.MessageOrBuilder {
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
* @return Whether the ltpc field is set.
*/
boolean hasLtpc();
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
* @return The ltpc.
*/
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPC getLtpc();
/**
* .com.upstox.marketdatafeeder.rpc.proto.LTPC ltpc = 1;
*/
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.LTPCOrBuilder getLtpcOrBuilder();
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 2;
* @return Whether the marketOHLC field is set.
*/
boolean hasMarketOHLC();
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 2;
* @return The marketOHLC.
*/
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLC getMarketOHLC();
/**
* .com.upstox.marketdatafeeder.rpc.proto.MarketOHLC marketOHLC = 2;
*/
com.upstox.marketdatafeeder.rpc.proto.MarketDataFeed.MarketOHLCOrBuilder getMarketOHLCOrBuilder();
/**
* double lastClose = 3;
* @return The lastClose.
*/
double getLastClose();
/**
*