main.java.com.streamlayer.sports.common.ArrayQueryOption 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/sports/sports_common.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.sports.common;
/**
* Protobuf type {@code streamlayer.sports.ArrayQueryOption}
*/
public final class ArrayQueryOption extends
com.google.protobuf.GeneratedMessageLite<
ArrayQueryOption, ArrayQueryOption.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sports.ArrayQueryOption)
ArrayQueryOptionOrBuilder {
private ArrayQueryOption() {
key_ = "";
value_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
}
public static final int KEY_FIELD_NUMBER = 1;
private java.lang.String key_;
/**
* string key = 1 [json_name = "key"];
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
return key_;
}
/**
* string key = 1 [json_name = "key"];
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(key_);
}
/**
* string key = 1 [json_name = "key"];
* @param value The key to set.
*/
private void setKey(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
key_ = value;
}
/**
* string key = 1 [json_name = "key"];
*/
private void clearKey() {
key_ = getDefaultInstance().getKey();
}
/**
* string key = 1 [json_name = "key"];
* @param value The bytes for key to set.
*/
private void setKeyBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
key_ = value.toStringUtf8();
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.google.protobuf.Internal.ProtobufList value_;
/**
* repeated string value = 2 [json_name = "value"];
* @return A list containing the value.
*/
@java.lang.Override
public java.util.List getValueList() {
return value_;
}
/**
* repeated string value = 2 [json_name = "value"];
* @return The count of value.
*/
@java.lang.Override
public int getValueCount() {
return value_.size();
}
/**
* repeated string value = 2 [json_name = "value"];
* @param index The index of the element to return.
* @return The value at the given index.
*/
@java.lang.Override
public java.lang.String getValue(int index) {
return value_.get(index);
}
/**
* repeated string value = 2 [json_name = "value"];
* @param index The index of the value to return.
* @return The bytes of the value at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValueBytes(int index) {
return com.google.protobuf.ByteString.copyFromUtf8(
value_.get(index));
}
private void ensureValueIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp =
value_; if (!tmp.isModifiable()) {
value_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated string value = 2 [json_name = "value"];
* @param index The index to set the value at.
* @param value The value to set.
*/
private void setValue(
int index, java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
ensureValueIsMutable();
value_.set(index, value);
}
/**
* repeated string value = 2 [json_name = "value"];
* @param value The value to add.
*/
private void addValue(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
ensureValueIsMutable();
value_.add(value);
}
/**
* repeated string value = 2 [json_name = "value"];
* @param values The value to add.
*/
private void addAllValue(
java.lang.Iterable values) {
ensureValueIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, value_);
}
/**
* repeated string value = 2 [json_name = "value"];
*/
private void clearValue() {
value_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
}
/**
* repeated string value = 2 [json_name = "value"];
* @param value The bytes of the value to add.
*/
private void addValueBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureValueIsMutable();
value_.add(value.toStringUtf8());
}
public static com.streamlayer.sports.common.ArrayQueryOption parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sports.common.ArrayQueryOption 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.sports.common.ArrayQueryOption parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sports.common.ArrayQueryOption 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.sports.common.ArrayQueryOption parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sports.common.ArrayQueryOption 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.sports.common.ArrayQueryOption parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.common.ArrayQueryOption 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.sports.common.ArrayQueryOption parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.common.ArrayQueryOption parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.sports.common.ArrayQueryOption parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.common.ArrayQueryOption 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.sports.common.ArrayQueryOption prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sports.ArrayQueryOption}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sports.common.ArrayQueryOption, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sports.ArrayQueryOption)
com.streamlayer.sports.common.ArrayQueryOptionOrBuilder {
// Construct using com.streamlayer.sports.common.ArrayQueryOption.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string key = 1 [json_name = "key"];
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
return instance.getKey();
}
/**
* string key = 1 [json_name = "key"];
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
return instance.getKeyBytes();
}
/**
* string key = 1 [json_name = "key"];
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(
java.lang.String value) {
copyOnWrite();
instance.setKey(value);
return this;
}
/**
* string key = 1 [json_name = "key"];
* @return This builder for chaining.
*/
public Builder clearKey() {
copyOnWrite();
instance.clearKey();
return this;
}
/**
* string key = 1 [json_name = "key"];
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setKeyBytes(value);
return this;
}
/**
* repeated string value = 2 [json_name = "value"];
* @return A list containing the value.
*/
@java.lang.Override
public java.util.List
getValueList() {
return java.util.Collections.unmodifiableList(
instance.getValueList());
}
/**
* repeated string value = 2 [json_name = "value"];
* @return The count of value.
*/
@java.lang.Override
public int getValueCount() {
return instance.getValueCount();
}
/**
* repeated string value = 2 [json_name = "value"];
* @param index The index of the element to return.
* @return The value at the given index.
*/
@java.lang.Override
public java.lang.String getValue(int index) {
return instance.getValue(index);
}
/**
* repeated string value = 2 [json_name = "value"];
* @param index The index of the value to return.
* @return The bytes of the value at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValueBytes(int index) {
return instance.getValueBytes(index);
}
/**
* repeated string value = 2 [json_name = "value"];
* @param index The index to set the value at.
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(
int index, java.lang.String value) {
copyOnWrite();
instance.setValue(index, value);
return this;
}
/**
* repeated string value = 2 [json_name = "value"];
* @param value The value to add.
* @return This builder for chaining.
*/
public Builder addValue(
java.lang.String value) {
copyOnWrite();
instance.addValue(value);
return this;
}
/**
* repeated string value = 2 [json_name = "value"];
* @param values The value to add.
* @return This builder for chaining.
*/
public Builder addAllValue(
java.lang.Iterable values) {
copyOnWrite();
instance.addAllValue(values);
return this;
}
/**
* repeated string value = 2 [json_name = "value"];
* @return This builder for chaining.
*/
public Builder clearValue() {
copyOnWrite();
instance.clearValue();
return this;
}
/**
* repeated string value = 2 [json_name = "value"];
* @param value The bytes of the value to add.
* @return This builder for chaining.
*/
public Builder addValueBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.addValueBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sports.ArrayQueryOption)
}
@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.sports.common.ArrayQueryOption();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"key_",
"value_",
};
java.lang.String info =
"\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0001\u0000\u0001\u0208\u0002\u021a" +
"";
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.sports.common.ArrayQueryOption.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.sports.ArrayQueryOption)
private static final com.streamlayer.sports.common.ArrayQueryOption DEFAULT_INSTANCE;
static {
ArrayQueryOption defaultInstance = new ArrayQueryOption();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
ArrayQueryOption.class, defaultInstance);
}
public static com.streamlayer.sports.common.ArrayQueryOption getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}