main.java.com.streamlayer.inplay.common.Selection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sl-protofiles Show documentation
Show all versions of sl-protofiles Show documentation
StreamLayer Java Protofiles
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: streamlayer/inplay/common/inplay.common.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.inplay.common;
/**
* Protobuf type {@code streamlayer.inplay.common.Selection}
*/
public final class Selection extends
com.google.protobuf.GeneratedMessageLite<
Selection, Selection.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.inplay.common.Selection)
SelectionOrBuilder {
private Selection() {
id_ = "";
name_ = "";
updated_ = "";
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private java.lang.String id_;
/**
* string id = 1 [json_name = "id"];
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
return id_;
}
/**
* string id = 1 [json_name = "id"];
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(id_);
}
/**
* string id = 1 [json_name = "id"];
* @param value The id to set.
*/
private void setId(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
id_ = value;
}
/**
* string id = 1 [json_name = "id"];
*/
private void clearId() {
id_ = getDefaultInstance().getId();
}
/**
* string id = 1 [json_name = "id"];
* @param value The bytes for id to set.
*/
private void setIdBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
id_ = value.toStringUtf8();
}
public static final int NAME_FIELD_NUMBER = 2;
private java.lang.String name_;
/**
* string name = 2 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return name_;
}
/**
* string name = 2 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(name_);
}
/**
* string name = 2 [json_name = "name"];
* @param value The name to set.
*/
private void setName(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
name_ = value;
}
/**
* string name = 2 [json_name = "name"];
*/
private void clearName() {
name_ = getDefaultInstance().getName();
}
/**
* string name = 2 [json_name = "name"];
* @param value The bytes for name to set.
*/
private void setNameBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
name_ = value.toStringUtf8();
}
public static final int NUMERATOR_FIELD_NUMBER = 4;
private int numerator_;
/**
* int32 numerator = 4 [json_name = "numerator"];
* @return The numerator.
*/
@java.lang.Override
public int getNumerator() {
return numerator_;
}
/**
* int32 numerator = 4 [json_name = "numerator"];
* @param value The numerator to set.
*/
private void setNumerator(int value) {
numerator_ = value;
}
/**
* int32 numerator = 4 [json_name = "numerator"];
*/
private void clearNumerator() {
numerator_ = 0;
}
public static final int DENOMINATOR_FIELD_NUMBER = 5;
private int denominator_;
/**
* int32 denominator = 5 [json_name = "denominator"];
* @return The denominator.
*/
@java.lang.Override
public int getDenominator() {
return denominator_;
}
/**
* int32 denominator = 5 [json_name = "denominator"];
* @param value The denominator to set.
*/
private void setDenominator(int value) {
denominator_ = value;
}
/**
* int32 denominator = 5 [json_name = "denominator"];
*/
private void clearDenominator() {
denominator_ = 0;
}
public static final int DECIMAL_FIELD_NUMBER = 6;
private double decimal_;
/**
* double decimal = 6 [json_name = "decimal"];
* @return The decimal.
*/
@java.lang.Override
public double getDecimal() {
return decimal_;
}
/**
* double decimal = 6 [json_name = "decimal"];
* @param value The decimal to set.
*/
private void setDecimal(double value) {
decimal_ = value;
}
/**
* double decimal = 6 [json_name = "decimal"];
*/
private void clearDecimal() {
decimal_ = 0D;
}
public static final int MONEYLINE_FIELD_NUMBER = 14;
private double moneyline_;
/**
* double moneyline = 14 [json_name = "moneyline"];
* @return The moneyline.
*/
@java.lang.Override
public double getMoneyline() {
return moneyline_;
}
/**
* double moneyline = 14 [json_name = "moneyline"];
* @param value The moneyline to set.
*/
private void setMoneyline(double value) {
moneyline_ = value;
}
/**
* double moneyline = 14 [json_name = "moneyline"];
*/
private void clearMoneyline() {
moneyline_ = 0D;
}
public static final int PROBABILITY_FIELD_NUMBER = 7;
private double probability_;
/**
* double probability = 7 [json_name = "probability"];
* @return The probability.
*/
@java.lang.Override
public double getProbability() {
return probability_;
}
/**
* double probability = 7 [json_name = "probability"];
* @param value The probability to set.
*/
private void setProbability(double value) {
probability_ = value;
}
/**
* double probability = 7 [json_name = "probability"];
*/
private void clearProbability() {
probability_ = 0D;
}
public static final int UPDATED_FIELD_NUMBER = 8;
private java.lang.String updated_;
/**
* string updated = 8 [json_name = "updated"];
* @return The updated.
*/
@java.lang.Override
public java.lang.String getUpdated() {
return updated_;
}
/**
* string updated = 8 [json_name = "updated"];
* @return The bytes for updated.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUpdatedBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(updated_);
}
/**
* string updated = 8 [json_name = "updated"];
* @param value The updated to set.
*/
private void setUpdated(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
updated_ = value;
}
/**
* string updated = 8 [json_name = "updated"];
*/
private void clearUpdated() {
updated_ = getDefaultInstance().getUpdated();
}
/**
* string updated = 8 [json_name = "updated"];
* @param value The bytes for updated to set.
*/
private void setUpdatedBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
updated_ = value.toStringUtf8();
}
public static final int TRADING_STATUS_FIELD_NUMBER = 9;
private int tradingStatus_;
/**
* .streamlayer.inplay.common.SelectionStatus trading_status = 9 [json_name = "tradingStatus"];
* @return The enum numeric value on the wire for tradingStatus.
*/
@java.lang.Override
public int getTradingStatusValue() {
return tradingStatus_;
}
/**
* .streamlayer.inplay.common.SelectionStatus trading_status = 9 [json_name = "tradingStatus"];
* @return The tradingStatus.
*/
@java.lang.Override
public com.streamlayer.inplay.common.SelectionStatus getTradingStatus() {
com.streamlayer.inplay.common.SelectionStatus result = com.streamlayer.inplay.common.SelectionStatus.forNumber(tradingStatus_);
return result == null ? com.streamlayer.inplay.common.SelectionStatus.UNRECOGNIZED : result;
}
/**
* .streamlayer.inplay.common.SelectionStatus trading_status = 9 [json_name = "tradingStatus"];
* @param value The enum numeric value on the wire for tradingStatus to set.
*/
private void setTradingStatusValue(int value) {
tradingStatus_ = value;
}
/**
* .streamlayer.inplay.common.SelectionStatus trading_status = 9 [json_name = "tradingStatus"];
* @param value The tradingStatus to set.
*/
private void setTradingStatus(com.streamlayer.inplay.common.SelectionStatus value) {
tradingStatus_ = value.getNumber();
}
/**
* .streamlayer.inplay.common.SelectionStatus trading_status = 9 [json_name = "tradingStatus"];
*/
private void clearTradingStatus() {
tradingStatus_ = 0;
}
public static final int OUTCOME_FIELD_NUMBER = 10;
private com.streamlayer.inplay.common.SelectionOutcome outcome_;
/**
* .streamlayer.inplay.common.SelectionOutcome outcome = 10 [json_name = "outcome"];
*/
@java.lang.Override
public boolean hasOutcome() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .streamlayer.inplay.common.SelectionOutcome outcome = 10 [json_name = "outcome"];
*/
@java.lang.Override
public com.streamlayer.inplay.common.SelectionOutcome getOutcome() {
return outcome_ == null ? com.streamlayer.inplay.common.SelectionOutcome.getDefaultInstance() : outcome_;
}
/**
* .streamlayer.inplay.common.SelectionOutcome outcome = 10 [json_name = "outcome"];
*/
private void setOutcome(com.streamlayer.inplay.common.SelectionOutcome value) {
value.getClass();
outcome_ = value;
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.inplay.common.SelectionOutcome outcome = 10 [json_name = "outcome"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeOutcome(com.streamlayer.inplay.common.SelectionOutcome value) {
value.getClass();
if (outcome_ != null &&
outcome_ != com.streamlayer.inplay.common.SelectionOutcome.getDefaultInstance()) {
outcome_ =
com.streamlayer.inplay.common.SelectionOutcome.newBuilder(outcome_).mergeFrom(value).buildPartial();
} else {
outcome_ = value;
}
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.inplay.common.SelectionOutcome outcome = 10 [json_name = "outcome"];
*/
private void clearOutcome() { outcome_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int RANGE_FIELD_NUMBER = 11;
private com.streamlayer.inplay.common.SelectionRange range_;
/**
* .streamlayer.inplay.common.SelectionRange range = 11 [json_name = "range"];
*/
@java.lang.Override
public boolean hasRange() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .streamlayer.inplay.common.SelectionRange range = 11 [json_name = "range"];
*/
@java.lang.Override
public com.streamlayer.inplay.common.SelectionRange getRange() {
return range_ == null ? com.streamlayer.inplay.common.SelectionRange.getDefaultInstance() : range_;
}
/**
* .streamlayer.inplay.common.SelectionRange range = 11 [json_name = "range"];
*/
private void setRange(com.streamlayer.inplay.common.SelectionRange value) {
value.getClass();
range_ = value;
bitField0_ |= 0x00000002;
}
/**
* .streamlayer.inplay.common.SelectionRange range = 11 [json_name = "range"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeRange(com.streamlayer.inplay.common.SelectionRange value) {
value.getClass();
if (range_ != null &&
range_ != com.streamlayer.inplay.common.SelectionRange.getDefaultInstance()) {
range_ =
com.streamlayer.inplay.common.SelectionRange.newBuilder(range_).mergeFrom(value).buildPartial();
} else {
range_ = value;
}
bitField0_ |= 0x00000002;
}
/**
* .streamlayer.inplay.common.SelectionRange range = 11 [json_name = "range"];
*/
private void clearRange() { range_ = null;
bitField0_ = (bitField0_ & ~0x00000002);
}
public static final int RESULT_FIELD_NUMBER = 12;
private com.streamlayer.inplay.common.SelectionResult result_;
/**
* .streamlayer.inplay.common.SelectionResult result = 12 [json_name = "result"];
*/
@java.lang.Override
public boolean hasResult() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .streamlayer.inplay.common.SelectionResult result = 12 [json_name = "result"];
*/
@java.lang.Override
public com.streamlayer.inplay.common.SelectionResult getResult() {
return result_ == null ? com.streamlayer.inplay.common.SelectionResult.getDefaultInstance() : result_;
}
/**
* .streamlayer.inplay.common.SelectionResult result = 12 [json_name = "result"];
*/
private void setResult(com.streamlayer.inplay.common.SelectionResult value) {
value.getClass();
result_ = value;
bitField0_ |= 0x00000004;
}
/**
* .streamlayer.inplay.common.SelectionResult result = 12 [json_name = "result"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeResult(com.streamlayer.inplay.common.SelectionResult value) {
value.getClass();
if (result_ != null &&
result_ != com.streamlayer.inplay.common.SelectionResult.getDefaultInstance()) {
result_ =
com.streamlayer.inplay.common.SelectionResult.newBuilder(result_).mergeFrom(value).buildPartial();
} else {
result_ = value;
}
bitField0_ |= 0x00000004;
}
/**
* .streamlayer.inplay.common.SelectionResult result = 12 [json_name = "result"];
*/
private void clearResult() { result_ = null;
bitField0_ = (bitField0_ & ~0x00000004);
}
public static final int RESULT_STATUS_FIELD_NUMBER = 13;
private int resultStatus_;
/**
* .streamlayer.inplay.common.SelectionResultStatus result_status = 13 [json_name = "resultStatus"];
* @return The enum numeric value on the wire for resultStatus.
*/
@java.lang.Override
public int getResultStatusValue() {
return resultStatus_;
}
/**
* .streamlayer.inplay.common.SelectionResultStatus result_status = 13 [json_name = "resultStatus"];
* @return The resultStatus.
*/
@java.lang.Override
public com.streamlayer.inplay.common.SelectionResultStatus getResultStatus() {
com.streamlayer.inplay.common.SelectionResultStatus result = com.streamlayer.inplay.common.SelectionResultStatus.forNumber(resultStatus_);
return result == null ? com.streamlayer.inplay.common.SelectionResultStatus.UNRECOGNIZED : result;
}
/**
* .streamlayer.inplay.common.SelectionResultStatus result_status = 13 [json_name = "resultStatus"];
* @param value The enum numeric value on the wire for resultStatus to set.
*/
private void setResultStatusValue(int value) {
resultStatus_ = value;
}
/**
* .streamlayer.inplay.common.SelectionResultStatus result_status = 13 [json_name = "resultStatus"];
* @param value The resultStatus to set.
*/
private void setResultStatus(com.streamlayer.inplay.common.SelectionResultStatus value) {
resultStatus_ = value.getNumber();
}
/**
* .streamlayer.inplay.common.SelectionResultStatus result_status = 13 [json_name = "resultStatus"];
*/
private void clearResultStatus() {
resultStatus_ = 0;
}
public static com.streamlayer.inplay.common.Selection parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.inplay.common.Selection parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.inplay.common.Selection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.inplay.common.Selection parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.inplay.common.Selection parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.inplay.common.Selection parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.inplay.common.Selection parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.inplay.common.Selection parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.inplay.common.Selection parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.inplay.common.Selection parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.inplay.common.Selection parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.inplay.common.Selection parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.streamlayer.inplay.common.Selection prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.inplay.common.Selection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.inplay.common.Selection, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.inplay.common.Selection)
com.streamlayer.inplay.common.SelectionOrBuilder {
// Construct using com.streamlayer.inplay.common.Selection.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string id = 1 [json_name = "id"];
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
return instance.getId();
}
/**
* string id = 1 [json_name = "id"];
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
return instance.getIdBytes();
}
/**
* string id = 1 [json_name = "id"];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
copyOnWrite();
instance.setId(value);
return this;
}
/**
* string id = 1 [json_name = "id"];
* @return This builder for chaining.
*/
public Builder clearId() {
copyOnWrite();
instance.clearId();
return this;
}
/**
* string id = 1 [json_name = "id"];
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setIdBytes(value);
return this;
}
/**
* string name = 2 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return instance.getName();
}
/**
* string name = 2 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return instance.getNameBytes();
}
/**
* string name = 2 [json_name = "name"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
copyOnWrite();
instance.setName(value);
return this;
}
/**
* string name = 2 [json_name = "name"];
* @return This builder for chaining.
*/
public Builder clearName() {
copyOnWrite();
instance.clearName();
return this;
}
/**
* string name = 2 [json_name = "name"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setNameBytes(value);
return this;
}
/**
* int32 numerator = 4 [json_name = "numerator"];
* @return The numerator.
*/
@java.lang.Override
public int getNumerator() {
return instance.getNumerator();
}
/**
* int32 numerator = 4 [json_name = "numerator"];
* @param value The numerator to set.
* @return This builder for chaining.
*/
public Builder setNumerator(int value) {
copyOnWrite();
instance.setNumerator(value);
return this;
}
/**
* int32 numerator = 4 [json_name = "numerator"];
* @return This builder for chaining.
*/
public Builder clearNumerator() {
copyOnWrite();
instance.clearNumerator();
return this;
}
/**
* int32 denominator = 5 [json_name = "denominator"];
* @return The denominator.
*/
@java.lang.Override
public int getDenominator() {
return instance.getDenominator();
}
/**
* int32 denominator = 5 [json_name = "denominator"];
* @param value The denominator to set.
* @return This builder for chaining.
*/
public Builder setDenominator(int value) {
copyOnWrite();
instance.setDenominator(value);
return this;
}
/**
* int32 denominator = 5 [json_name = "denominator"];
* @return This builder for chaining.
*/
public Builder clearDenominator() {
copyOnWrite();
instance.clearDenominator();
return this;
}
/**
* double decimal = 6 [json_name = "decimal"];
* @return The decimal.
*/
@java.lang.Override
public double getDecimal() {
return instance.getDecimal();
}
/**
* double decimal = 6 [json_name = "decimal"];
* @param value The decimal to set.
* @return This builder for chaining.
*/
public Builder setDecimal(double value) {
copyOnWrite();
instance.setDecimal(value);
return this;
}
/**
* double decimal = 6 [json_name = "decimal"];
* @return This builder for chaining.
*/
public Builder clearDecimal() {
copyOnWrite();
instance.clearDecimal();
return this;
}
/**
* double moneyline = 14 [json_name = "moneyline"];
* @return The moneyline.
*/
@java.lang.Override
public double getMoneyline() {
return instance.getMoneyline();
}
/**
* double moneyline = 14 [json_name = "moneyline"];
* @param value The moneyline to set.
* @return This builder for chaining.
*/
public Builder setMoneyline(double value) {
copyOnWrite();
instance.setMoneyline(value);
return this;
}
/**
* double moneyline = 14 [json_name = "moneyline"];
* @return This builder for chaining.
*/
public Builder clearMoneyline() {
copyOnWrite();
instance.clearMoneyline();
return this;
}
/**
* double probability = 7 [json_name = "probability"];
* @return The probability.
*/
@java.lang.Override
public double getProbability() {
return instance.getProbability();
}
/**
* double probability = 7 [json_name = "probability"];
* @param value The probability to set.
* @return This builder for chaining.
*/
public Builder setProbability(double value) {
copyOnWrite();
instance.setProbability(value);
return this;
}
/**
* double probability = 7 [json_name = "probability"];
* @return This builder for chaining.
*/
public Builder clearProbability() {
copyOnWrite();
instance.clearProbability();
return this;
}
/**
* string updated = 8 [json_name = "updated"];
* @return The updated.
*/
@java.lang.Override
public java.lang.String getUpdated() {
return instance.getUpdated();
}
/**
* string updated = 8 [json_name = "updated"];
* @return The bytes for updated.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUpdatedBytes() {
return instance.getUpdatedBytes();
}
/**
* string updated = 8 [json_name = "updated"];
* @param value The updated to set.
* @return This builder for chaining.
*/
public Builder setUpdated(
java.lang.String value) {
copyOnWrite();
instance.setUpdated(value);
return this;
}
/**
* string updated = 8 [json_name = "updated"];
* @return This builder for chaining.
*/
public Builder clearUpdated() {
copyOnWrite();
instance.clearUpdated();
return this;
}
/**
* string updated = 8 [json_name = "updated"];
* @param value The bytes for updated to set.
* @return This builder for chaining.
*/
public Builder setUpdatedBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setUpdatedBytes(value);
return this;
}
/**
* .streamlayer.inplay.common.SelectionStatus trading_status = 9 [json_name = "tradingStatus"];
* @return The enum numeric value on the wire for tradingStatus.
*/
@java.lang.Override
public int getTradingStatusValue() {
return instance.getTradingStatusValue();
}
/**
* .streamlayer.inplay.common.SelectionStatus trading_status = 9 [json_name = "tradingStatus"];
* @param value The tradingStatus to set.
* @return This builder for chaining.
*/
public Builder setTradingStatusValue(int value) {
copyOnWrite();
instance.setTradingStatusValue(value);
return this;
}
/**
* .streamlayer.inplay.common.SelectionStatus trading_status = 9 [json_name = "tradingStatus"];
* @return The tradingStatus.
*/
@java.lang.Override
public com.streamlayer.inplay.common.SelectionStatus getTradingStatus() {
return instance.getTradingStatus();
}
/**
* .streamlayer.inplay.common.SelectionStatus trading_status = 9 [json_name = "tradingStatus"];
* @param value The enum numeric value on the wire for tradingStatus to set.
* @return This builder for chaining.
*/
public Builder setTradingStatus(com.streamlayer.inplay.common.SelectionStatus value) {
copyOnWrite();
instance.setTradingStatus(value);
return this;
}
/**
* .streamlayer.inplay.common.SelectionStatus trading_status = 9 [json_name = "tradingStatus"];
* @return This builder for chaining.
*/
public Builder clearTradingStatus() {
copyOnWrite();
instance.clearTradingStatus();
return this;
}
/**
* .streamlayer.inplay.common.SelectionOutcome outcome = 10 [json_name = "outcome"];
*/
@java.lang.Override
public boolean hasOutcome() {
return instance.hasOutcome();
}
/**
* .streamlayer.inplay.common.SelectionOutcome outcome = 10 [json_name = "outcome"];
*/
@java.lang.Override
public com.streamlayer.inplay.common.SelectionOutcome getOutcome() {
return instance.getOutcome();
}
/**
* .streamlayer.inplay.common.SelectionOutcome outcome = 10 [json_name = "outcome"];
*/
public Builder setOutcome(com.streamlayer.inplay.common.SelectionOutcome value) {
copyOnWrite();
instance.setOutcome(value);
return this;
}
/**
* .streamlayer.inplay.common.SelectionOutcome outcome = 10 [json_name = "outcome"];
*/
public Builder setOutcome(
com.streamlayer.inplay.common.SelectionOutcome.Builder builderForValue) {
copyOnWrite();
instance.setOutcome(builderForValue.build());
return this;
}
/**
* .streamlayer.inplay.common.SelectionOutcome outcome = 10 [json_name = "outcome"];
*/
public Builder mergeOutcome(com.streamlayer.inplay.common.SelectionOutcome value) {
copyOnWrite();
instance.mergeOutcome(value);
return this;
}
/**
* .streamlayer.inplay.common.SelectionOutcome outcome = 10 [json_name = "outcome"];
*/
public Builder clearOutcome() { copyOnWrite();
instance.clearOutcome();
return this;
}
/**
* .streamlayer.inplay.common.SelectionRange range = 11 [json_name = "range"];
*/
@java.lang.Override
public boolean hasRange() {
return instance.hasRange();
}
/**
* .streamlayer.inplay.common.SelectionRange range = 11 [json_name = "range"];
*/
@java.lang.Override
public com.streamlayer.inplay.common.SelectionRange getRange() {
return instance.getRange();
}
/**
* .streamlayer.inplay.common.SelectionRange range = 11 [json_name = "range"];
*/
public Builder setRange(com.streamlayer.inplay.common.SelectionRange value) {
copyOnWrite();
instance.setRange(value);
return this;
}
/**
* .streamlayer.inplay.common.SelectionRange range = 11 [json_name = "range"];
*/
public Builder setRange(
com.streamlayer.inplay.common.SelectionRange.Builder builderForValue) {
copyOnWrite();
instance.setRange(builderForValue.build());
return this;
}
/**
* .streamlayer.inplay.common.SelectionRange range = 11 [json_name = "range"];
*/
public Builder mergeRange(com.streamlayer.inplay.common.SelectionRange value) {
copyOnWrite();
instance.mergeRange(value);
return this;
}
/**
* .streamlayer.inplay.common.SelectionRange range = 11 [json_name = "range"];
*/
public Builder clearRange() { copyOnWrite();
instance.clearRange();
return this;
}
/**
* .streamlayer.inplay.common.SelectionResult result = 12 [json_name = "result"];
*/
@java.lang.Override
public boolean hasResult() {
return instance.hasResult();
}
/**
* .streamlayer.inplay.common.SelectionResult result = 12 [json_name = "result"];
*/
@java.lang.Override
public com.streamlayer.inplay.common.SelectionResult getResult() {
return instance.getResult();
}
/**
* .streamlayer.inplay.common.SelectionResult result = 12 [json_name = "result"];
*/
public Builder setResult(com.streamlayer.inplay.common.SelectionResult value) {
copyOnWrite();
instance.setResult(value);
return this;
}
/**
* .streamlayer.inplay.common.SelectionResult result = 12 [json_name = "result"];
*/
public Builder setResult(
com.streamlayer.inplay.common.SelectionResult.Builder builderForValue) {
copyOnWrite();
instance.setResult(builderForValue.build());
return this;
}
/**
* .streamlayer.inplay.common.SelectionResult result = 12 [json_name = "result"];
*/
public Builder mergeResult(com.streamlayer.inplay.common.SelectionResult value) {
copyOnWrite();
instance.mergeResult(value);
return this;
}
/**
* .streamlayer.inplay.common.SelectionResult result = 12 [json_name = "result"];
*/
public Builder clearResult() { copyOnWrite();
instance.clearResult();
return this;
}
/**
* .streamlayer.inplay.common.SelectionResultStatus result_status = 13 [json_name = "resultStatus"];
* @return The enum numeric value on the wire for resultStatus.
*/
@java.lang.Override
public int getResultStatusValue() {
return instance.getResultStatusValue();
}
/**
* .streamlayer.inplay.common.SelectionResultStatus result_status = 13 [json_name = "resultStatus"];
* @param value The resultStatus to set.
* @return This builder for chaining.
*/
public Builder setResultStatusValue(int value) {
copyOnWrite();
instance.setResultStatusValue(value);
return this;
}
/**
* .streamlayer.inplay.common.SelectionResultStatus result_status = 13 [json_name = "resultStatus"];
* @return The resultStatus.
*/
@java.lang.Override
public com.streamlayer.inplay.common.SelectionResultStatus getResultStatus() {
return instance.getResultStatus();
}
/**
* .streamlayer.inplay.common.SelectionResultStatus result_status = 13 [json_name = "resultStatus"];
* @param value The enum numeric value on the wire for resultStatus to set.
* @return This builder for chaining.
*/
public Builder setResultStatus(com.streamlayer.inplay.common.SelectionResultStatus value) {
copyOnWrite();
instance.setResultStatus(value);
return this;
}
/**
* .streamlayer.inplay.common.SelectionResultStatus result_status = 13 [json_name = "resultStatus"];
* @return This builder for chaining.
*/
public Builder clearResultStatus() {
copyOnWrite();
instance.clearResultStatus();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.inplay.common.Selection)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.streamlayer.inplay.common.Selection();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"id_",
"name_",
"numerator_",
"denominator_",
"decimal_",
"probability_",
"updated_",
"tradingStatus_",
"outcome_",
"range_",
"result_",
"resultStatus_",
"moneyline_",
};
java.lang.String info =
"\u0000\r\u0000\u0001\u0001\u000e\r\u0000\u0000\u0000\u0001\u0208\u0002\u0208\u0004" +
"\u0004\u0005\u0004\u0006\u0000\u0007\u0000\b\u0208\t\f\n\u1009\u0000\u000b\u1009" +
"\u0001\f\u1009\u0002\r\f\u000e\u0000";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.streamlayer.inplay.common.Selection.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:streamlayer.inplay.common.Selection)
private static final com.streamlayer.inplay.common.Selection DEFAULT_INSTANCE;
static {
Selection defaultInstance = new Selection();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Selection.class, defaultInstance);
}
public static com.streamlayer.inplay.common.Selection getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}