main.java.com.streamlayer.inplay.common.Market 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.Market}
*/
public final class Market extends
com.google.protobuf.GeneratedMessageLite<
Market, Market.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.inplay.common.Market)
MarketOrBuilder {
private Market() {
id_ = "";
expiryUtc_ = "";
name_ = "";
game_ = "";
updated_ = "";
selections_ = emptyProtobufList();
}
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 SEQUENCE_FIELD_NUMBER = 2;
private int sequence_;
/**
* int32 sequence = 2 [json_name = "sequence"];
* @return The sequence.
*/
@java.lang.Override
public int getSequence() {
return sequence_;
}
/**
* int32 sequence = 2 [json_name = "sequence"];
* @param value The sequence to set.
*/
private void setSequence(int value) {
sequence_ = value;
}
/**
* int32 sequence = 2 [json_name = "sequence"];
*/
private void clearSequence() {
sequence_ = 0;
}
public static final int EXPIRY_UTC_FIELD_NUMBER = 3;
private java.lang.String expiryUtc_;
/**
* string expiry_utc = 3 [json_name = "expiryUtc"];
* @return The expiryUtc.
*/
@java.lang.Override
public java.lang.String getExpiryUtc() {
return expiryUtc_;
}
/**
* string expiry_utc = 3 [json_name = "expiryUtc"];
* @return The bytes for expiryUtc.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExpiryUtcBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(expiryUtc_);
}
/**
* string expiry_utc = 3 [json_name = "expiryUtc"];
* @param value The expiryUtc to set.
*/
private void setExpiryUtc(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
expiryUtc_ = value;
}
/**
* string expiry_utc = 3 [json_name = "expiryUtc"];
*/
private void clearExpiryUtc() {
expiryUtc_ = getDefaultInstance().getExpiryUtc();
}
/**
* string expiry_utc = 3 [json_name = "expiryUtc"];
* @param value The bytes for expiryUtc to set.
*/
private void setExpiryUtcBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
expiryUtc_ = value.toStringUtf8();
}
public static final int NAME_FIELD_NUMBER = 4;
private java.lang.String name_;
/**
* string name = 4 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return name_;
}
/**
* string name = 4 [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 = 4 [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 = 4 [json_name = "name"];
*/
private void clearName() {
name_ = getDefaultInstance().getName();
}
/**
* string name = 4 [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 GAME_FIELD_NUMBER = 5;
private java.lang.String game_;
/**
* string game = 5 [json_name = "game"];
* @return The game.
*/
@java.lang.Override
public java.lang.String getGame() {
return game_;
}
/**
* string game = 5 [json_name = "game"];
* @return The bytes for game.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGameBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(game_);
}
/**
* string game = 5 [json_name = "game"];
* @param value The game to set.
*/
private void setGame(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
game_ = value;
}
/**
* string game = 5 [json_name = "game"];
*/
private void clearGame() {
game_ = getDefaultInstance().getGame();
}
/**
* string game = 5 [json_name = "game"];
* @param value The bytes for game to set.
*/
private void setGameBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
game_ = value.toStringUtf8();
}
public static final int HANDICAP_FIELD_NUMBER = 6;
private double handicap_;
/**
* double handicap = 6 [json_name = "handicap"];
* @return The handicap.
*/
@java.lang.Override
public double getHandicap() {
return handicap_;
}
/**
* double handicap = 6 [json_name = "handicap"];
* @param value The handicap to set.
*/
private void setHandicap(double value) {
handicap_ = value;
}
/**
* double handicap = 6 [json_name = "handicap"];
*/
private void clearHandicap() {
handicap_ = 0D;
}
public static final int UPDATED_FIELD_NUMBER = 7;
private java.lang.String updated_;
/**
* string updated = 7 [json_name = "updated"];
* @return The updated.
*/
@java.lang.Override
public java.lang.String getUpdated() {
return updated_;
}
/**
* string updated = 7 [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 = 7 [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 = 7 [json_name = "updated"];
*/
private void clearUpdated() {
updated_ = getDefaultInstance().getUpdated();
}
/**
* string updated = 7 [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 EXPIRY_UTC_TIMESTAMP_FIELD_NUMBER = 10;
private int expiryUtcTimestamp_;
/**
* int32 expiry_utc_timestamp = 10 [json_name = "expiryUtcTimestamp"];
* @return The expiryUtcTimestamp.
*/
@java.lang.Override
public int getExpiryUtcTimestamp() {
return expiryUtcTimestamp_;
}
/**
* int32 expiry_utc_timestamp = 10 [json_name = "expiryUtcTimestamp"];
* @param value The expiryUtcTimestamp to set.
*/
private void setExpiryUtcTimestamp(int value) {
expiryUtcTimestamp_ = value;
}
/**
* int32 expiry_utc_timestamp = 10 [json_name = "expiryUtcTimestamp"];
*/
private void clearExpiryUtcTimestamp() {
expiryUtcTimestamp_ = 0;
}
public static final int TRADING_STATUS_FIELD_NUMBER = 8;
private int tradingStatus_;
/**
* .streamlayer.inplay.common.MarketStatus trading_status = 8 [json_name = "tradingStatus"];
* @return The enum numeric value on the wire for tradingStatus.
*/
@java.lang.Override
public int getTradingStatusValue() {
return tradingStatus_;
}
/**
* .streamlayer.inplay.common.MarketStatus trading_status = 8 [json_name = "tradingStatus"];
* @return The tradingStatus.
*/
@java.lang.Override
public com.streamlayer.inplay.common.MarketStatus getTradingStatus() {
com.streamlayer.inplay.common.MarketStatus result = com.streamlayer.inplay.common.MarketStatus.forNumber(tradingStatus_);
return result == null ? com.streamlayer.inplay.common.MarketStatus.UNRECOGNIZED : result;
}
/**
* .streamlayer.inplay.common.MarketStatus trading_status = 8 [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.MarketStatus trading_status = 8 [json_name = "tradingStatus"];
* @param value The tradingStatus to set.
*/
private void setTradingStatus(com.streamlayer.inplay.common.MarketStatus value) {
tradingStatus_ = value.getNumber();
}
/**
* .streamlayer.inplay.common.MarketStatus trading_status = 8 [json_name = "tradingStatus"];
*/
private void clearTradingStatus() {
tradingStatus_ = 0;
}
public static final int SELECTIONS_FIELD_NUMBER = 9;
private com.google.protobuf.Internal.ProtobufList selections_;
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
@java.lang.Override
public java.util.List getSelectionsList() {
return selections_;
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
public java.util.List extends com.streamlayer.inplay.common.SelectionOrBuilder>
getSelectionsOrBuilderList() {
return selections_;
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
@java.lang.Override
public int getSelectionsCount() {
return selections_.size();
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
@java.lang.Override
public com.streamlayer.inplay.common.Selection getSelections(int index) {
return selections_.get(index);
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
public com.streamlayer.inplay.common.SelectionOrBuilder getSelectionsOrBuilder(
int index) {
return selections_.get(index);
}
private void ensureSelectionsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = selections_;
if (!tmp.isModifiable()) {
selections_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
private void setSelections(
int index, com.streamlayer.inplay.common.Selection value) {
value.getClass();
ensureSelectionsIsMutable();
selections_.set(index, value);
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
private void addSelections(com.streamlayer.inplay.common.Selection value) {
value.getClass();
ensureSelectionsIsMutable();
selections_.add(value);
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
private void addSelections(
int index, com.streamlayer.inplay.common.Selection value) {
value.getClass();
ensureSelectionsIsMutable();
selections_.add(index, value);
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
private void addAllSelections(
java.lang.Iterable extends com.streamlayer.inplay.common.Selection> values) {
ensureSelectionsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, selections_);
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
private void clearSelections() {
selections_ = emptyProtobufList();
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
private void removeSelections(int index) {
ensureSelectionsIsMutable();
selections_.remove(index);
}
public static com.streamlayer.inplay.common.Market 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.Market 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.Market 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.Market 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.Market parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.inplay.common.Market 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.Market parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.inplay.common.Market 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.Market parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.inplay.common.Market 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.Market 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.Market 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.Market prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.inplay.common.Market}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.inplay.common.Market, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.inplay.common.Market)
com.streamlayer.inplay.common.MarketOrBuilder {
// Construct using com.streamlayer.inplay.common.Market.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;
}
/**
* int32 sequence = 2 [json_name = "sequence"];
* @return The sequence.
*/
@java.lang.Override
public int getSequence() {
return instance.getSequence();
}
/**
* int32 sequence = 2 [json_name = "sequence"];
* @param value The sequence to set.
* @return This builder for chaining.
*/
public Builder setSequence(int value) {
copyOnWrite();
instance.setSequence(value);
return this;
}
/**
* int32 sequence = 2 [json_name = "sequence"];
* @return This builder for chaining.
*/
public Builder clearSequence() {
copyOnWrite();
instance.clearSequence();
return this;
}
/**
* string expiry_utc = 3 [json_name = "expiryUtc"];
* @return The expiryUtc.
*/
@java.lang.Override
public java.lang.String getExpiryUtc() {
return instance.getExpiryUtc();
}
/**
* string expiry_utc = 3 [json_name = "expiryUtc"];
* @return The bytes for expiryUtc.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExpiryUtcBytes() {
return instance.getExpiryUtcBytes();
}
/**
* string expiry_utc = 3 [json_name = "expiryUtc"];
* @param value The expiryUtc to set.
* @return This builder for chaining.
*/
public Builder setExpiryUtc(
java.lang.String value) {
copyOnWrite();
instance.setExpiryUtc(value);
return this;
}
/**
* string expiry_utc = 3 [json_name = "expiryUtc"];
* @return This builder for chaining.
*/
public Builder clearExpiryUtc() {
copyOnWrite();
instance.clearExpiryUtc();
return this;
}
/**
* string expiry_utc = 3 [json_name = "expiryUtc"];
* @param value The bytes for expiryUtc to set.
* @return This builder for chaining.
*/
public Builder setExpiryUtcBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setExpiryUtcBytes(value);
return this;
}
/**
* string name = 4 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return instance.getName();
}
/**
* string name = 4 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return instance.getNameBytes();
}
/**
* string name = 4 [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 = 4 [json_name = "name"];
* @return This builder for chaining.
*/
public Builder clearName() {
copyOnWrite();
instance.clearName();
return this;
}
/**
* string name = 4 [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;
}
/**
* string game = 5 [json_name = "game"];
* @return The game.
*/
@java.lang.Override
public java.lang.String getGame() {
return instance.getGame();
}
/**
* string game = 5 [json_name = "game"];
* @return The bytes for game.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGameBytes() {
return instance.getGameBytes();
}
/**
* string game = 5 [json_name = "game"];
* @param value The game to set.
* @return This builder for chaining.
*/
public Builder setGame(
java.lang.String value) {
copyOnWrite();
instance.setGame(value);
return this;
}
/**
* string game = 5 [json_name = "game"];
* @return This builder for chaining.
*/
public Builder clearGame() {
copyOnWrite();
instance.clearGame();
return this;
}
/**
* string game = 5 [json_name = "game"];
* @param value The bytes for game to set.
* @return This builder for chaining.
*/
public Builder setGameBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setGameBytes(value);
return this;
}
/**
* double handicap = 6 [json_name = "handicap"];
* @return The handicap.
*/
@java.lang.Override
public double getHandicap() {
return instance.getHandicap();
}
/**
* double handicap = 6 [json_name = "handicap"];
* @param value The handicap to set.
* @return This builder for chaining.
*/
public Builder setHandicap(double value) {
copyOnWrite();
instance.setHandicap(value);
return this;
}
/**
* double handicap = 6 [json_name = "handicap"];
* @return This builder for chaining.
*/
public Builder clearHandicap() {
copyOnWrite();
instance.clearHandicap();
return this;
}
/**
* string updated = 7 [json_name = "updated"];
* @return The updated.
*/
@java.lang.Override
public java.lang.String getUpdated() {
return instance.getUpdated();
}
/**
* string updated = 7 [json_name = "updated"];
* @return The bytes for updated.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUpdatedBytes() {
return instance.getUpdatedBytes();
}
/**
* string updated = 7 [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 = 7 [json_name = "updated"];
* @return This builder for chaining.
*/
public Builder clearUpdated() {
copyOnWrite();
instance.clearUpdated();
return this;
}
/**
* string updated = 7 [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;
}
/**
* int32 expiry_utc_timestamp = 10 [json_name = "expiryUtcTimestamp"];
* @return The expiryUtcTimestamp.
*/
@java.lang.Override
public int getExpiryUtcTimestamp() {
return instance.getExpiryUtcTimestamp();
}
/**
* int32 expiry_utc_timestamp = 10 [json_name = "expiryUtcTimestamp"];
* @param value The expiryUtcTimestamp to set.
* @return This builder for chaining.
*/
public Builder setExpiryUtcTimestamp(int value) {
copyOnWrite();
instance.setExpiryUtcTimestamp(value);
return this;
}
/**
* int32 expiry_utc_timestamp = 10 [json_name = "expiryUtcTimestamp"];
* @return This builder for chaining.
*/
public Builder clearExpiryUtcTimestamp() {
copyOnWrite();
instance.clearExpiryUtcTimestamp();
return this;
}
/**
* .streamlayer.inplay.common.MarketStatus trading_status = 8 [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.MarketStatus trading_status = 8 [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.MarketStatus trading_status = 8 [json_name = "tradingStatus"];
* @return The tradingStatus.
*/
@java.lang.Override
public com.streamlayer.inplay.common.MarketStatus getTradingStatus() {
return instance.getTradingStatus();
}
/**
* .streamlayer.inplay.common.MarketStatus trading_status = 8 [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.MarketStatus value) {
copyOnWrite();
instance.setTradingStatus(value);
return this;
}
/**
* .streamlayer.inplay.common.MarketStatus trading_status = 8 [json_name = "tradingStatus"];
* @return This builder for chaining.
*/
public Builder clearTradingStatus() {
copyOnWrite();
instance.clearTradingStatus();
return this;
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
@java.lang.Override
public java.util.List getSelectionsList() {
return java.util.Collections.unmodifiableList(
instance.getSelectionsList());
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
@java.lang.Override
public int getSelectionsCount() {
return instance.getSelectionsCount();
}/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
@java.lang.Override
public com.streamlayer.inplay.common.Selection getSelections(int index) {
return instance.getSelections(index);
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
public Builder setSelections(
int index, com.streamlayer.inplay.common.Selection value) {
copyOnWrite();
instance.setSelections(index, value);
return this;
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
public Builder setSelections(
int index, com.streamlayer.inplay.common.Selection.Builder builderForValue) {
copyOnWrite();
instance.setSelections(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
public Builder addSelections(com.streamlayer.inplay.common.Selection value) {
copyOnWrite();
instance.addSelections(value);
return this;
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
public Builder addSelections(
int index, com.streamlayer.inplay.common.Selection value) {
copyOnWrite();
instance.addSelections(index, value);
return this;
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
public Builder addSelections(
com.streamlayer.inplay.common.Selection.Builder builderForValue) {
copyOnWrite();
instance.addSelections(builderForValue.build());
return this;
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
public Builder addSelections(
int index, com.streamlayer.inplay.common.Selection.Builder builderForValue) {
copyOnWrite();
instance.addSelections(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
public Builder addAllSelections(
java.lang.Iterable extends com.streamlayer.inplay.common.Selection> values) {
copyOnWrite();
instance.addAllSelections(values);
return this;
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
public Builder clearSelections() {
copyOnWrite();
instance.clearSelections();
return this;
}
/**
* repeated .streamlayer.inplay.common.Selection selections = 9 [json_name = "selections"];
*/
public Builder removeSelections(int index) {
copyOnWrite();
instance.removeSelections(index);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.inplay.common.Market)
}
@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.Market();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"id_",
"sequence_",
"expiryUtc_",
"name_",
"game_",
"handicap_",
"updated_",
"tradingStatus_",
"selections_",
com.streamlayer.inplay.common.Selection.class,
"expiryUtcTimestamp_",
};
java.lang.String info =
"\u0000\n\u0000\u0000\u0001\n\n\u0000\u0001\u0000\u0001\u0208\u0002\u0004\u0003\u0208" +
"\u0004\u0208\u0005\u0208\u0006\u0000\u0007\u0208\b\f\t\u001b\n\u0004";
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.Market.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.Market)
private static final com.streamlayer.inplay.common.Market DEFAULT_INSTANCE;
static {
Market defaultInstance = new Market();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Market.class, defaultInstance);
}
public static com.streamlayer.inplay.common.Market getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}