All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.protobuf.ListValue Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/protobuf/struct.proto

package com.google.protobuf;

/**
 * 
 * `ListValue` is a wrapper around a repeated field of values.
 * The JSON representation for `ListValue` is JSON array.
 * 
* * 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 field of dynamically typed values.
   * 
* * repeated .google.protobuf.Value values = 1; */ @java.lang.Override public java.util.List getValuesList() { return values_; } /** *
   * Repeated field of dynamically typed values.
   * 
* * repeated .google.protobuf.Value values = 1; */ public java.util.List getValuesOrBuilderList() { return values_; } /** *
   * Repeated field of dynamically typed values.
   * 
* * repeated .google.protobuf.Value values = 1; */ @java.lang.Override public int getValuesCount() { return values_.size(); } /** *
   * Repeated field of dynamically typed values.
   * 
* * repeated .google.protobuf.Value values = 1; */ @java.lang.Override public com.google.protobuf.Value getValues(int index) { return values_.get(index); } /** *
   * Repeated field of dynamically typed values.
   * 
* * repeated .google.protobuf.Value values = 1; */ public com.google.protobuf.ValueOrBuilder getValuesOrBuilder( int index) { return values_.get(index); } private void ensureValuesIsMutable() { if (!values_.isModifiable()) { values_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(values_); } } /** *
   * Repeated field of dynamically typed values.
   * 
* * repeated .google.protobuf.Value values = 1; */ private void setValues( int index, com.google.protobuf.Value value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); } /** *
   * Repeated field of dynamically typed values.
   * 
* * repeated .google.protobuf.Value values = 1; */ private void setValues( int index, com.google.protobuf.Value.Builder builderForValue) { ensureValuesIsMutable(); values_.set(index, builderForValue.build()); } /** *
   * Repeated field of dynamically typed values.
   * 
* * repeated .google.protobuf.Value values = 1; */ private void addValues(com.google.protobuf.Value value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); } /** *
   * Repeated field of dynamically typed values.
   * 
* * repeated .google.protobuf.Value values = 1; */ private void addValues( int index, com.google.protobuf.Value value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(index, value); } /** *
   * Repeated field of dynamically typed values.
   * 
* * repeated .google.protobuf.Value values = 1; */ private void addValues( com.google.protobuf.Value.Builder builderForValue) { ensureValuesIsMutable(); values_.add(builderForValue.build()); } /** *
   * Repeated field of dynamically typed values.
   * 
* * repeated .google.protobuf.Value values = 1; */ private void addValues( int index, com.google.protobuf.Value.Builder builderForValue) { ensureValuesIsMutable(); values_.add(index, builderForValue.build()); } /** *
   * Repeated field of dynamically typed values.
   * 
* * repeated .google.protobuf.Value values = 1; */ private void addAllValues( java.lang.Iterable values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, values_); } /** *
   * Repeated field of dynamically typed values.
   * 
* * repeated .google.protobuf.Value values = 1; */ private void clearValues() { values_ = emptyProtobufList(); } /** *
   * Repeated field of dynamically typed values.
   * 
* * repeated .google.protobuf.Value values = 1; */ 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 (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   * `ListValue` is a wrapper around a repeated field of values.
   * The JSON representation for `ListValue` is JSON array.
   * 
* * 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 field of dynamically typed values.
     * 
* * repeated .google.protobuf.Value values = 1; */ @java.lang.Override public java.util.List getValuesList() { return java.util.Collections.unmodifiableList( instance.getValuesList()); } /** *
     * Repeated field of dynamically typed values.
     * 
* * repeated .google.protobuf.Value values = 1; */ @java.lang.Override public int getValuesCount() { return instance.getValuesCount(); }/** *
     * Repeated field of dynamically typed values.
     * 
* * repeated .google.protobuf.Value values = 1; */ @java.lang.Override public com.google.protobuf.Value getValues(int index) { return instance.getValues(index); } /** *
     * Repeated field of dynamically typed values.
     * 
* * repeated .google.protobuf.Value values = 1; */ public Builder setValues( int index, com.google.protobuf.Value value) { copyOnWrite(); instance.setValues(index, value); return this; } /** *
     * Repeated field of dynamically typed values.
     * 
* * repeated .google.protobuf.Value values = 1; */ public Builder setValues( int index, com.google.protobuf.Value.Builder builderForValue) { copyOnWrite(); instance.setValues(index, builderForValue); return this; } /** *
     * Repeated field of dynamically typed values.
     * 
* * repeated .google.protobuf.Value values = 1; */ public Builder addValues(com.google.protobuf.Value value) { copyOnWrite(); instance.addValues(value); return this; } /** *
     * Repeated field of dynamically typed values.
     * 
* * repeated .google.protobuf.Value values = 1; */ public Builder addValues( int index, com.google.protobuf.Value value) { copyOnWrite(); instance.addValues(index, value); return this; } /** *
     * Repeated field of dynamically typed values.
     * 
* * repeated .google.protobuf.Value values = 1; */ public Builder addValues( com.google.protobuf.Value.Builder builderForValue) { copyOnWrite(); instance.addValues(builderForValue); return this; } /** *
     * Repeated field of dynamically typed values.
     * 
* * repeated .google.protobuf.Value values = 1; */ public Builder addValues( int index, com.google.protobuf.Value.Builder builderForValue) { copyOnWrite(); instance.addValues(index, builderForValue); return this; } /** *
     * Repeated field of dynamically typed values.
     * 
* * repeated .google.protobuf.Value values = 1; */ public Builder addAllValues( java.lang.Iterable values) { copyOnWrite(); instance.addAllValues(values); return this; } /** *
     * Repeated field of dynamically typed values.
     * 
* * repeated .google.protobuf.Value values = 1; */ public Builder clearValues() { copyOnWrite(); instance.clearValues(); return this; } /** *
     * Repeated field of dynamically typed values.
     * 
* * repeated .google.protobuf.Value values = 1; */ 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(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy