org.openfeed.Ohlc Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: openfeed.proto
// Protobuf Java Version: 4.28.3
package org.openfeed;
/**
*
* / Open,High,Low,Close
*
*
* Protobuf type {@code org.openfeed.Ohlc}
*/
public final class Ohlc extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:org.openfeed.Ohlc)
OhlcOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 3,
/* suffix= */ "",
Ohlc.class.getName());
}
// Use Ohlc.newBuilder() to construct.
private Ohlc(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Ohlc() {
symbol_ = "";
tradeIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.Openfeed.internal_static_org_openfeed_Ohlc_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.Openfeed.internal_static_org_openfeed_Ohlc_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.Ohlc.class, org.openfeed.Ohlc.Builder.class);
}
private int bitField0_;
public static final int MARKETID_FIELD_NUMBER = 1;
private long marketId_ = 0L;
/**
* sint64 marketId = 1;
* @return The marketId.
*/
@java.lang.Override
public long getMarketId() {
return marketId_;
}
public static final int SYMBOL_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object symbol_ = "";
/**
* string symbol = 2;
* @return The symbol.
*/
@java.lang.Override
public java.lang.String getSymbol() {
java.lang.Object ref = symbol_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
symbol_ = s;
return s;
}
}
/**
* string symbol = 2;
* @return The bytes for symbol.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSymbolBytes() {
java.lang.Object ref = symbol_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
symbol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPEN_FIELD_NUMBER = 3;
private org.openfeed.Open open_;
/**
* .org.openfeed.Open open = 3;
* @return Whether the open field is set.
*/
@java.lang.Override
public boolean hasOpen() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .org.openfeed.Open open = 3;
* @return The open.
*/
@java.lang.Override
public org.openfeed.Open getOpen() {
return open_ == null ? org.openfeed.Open.getDefaultInstance() : open_;
}
/**
* .org.openfeed.Open open = 3;
*/
@java.lang.Override
public org.openfeed.OpenOrBuilder getOpenOrBuilder() {
return open_ == null ? org.openfeed.Open.getDefaultInstance() : open_;
}
public static final int HIGH_FIELD_NUMBER = 4;
private org.openfeed.High high_;
/**
* .org.openfeed.High high = 4;
* @return Whether the high field is set.
*/
@java.lang.Override
public boolean hasHigh() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .org.openfeed.High high = 4;
* @return The high.
*/
@java.lang.Override
public org.openfeed.High getHigh() {
return high_ == null ? org.openfeed.High.getDefaultInstance() : high_;
}
/**
* .org.openfeed.High high = 4;
*/
@java.lang.Override
public org.openfeed.HighOrBuilder getHighOrBuilder() {
return high_ == null ? org.openfeed.High.getDefaultInstance() : high_;
}
public static final int LOW_FIELD_NUMBER = 5;
private org.openfeed.Low low_;
/**
* .org.openfeed.Low low = 5;
* @return Whether the low field is set.
*/
@java.lang.Override
public boolean hasLow() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .org.openfeed.Low low = 5;
* @return The low.
*/
@java.lang.Override
public org.openfeed.Low getLow() {
return low_ == null ? org.openfeed.Low.getDefaultInstance() : low_;
}
/**
* .org.openfeed.Low low = 5;
*/
@java.lang.Override
public org.openfeed.LowOrBuilder getLowOrBuilder() {
return low_ == null ? org.openfeed.Low.getDefaultInstance() : low_;
}
public static final int CLOSE_FIELD_NUMBER = 6;
private org.openfeed.Close close_;
/**
* .org.openfeed.Close close = 6;
* @return Whether the close field is set.
*/
@java.lang.Override
public boolean hasClose() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .org.openfeed.Close close = 6;
* @return The close.
*/
@java.lang.Override
public org.openfeed.Close getClose() {
return close_ == null ? org.openfeed.Close.getDefaultInstance() : close_;
}
/**
* .org.openfeed.Close close = 6;
*/
@java.lang.Override
public org.openfeed.CloseOrBuilder getCloseOrBuilder() {
return close_ == null ? org.openfeed.Close.getDefaultInstance() : close_;
}
public static final int VOLUME_FIELD_NUMBER = 7;
private long volume_ = 0L;
/**
*
* / Sum of volume
*
*
* sint64 volume = 7;
* @return The volume.
*/
@java.lang.Override
public long getVolume() {
return volume_;
}
public static final int PRICEVOLUME_FIELD_NUMBER = 8;
private double priceVolume_ = 0D;
/**
*
* / Sum of price volume using normalized price
*
*
* double priceVolume = 8;
* @return The priceVolume.
*/
@java.lang.Override
public double getPriceVolume() {
return priceVolume_;
}
public static final int NUMBERTRADES_FIELD_NUMBER = 9;
private long numberTrades_ = 0L;
/**
* sint64 numberTrades = 9;
* @return The numberTrades.
*/
@java.lang.Override
public long getNumberTrades() {
return numberTrades_;
}
public static final int TRADEDATE_FIELD_NUMBER = 10;
private int tradeDate_ = 0;
/**
* sint32 tradeDate = 10;
* @return The tradeDate.
*/
@java.lang.Override
public int getTradeDate() {
return tradeDate_;
}
public static final int TRANSACTIONTIME_FIELD_NUMBER = 11;
private long transactionTime_ = 0L;
/**
*
* / UTC Timestamp, nano seconds since Unix epoch
*
*
* sint64 transactionTime = 11;
* @return The transactionTime.
*/
@java.lang.Override
public long getTransactionTime() {
return transactionTime_;
}
public static final int TRADEIDS_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList tradeIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* / Trade Ids used in this OHLC
*
*
* repeated string tradeIds = 12;
* @return A list containing the tradeIds.
*/
public com.google.protobuf.ProtocolStringList
getTradeIdsList() {
return tradeIds_;
}
/**
*
* / Trade Ids used in this OHLC
*
*
* repeated string tradeIds = 12;
* @return The count of tradeIds.
*/
public int getTradeIdsCount() {
return tradeIds_.size();
}
/**
*
* / Trade Ids used in this OHLC
*
*
* repeated string tradeIds = 12;
* @param index The index of the element to return.
* @return The tradeIds at the given index.
*/
public java.lang.String getTradeIds(int index) {
return tradeIds_.get(index);
}
/**
*
* / Trade Ids used in this OHLC
*
*
* repeated string tradeIds = 12;
* @param index The index of the value to return.
* @return The bytes of the tradeIds at the given index.
*/
public com.google.protobuf.ByteString
getTradeIdsBytes(int index) {
return tradeIds_.getByteString(index);
}
public static final int OPENSTARTTIME_FIELD_NUMBER = 13;
private long openStartTime_ = 0L;
/**
* sint64 openStartTime = 13;
* @return The openStartTime.
*/
@java.lang.Override
public long getOpenStartTime() {
return openStartTime_;
}
public static final int CLOSEENDTIME_FIELD_NUMBER = 14;
private long closeEndTime_ = 0L;
/**
* sint64 closeEndTime = 14;
* @return The closeEndTime.
*/
@java.lang.Override
public long getCloseEndTime() {
return closeEndTime_;
}
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 (marketId_ != 0L) {
output.writeSInt64(1, marketId_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(symbol_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, symbol_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getOpen());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getHigh());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(5, getLow());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(6, getClose());
}
if (volume_ != 0L) {
output.writeSInt64(7, volume_);
}
if (java.lang.Double.doubleToRawLongBits(priceVolume_) != 0) {
output.writeDouble(8, priceVolume_);
}
if (numberTrades_ != 0L) {
output.writeSInt64(9, numberTrades_);
}
if (tradeDate_ != 0) {
output.writeSInt32(10, tradeDate_);
}
if (transactionTime_ != 0L) {
output.writeSInt64(11, transactionTime_);
}
for (int i = 0; i < tradeIds_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 12, tradeIds_.getRaw(i));
}
if (openStartTime_ != 0L) {
output.writeSInt64(13, openStartTime_);
}
if (closeEndTime_ != 0L) {
output.writeSInt64(14, closeEndTime_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (marketId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(1, marketId_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(symbol_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, symbol_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getOpen());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getHigh());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getLow());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getClose());
}
if (volume_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(7, volume_);
}
if (java.lang.Double.doubleToRawLongBits(priceVolume_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(8, priceVolume_);
}
if (numberTrades_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(9, numberTrades_);
}
if (tradeDate_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(10, tradeDate_);
}
if (transactionTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(11, transactionTime_);
}
{
int dataSize = 0;
for (int i = 0; i < tradeIds_.size(); i++) {
dataSize += computeStringSizeNoTag(tradeIds_.getRaw(i));
}
size += dataSize;
size += 1 * getTradeIdsList().size();
}
if (openStartTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(13, openStartTime_);
}
if (closeEndTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(14, closeEndTime_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.openfeed.Ohlc)) {
return super.equals(obj);
}
org.openfeed.Ohlc other = (org.openfeed.Ohlc) obj;
if (getMarketId()
!= other.getMarketId()) return false;
if (!getSymbol()
.equals(other.getSymbol())) return false;
if (hasOpen() != other.hasOpen()) return false;
if (hasOpen()) {
if (!getOpen()
.equals(other.getOpen())) return false;
}
if (hasHigh() != other.hasHigh()) return false;
if (hasHigh()) {
if (!getHigh()
.equals(other.getHigh())) return false;
}
if (hasLow() != other.hasLow()) return false;
if (hasLow()) {
if (!getLow()
.equals(other.getLow())) return false;
}
if (hasClose() != other.hasClose()) return false;
if (hasClose()) {
if (!getClose()
.equals(other.getClose())) return false;
}
if (getVolume()
!= other.getVolume()) return false;
if (java.lang.Double.doubleToLongBits(getPriceVolume())
!= java.lang.Double.doubleToLongBits(
other.getPriceVolume())) return false;
if (getNumberTrades()
!= other.getNumberTrades()) return false;
if (getTradeDate()
!= other.getTradeDate()) return false;
if (getTransactionTime()
!= other.getTransactionTime()) return false;
if (!getTradeIdsList()
.equals(other.getTradeIdsList())) return false;
if (getOpenStartTime()
!= other.getOpenStartTime()) return false;
if (getCloseEndTime()
!= other.getCloseEndTime()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MARKETID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMarketId());
hash = (37 * hash) + SYMBOL_FIELD_NUMBER;
hash = (53 * hash) + getSymbol().hashCode();
if (hasOpen()) {
hash = (37 * hash) + OPEN_FIELD_NUMBER;
hash = (53 * hash) + getOpen().hashCode();
}
if (hasHigh()) {
hash = (37 * hash) + HIGH_FIELD_NUMBER;
hash = (53 * hash) + getHigh().hashCode();
}
if (hasLow()) {
hash = (37 * hash) + LOW_FIELD_NUMBER;
hash = (53 * hash) + getLow().hashCode();
}
if (hasClose()) {
hash = (37 * hash) + CLOSE_FIELD_NUMBER;
hash = (53 * hash) + getClose().hashCode();
}
hash = (37 * hash) + VOLUME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getVolume());
hash = (37 * hash) + PRICEVOLUME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getPriceVolume()));
hash = (37 * hash) + NUMBERTRADES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNumberTrades());
hash = (37 * hash) + TRADEDATE_FIELD_NUMBER;
hash = (53 * hash) + getTradeDate();
hash = (37 * hash) + TRANSACTIONTIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTransactionTime());
if (getTradeIdsCount() > 0) {
hash = (37 * hash) + TRADEIDS_FIELD_NUMBER;
hash = (53 * hash) + getTradeIdsList().hashCode();
}
hash = (37 * hash) + OPENSTARTTIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOpenStartTime());
hash = (37 * hash) + CLOSEENDTIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCloseEndTime());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.openfeed.Ohlc parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.Ohlc parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.Ohlc parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.Ohlc parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.Ohlc parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openfeed.Ohlc parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openfeed.Ohlc parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.Ohlc parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.openfeed.Ohlc parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.openfeed.Ohlc parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.openfeed.Ohlc parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.openfeed.Ohlc parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.openfeed.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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* / Open,High,Low,Close
*
*
* Protobuf type {@code org.openfeed.Ohlc}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:org.openfeed.Ohlc)
org.openfeed.OhlcOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openfeed.Openfeed.internal_static_org_openfeed_Ohlc_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openfeed.Openfeed.internal_static_org_openfeed_Ohlc_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openfeed.Ohlc.class, org.openfeed.Ohlc.Builder.class);
}
// Construct using org.openfeed.Ohlc.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getOpenFieldBuilder();
getHighFieldBuilder();
getLowFieldBuilder();
getCloseFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
marketId_ = 0L;
symbol_ = "";
open_ = null;
if (openBuilder_ != null) {
openBuilder_.dispose();
openBuilder_ = null;
}
high_ = null;
if (highBuilder_ != null) {
highBuilder_.dispose();
highBuilder_ = null;
}
low_ = null;
if (lowBuilder_ != null) {
lowBuilder_.dispose();
lowBuilder_ = null;
}
close_ = null;
if (closeBuilder_ != null) {
closeBuilder_.dispose();
closeBuilder_ = null;
}
volume_ = 0L;
priceVolume_ = 0D;
numberTrades_ = 0L;
tradeDate_ = 0;
transactionTime_ = 0L;
tradeIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
openStartTime_ = 0L;
closeEndTime_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.openfeed.Openfeed.internal_static_org_openfeed_Ohlc_descriptor;
}
@java.lang.Override
public org.openfeed.Ohlc getDefaultInstanceForType() {
return org.openfeed.Ohlc.getDefaultInstance();
}
@java.lang.Override
public org.openfeed.Ohlc build() {
org.openfeed.Ohlc result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.openfeed.Ohlc buildPartial() {
org.openfeed.Ohlc result = new org.openfeed.Ohlc(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.openfeed.Ohlc result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.marketId_ = marketId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.symbol_ = symbol_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.open_ = openBuilder_ == null
? open_
: openBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.high_ = highBuilder_ == null
? high_
: highBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.low_ = lowBuilder_ == null
? low_
: lowBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.close_ = closeBuilder_ == null
? close_
: closeBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.volume_ = volume_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.priceVolume_ = priceVolume_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.numberTrades_ = numberTrades_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.tradeDate_ = tradeDate_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.transactionTime_ = transactionTime_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
tradeIds_.makeImmutable();
result.tradeIds_ = tradeIds_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.openStartTime_ = openStartTime_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.closeEndTime_ = closeEndTime_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.openfeed.Ohlc) {
return mergeFrom((org.openfeed.Ohlc)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openfeed.Ohlc other) {
if (other == org.openfeed.Ohlc.getDefaultInstance()) return this;
if (other.getMarketId() != 0L) {
setMarketId(other.getMarketId());
}
if (!other.getSymbol().isEmpty()) {
symbol_ = other.symbol_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasOpen()) {
mergeOpen(other.getOpen());
}
if (other.hasHigh()) {
mergeHigh(other.getHigh());
}
if (other.hasLow()) {
mergeLow(other.getLow());
}
if (other.hasClose()) {
mergeClose(other.getClose());
}
if (other.getVolume() != 0L) {
setVolume(other.getVolume());
}
if (other.getPriceVolume() != 0D) {
setPriceVolume(other.getPriceVolume());
}
if (other.getNumberTrades() != 0L) {
setNumberTrades(other.getNumberTrades());
}
if (other.getTradeDate() != 0) {
setTradeDate(other.getTradeDate());
}
if (other.getTransactionTime() != 0L) {
setTransactionTime(other.getTransactionTime());
}
if (!other.tradeIds_.isEmpty()) {
if (tradeIds_.isEmpty()) {
tradeIds_ = other.tradeIds_;
bitField0_ |= 0x00000800;
} else {
ensureTradeIdsIsMutable();
tradeIds_.addAll(other.tradeIds_);
}
onChanged();
}
if (other.getOpenStartTime() != 0L) {
setOpenStartTime(other.getOpenStartTime());
}
if (other.getCloseEndTime() != 0L) {
setCloseEndTime(other.getCloseEndTime());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
marketId_ = input.readSInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
symbol_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getOpenFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getHighFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getLowFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getCloseFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 56: {
volume_ = input.readSInt64();
bitField0_ |= 0x00000040;
break;
} // case 56
case 65: {
priceVolume_ = input.readDouble();
bitField0_ |= 0x00000080;
break;
} // case 65
case 72: {
numberTrades_ = input.readSInt64();
bitField0_ |= 0x00000100;
break;
} // case 72
case 80: {
tradeDate_ = input.readSInt32();
bitField0_ |= 0x00000200;
break;
} // case 80
case 88: {
transactionTime_ = input.readSInt64();
bitField0_ |= 0x00000400;
break;
} // case 88
case 98: {
java.lang.String s = input.readStringRequireUtf8();
ensureTradeIdsIsMutable();
tradeIds_.add(s);
break;
} // case 98
case 104: {
openStartTime_ = input.readSInt64();
bitField0_ |= 0x00001000;
break;
} // case 104
case 112: {
closeEndTime_ = input.readSInt64();
bitField0_ |= 0x00002000;
break;
} // case 112
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long marketId_ ;
/**
* sint64 marketId = 1;
* @return The marketId.
*/
@java.lang.Override
public long getMarketId() {
return marketId_;
}
/**
* sint64 marketId = 1;
* @param value The marketId to set.
* @return This builder for chaining.
*/
public Builder setMarketId(long value) {
marketId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* sint64 marketId = 1;
* @return This builder for chaining.
*/
public Builder clearMarketId() {
bitField0_ = (bitField0_ & ~0x00000001);
marketId_ = 0L;
onChanged();
return this;
}
private java.lang.Object symbol_ = "";
/**
* string symbol = 2;
* @return The symbol.
*/
public java.lang.String getSymbol() {
java.lang.Object ref = symbol_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
symbol_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string symbol = 2;
* @return The bytes for symbol.
*/
public com.google.protobuf.ByteString
getSymbolBytes() {
java.lang.Object ref = symbol_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
symbol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string symbol = 2;
* @param value The symbol to set.
* @return This builder for chaining.
*/
public Builder setSymbol(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
symbol_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string symbol = 2;
* @return This builder for chaining.
*/
public Builder clearSymbol() {
symbol_ = getDefaultInstance().getSymbol();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string symbol = 2;
* @param value The bytes for symbol to set.
* @return This builder for chaining.
*/
public Builder setSymbolBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
symbol_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private org.openfeed.Open open_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Open, org.openfeed.Open.Builder, org.openfeed.OpenOrBuilder> openBuilder_;
/**
* .org.openfeed.Open open = 3;
* @return Whether the open field is set.
*/
public boolean hasOpen() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .org.openfeed.Open open = 3;
* @return The open.
*/
public org.openfeed.Open getOpen() {
if (openBuilder_ == null) {
return open_ == null ? org.openfeed.Open.getDefaultInstance() : open_;
} else {
return openBuilder_.getMessage();
}
}
/**
* .org.openfeed.Open open = 3;
*/
public Builder setOpen(org.openfeed.Open value) {
if (openBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
open_ = value;
} else {
openBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .org.openfeed.Open open = 3;
*/
public Builder setOpen(
org.openfeed.Open.Builder builderForValue) {
if (openBuilder_ == null) {
open_ = builderForValue.build();
} else {
openBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .org.openfeed.Open open = 3;
*/
public Builder mergeOpen(org.openfeed.Open value) {
if (openBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
open_ != null &&
open_ != org.openfeed.Open.getDefaultInstance()) {
getOpenBuilder().mergeFrom(value);
} else {
open_ = value;
}
} else {
openBuilder_.mergeFrom(value);
}
if (open_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .org.openfeed.Open open = 3;
*/
public Builder clearOpen() {
bitField0_ = (bitField0_ & ~0x00000004);
open_ = null;
if (openBuilder_ != null) {
openBuilder_.dispose();
openBuilder_ = null;
}
onChanged();
return this;
}
/**
* .org.openfeed.Open open = 3;
*/
public org.openfeed.Open.Builder getOpenBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getOpenFieldBuilder().getBuilder();
}
/**
* .org.openfeed.Open open = 3;
*/
public org.openfeed.OpenOrBuilder getOpenOrBuilder() {
if (openBuilder_ != null) {
return openBuilder_.getMessageOrBuilder();
} else {
return open_ == null ?
org.openfeed.Open.getDefaultInstance() : open_;
}
}
/**
* .org.openfeed.Open open = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Open, org.openfeed.Open.Builder, org.openfeed.OpenOrBuilder>
getOpenFieldBuilder() {
if (openBuilder_ == null) {
openBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.Open, org.openfeed.Open.Builder, org.openfeed.OpenOrBuilder>(
getOpen(),
getParentForChildren(),
isClean());
open_ = null;
}
return openBuilder_;
}
private org.openfeed.High high_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.High, org.openfeed.High.Builder, org.openfeed.HighOrBuilder> highBuilder_;
/**
* .org.openfeed.High high = 4;
* @return Whether the high field is set.
*/
public boolean hasHigh() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .org.openfeed.High high = 4;
* @return The high.
*/
public org.openfeed.High getHigh() {
if (highBuilder_ == null) {
return high_ == null ? org.openfeed.High.getDefaultInstance() : high_;
} else {
return highBuilder_.getMessage();
}
}
/**
* .org.openfeed.High high = 4;
*/
public Builder setHigh(org.openfeed.High value) {
if (highBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
high_ = value;
} else {
highBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .org.openfeed.High high = 4;
*/
public Builder setHigh(
org.openfeed.High.Builder builderForValue) {
if (highBuilder_ == null) {
high_ = builderForValue.build();
} else {
highBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .org.openfeed.High high = 4;
*/
public Builder mergeHigh(org.openfeed.High value) {
if (highBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
high_ != null &&
high_ != org.openfeed.High.getDefaultInstance()) {
getHighBuilder().mergeFrom(value);
} else {
high_ = value;
}
} else {
highBuilder_.mergeFrom(value);
}
if (high_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* .org.openfeed.High high = 4;
*/
public Builder clearHigh() {
bitField0_ = (bitField0_ & ~0x00000008);
high_ = null;
if (highBuilder_ != null) {
highBuilder_.dispose();
highBuilder_ = null;
}
onChanged();
return this;
}
/**
* .org.openfeed.High high = 4;
*/
public org.openfeed.High.Builder getHighBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getHighFieldBuilder().getBuilder();
}
/**
* .org.openfeed.High high = 4;
*/
public org.openfeed.HighOrBuilder getHighOrBuilder() {
if (highBuilder_ != null) {
return highBuilder_.getMessageOrBuilder();
} else {
return high_ == null ?
org.openfeed.High.getDefaultInstance() : high_;
}
}
/**
* .org.openfeed.High high = 4;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.High, org.openfeed.High.Builder, org.openfeed.HighOrBuilder>
getHighFieldBuilder() {
if (highBuilder_ == null) {
highBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.High, org.openfeed.High.Builder, org.openfeed.HighOrBuilder>(
getHigh(),
getParentForChildren(),
isClean());
high_ = null;
}
return highBuilder_;
}
private org.openfeed.Low low_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Low, org.openfeed.Low.Builder, org.openfeed.LowOrBuilder> lowBuilder_;
/**
* .org.openfeed.Low low = 5;
* @return Whether the low field is set.
*/
public boolean hasLow() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* .org.openfeed.Low low = 5;
* @return The low.
*/
public org.openfeed.Low getLow() {
if (lowBuilder_ == null) {
return low_ == null ? org.openfeed.Low.getDefaultInstance() : low_;
} else {
return lowBuilder_.getMessage();
}
}
/**
* .org.openfeed.Low low = 5;
*/
public Builder setLow(org.openfeed.Low value) {
if (lowBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
low_ = value;
} else {
lowBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .org.openfeed.Low low = 5;
*/
public Builder setLow(
org.openfeed.Low.Builder builderForValue) {
if (lowBuilder_ == null) {
low_ = builderForValue.build();
} else {
lowBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .org.openfeed.Low low = 5;
*/
public Builder mergeLow(org.openfeed.Low value) {
if (lowBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
low_ != null &&
low_ != org.openfeed.Low.getDefaultInstance()) {
getLowBuilder().mergeFrom(value);
} else {
low_ = value;
}
} else {
lowBuilder_.mergeFrom(value);
}
if (low_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
* .org.openfeed.Low low = 5;
*/
public Builder clearLow() {
bitField0_ = (bitField0_ & ~0x00000010);
low_ = null;
if (lowBuilder_ != null) {
lowBuilder_.dispose();
lowBuilder_ = null;
}
onChanged();
return this;
}
/**
* .org.openfeed.Low low = 5;
*/
public org.openfeed.Low.Builder getLowBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getLowFieldBuilder().getBuilder();
}
/**
* .org.openfeed.Low low = 5;
*/
public org.openfeed.LowOrBuilder getLowOrBuilder() {
if (lowBuilder_ != null) {
return lowBuilder_.getMessageOrBuilder();
} else {
return low_ == null ?
org.openfeed.Low.getDefaultInstance() : low_;
}
}
/**
* .org.openfeed.Low low = 5;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Low, org.openfeed.Low.Builder, org.openfeed.LowOrBuilder>
getLowFieldBuilder() {
if (lowBuilder_ == null) {
lowBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.Low, org.openfeed.Low.Builder, org.openfeed.LowOrBuilder>(
getLow(),
getParentForChildren(),
isClean());
low_ = null;
}
return lowBuilder_;
}
private org.openfeed.Close close_;
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Close, org.openfeed.Close.Builder, org.openfeed.CloseOrBuilder> closeBuilder_;
/**
* .org.openfeed.Close close = 6;
* @return Whether the close field is set.
*/
public boolean hasClose() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* .org.openfeed.Close close = 6;
* @return The close.
*/
public org.openfeed.Close getClose() {
if (closeBuilder_ == null) {
return close_ == null ? org.openfeed.Close.getDefaultInstance() : close_;
} else {
return closeBuilder_.getMessage();
}
}
/**
* .org.openfeed.Close close = 6;
*/
public Builder setClose(org.openfeed.Close value) {
if (closeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
close_ = value;
} else {
closeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .org.openfeed.Close close = 6;
*/
public Builder setClose(
org.openfeed.Close.Builder builderForValue) {
if (closeBuilder_ == null) {
close_ = builderForValue.build();
} else {
closeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .org.openfeed.Close close = 6;
*/
public Builder mergeClose(org.openfeed.Close value) {
if (closeBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
close_ != null &&
close_ != org.openfeed.Close.getDefaultInstance()) {
getCloseBuilder().mergeFrom(value);
} else {
close_ = value;
}
} else {
closeBuilder_.mergeFrom(value);
}
if (close_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
* .org.openfeed.Close close = 6;
*/
public Builder clearClose() {
bitField0_ = (bitField0_ & ~0x00000020);
close_ = null;
if (closeBuilder_ != null) {
closeBuilder_.dispose();
closeBuilder_ = null;
}
onChanged();
return this;
}
/**
* .org.openfeed.Close close = 6;
*/
public org.openfeed.Close.Builder getCloseBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getCloseFieldBuilder().getBuilder();
}
/**
* .org.openfeed.Close close = 6;
*/
public org.openfeed.CloseOrBuilder getCloseOrBuilder() {
if (closeBuilder_ != null) {
return closeBuilder_.getMessageOrBuilder();
} else {
return close_ == null ?
org.openfeed.Close.getDefaultInstance() : close_;
}
}
/**
* .org.openfeed.Close close = 6;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openfeed.Close, org.openfeed.Close.Builder, org.openfeed.CloseOrBuilder>
getCloseFieldBuilder() {
if (closeBuilder_ == null) {
closeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openfeed.Close, org.openfeed.Close.Builder, org.openfeed.CloseOrBuilder>(
getClose(),
getParentForChildren(),
isClean());
close_ = null;
}
return closeBuilder_;
}
private long volume_ ;
/**
*
* / Sum of volume
*
*
* sint64 volume = 7;
* @return The volume.
*/
@java.lang.Override
public long getVolume() {
return volume_;
}
/**
*
* / Sum of volume
*
*
* sint64 volume = 7;
* @param value The volume to set.
* @return This builder for chaining.
*/
public Builder setVolume(long value) {
volume_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* / Sum of volume
*
*
* sint64 volume = 7;
* @return This builder for chaining.
*/
public Builder clearVolume() {
bitField0_ = (bitField0_ & ~0x00000040);
volume_ = 0L;
onChanged();
return this;
}
private double priceVolume_ ;
/**
*
* / Sum of price volume using normalized price
*
*
* double priceVolume = 8;
* @return The priceVolume.
*/
@java.lang.Override
public double getPriceVolume() {
return priceVolume_;
}
/**
*
* / Sum of price volume using normalized price
*
*
* double priceVolume = 8;
* @param value The priceVolume to set.
* @return This builder for chaining.
*/
public Builder setPriceVolume(double value) {
priceVolume_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* / Sum of price volume using normalized price
*
*
* double priceVolume = 8;
* @return This builder for chaining.
*/
public Builder clearPriceVolume() {
bitField0_ = (bitField0_ & ~0x00000080);
priceVolume_ = 0D;
onChanged();
return this;
}
private long numberTrades_ ;
/**
* sint64 numberTrades = 9;
* @return The numberTrades.
*/
@java.lang.Override
public long getNumberTrades() {
return numberTrades_;
}
/**
* sint64 numberTrades = 9;
* @param value The numberTrades to set.
* @return This builder for chaining.
*/
public Builder setNumberTrades(long value) {
numberTrades_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* sint64 numberTrades = 9;
* @return This builder for chaining.
*/
public Builder clearNumberTrades() {
bitField0_ = (bitField0_ & ~0x00000100);
numberTrades_ = 0L;
onChanged();
return this;
}
private int tradeDate_ ;
/**
* sint32 tradeDate = 10;
* @return The tradeDate.
*/
@java.lang.Override
public int getTradeDate() {
return tradeDate_;
}
/**
* sint32 tradeDate = 10;
* @param value The tradeDate to set.
* @return This builder for chaining.
*/
public Builder setTradeDate(int value) {
tradeDate_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* sint32 tradeDate = 10;
* @return This builder for chaining.
*/
public Builder clearTradeDate() {
bitField0_ = (bitField0_ & ~0x00000200);
tradeDate_ = 0;
onChanged();
return this;
}
private long transactionTime_ ;
/**
*
* / UTC Timestamp, nano seconds since Unix epoch
*
*
* sint64 transactionTime = 11;
* @return The transactionTime.
*/
@java.lang.Override
public long getTransactionTime() {
return transactionTime_;
}
/**
*
* / UTC Timestamp, nano seconds since Unix epoch
*
*
* sint64 transactionTime = 11;
* @param value The transactionTime to set.
* @return This builder for chaining.
*/
public Builder setTransactionTime(long value) {
transactionTime_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* / UTC Timestamp, nano seconds since Unix epoch
*
*
* sint64 transactionTime = 11;
* @return This builder for chaining.
*/
public Builder clearTransactionTime() {
bitField0_ = (bitField0_ & ~0x00000400);
transactionTime_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList tradeIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureTradeIdsIsMutable() {
if (!tradeIds_.isModifiable()) {
tradeIds_ = new com.google.protobuf.LazyStringArrayList(tradeIds_);
}
bitField0_ |= 0x00000800;
}
/**
*
* / Trade Ids used in this OHLC
*
*
* repeated string tradeIds = 12;
* @return A list containing the tradeIds.
*/
public com.google.protobuf.ProtocolStringList
getTradeIdsList() {
tradeIds_.makeImmutable();
return tradeIds_;
}
/**
*
* / Trade Ids used in this OHLC
*
*
* repeated string tradeIds = 12;
* @return The count of tradeIds.
*/
public int getTradeIdsCount() {
return tradeIds_.size();
}
/**
*
* / Trade Ids used in this OHLC
*
*
* repeated string tradeIds = 12;
* @param index The index of the element to return.
* @return The tradeIds at the given index.
*/
public java.lang.String getTradeIds(int index) {
return tradeIds_.get(index);
}
/**
*
* / Trade Ids used in this OHLC
*
*
* repeated string tradeIds = 12;
* @param index The index of the value to return.
* @return The bytes of the tradeIds at the given index.
*/
public com.google.protobuf.ByteString
getTradeIdsBytes(int index) {
return tradeIds_.getByteString(index);
}
/**
*
* / Trade Ids used in this OHLC
*
*
* repeated string tradeIds = 12;
* @param index The index to set the value at.
* @param value The tradeIds to set.
* @return This builder for chaining.
*/
public Builder setTradeIds(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureTradeIdsIsMutable();
tradeIds_.set(index, value);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* / Trade Ids used in this OHLC
*
*
* repeated string tradeIds = 12;
* @param value The tradeIds to add.
* @return This builder for chaining.
*/
public Builder addTradeIds(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureTradeIdsIsMutable();
tradeIds_.add(value);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* / Trade Ids used in this OHLC
*
*
* repeated string tradeIds = 12;
* @param values The tradeIds to add.
* @return This builder for chaining.
*/
public Builder addAllTradeIds(
java.lang.Iterable values) {
ensureTradeIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tradeIds_);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* / Trade Ids used in this OHLC
*
*
* repeated string tradeIds = 12;
* @return This builder for chaining.
*/
public Builder clearTradeIds() {
tradeIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);;
onChanged();
return this;
}
/**
*
* / Trade Ids used in this OHLC
*
*
* repeated string tradeIds = 12;
* @param value The bytes of the tradeIds to add.
* @return This builder for chaining.
*/
public Builder addTradeIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureTradeIdsIsMutable();
tradeIds_.add(value);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
private long openStartTime_ ;
/**
* sint64 openStartTime = 13;
* @return The openStartTime.
*/
@java.lang.Override
public long getOpenStartTime() {
return openStartTime_;
}
/**
* sint64 openStartTime = 13;
* @param value The openStartTime to set.
* @return This builder for chaining.
*/
public Builder setOpenStartTime(long value) {
openStartTime_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* sint64 openStartTime = 13;
* @return This builder for chaining.
*/
public Builder clearOpenStartTime() {
bitField0_ = (bitField0_ & ~0x00001000);
openStartTime_ = 0L;
onChanged();
return this;
}
private long closeEndTime_ ;
/**
* sint64 closeEndTime = 14;
* @return The closeEndTime.
*/
@java.lang.Override
public long getCloseEndTime() {
return closeEndTime_;
}
/**
* sint64 closeEndTime = 14;
* @param value The closeEndTime to set.
* @return This builder for chaining.
*/
public Builder setCloseEndTime(long value) {
closeEndTime_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
* sint64 closeEndTime = 14;
* @return This builder for chaining.
*/
public Builder clearCloseEndTime() {
bitField0_ = (bitField0_ & ~0x00002000);
closeEndTime_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:org.openfeed.Ohlc)
}
// @@protoc_insertion_point(class_scope:org.openfeed.Ohlc)
private static final org.openfeed.Ohlc DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.openfeed.Ohlc();
}
public static org.openfeed.Ohlc getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Ohlc parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.openfeed.Ohlc getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy