com.google.protobuf.ListValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf-javalite Show documentation
Show all versions of protobuf-javalite Show documentation
Lite version of Protocol Buffers library. This version is optimized for code size, but does
not guarantee API/ABI stability.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: google/protobuf/struct.proto
// Protobuf Java Version: 4.27.4
package com.google.protobuf;
/**
* Protobuf type {@code google.protobuf.ListValue}
*/
public final class ListValue extends
com.google.protobuf.GeneratedMessageLite<
ListValue, ListValue.Builder> implements
// @@protoc_insertion_point(message_implements:google.protobuf.ListValue)
ListValueOrBuilder {
private ListValue() {
values_ = emptyProtobufList();
}
public static final int VALUES_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.ProtobufList values_;
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
@java.lang.Override
public java.util.List getValuesList() {
return values_;
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
public java.util.List extends com.google.protobuf.ValueOrBuilder>
getValuesOrBuilderList() {
return values_;
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
@java.lang.Override
public int getValuesCount() {
return values_.size();
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
@java.lang.Override
public com.google.protobuf.Value getValues(int index) {
return values_.get(index);
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
public com.google.protobuf.ValueOrBuilder getValuesOrBuilder(
int index) {
return values_.get(index);
}
private void ensureValuesIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = values_;
if (!tmp.isModifiable()) {
values_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
private void setValues(
int index, com.google.protobuf.Value value) {
value.getClass();
ensureValuesIsMutable();
values_.set(index, value);
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
private void addValues(com.google.protobuf.Value value) {
value.getClass();
ensureValuesIsMutable();
values_.add(value);
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
private void addValues(
int index, com.google.protobuf.Value value) {
value.getClass();
ensureValuesIsMutable();
values_.add(index, value);
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
private void addAllValues(
java.lang.Iterable extends com.google.protobuf.Value> values) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, values_);
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
private void clearValues() {
values_ = emptyProtobufList();
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
private void removeValues(int index) {
ensureValuesIsMutable();
values_.remove(index);
}
public static com.google.protobuf.ListValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.ListValue 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.google.protobuf.ListValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.ListValue 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.google.protobuf.ListValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.ListValue 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.google.protobuf.ListValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.ListValue 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.google.protobuf.ListValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.ListValue parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.google.protobuf.ListValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.ListValue 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.google.protobuf.ListValue prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code google.protobuf.ListValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protobuf.ListValue, Builder> implements
// @@protoc_insertion_point(builder_implements:google.protobuf.ListValue)
com.google.protobuf.ListValueOrBuilder {
// Construct using com.google.protobuf.ListValue.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
@java.lang.Override
public java.util.List getValuesList() {
return java.util.Collections.unmodifiableList(
instance.getValuesList());
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
@java.lang.Override
public int getValuesCount() {
return instance.getValuesCount();
}/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
@java.lang.Override
public com.google.protobuf.Value getValues(int index) {
return instance.getValues(index);
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
public Builder setValues(
int index, com.google.protobuf.Value value) {
copyOnWrite();
instance.setValues(index, value);
return this;
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
public Builder setValues(
int index, com.google.protobuf.Value.Builder builderForValue) {
copyOnWrite();
instance.setValues(index,
builderForValue.build());
return this;
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
public Builder addValues(com.google.protobuf.Value value) {
copyOnWrite();
instance.addValues(value);
return this;
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
public Builder addValues(
int index, com.google.protobuf.Value value) {
copyOnWrite();
instance.addValues(index, value);
return this;
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
public Builder addValues(
com.google.protobuf.Value.Builder builderForValue) {
copyOnWrite();
instance.addValues(builderForValue.build());
return this;
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
public Builder addValues(
int index, com.google.protobuf.Value.Builder builderForValue) {
copyOnWrite();
instance.addValues(index,
builderForValue.build());
return this;
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
public Builder addAllValues(
java.lang.Iterable extends com.google.protobuf.Value> values) {
copyOnWrite();
instance.addAllValues(values);
return this;
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
public Builder clearValues() {
copyOnWrite();
instance.clearValues();
return this;
}
/**
* repeated .google.protobuf.Value values = 1 [json_name = "values"];
*/
public Builder removeValues(int index) {
copyOnWrite();
instance.removeValues(index);
return this;
}
// @@protoc_insertion_point(builder_scope:google.protobuf.ListValue)
}
@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.google.protobuf.ListValue();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"values_",
com.google.protobuf.Value.class,
};
java.lang.String info =
"\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u001b";
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.google.protobuf.ListValue.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:google.protobuf.ListValue)
private static final com.google.protobuf.ListValue DEFAULT_INSTANCE;
static {
ListValue defaultInstance = new ListValue();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
ListValue.class, defaultInstance);
}
public static com.google.protobuf.ListValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}