Class Expr.CreateList.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Expr.CreateList.Builder>
com.google.protobuf.GeneratedMessage.Builder<Expr.CreateList.Builder>
com.google.api.expr.v1alpha1.Expr.CreateList.Builder
- All Implemented Interfaces:
Expr.CreateListOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
- Enclosing class:
Expr.CreateList
public static final class Expr.CreateList.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Expr.CreateList.Builder>
implements Expr.CreateListOrBuilder
A list creation expression. Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogeneous, e.g. `dyn([1, 'hello', 2.0])`Protobuf type
google.api.expr.v1alpha1.Expr.CreateList-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate com.google.protobuf.RepeatedFieldBuilder<Expr, Expr.Builder, ExprOrBuilder> private com.google.protobuf.Internal.IntList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllElements(Iterable<? extends Expr> values) The elements part of the list.addAllOptionalIndices(Iterable<? extends Integer> values) The indices within the elements list which are marked as optional elements.addElements(int index, Expr value) The elements part of the list.addElements(int index, Expr.Builder builderForValue) The elements part of the list.addElements(Expr value) The elements part of the list.addElements(Expr.Builder builderForValue) The elements part of the list.The elements part of the list.addElementsBuilder(int index) The elements part of the list.addOptionalIndices(int value) The indices within the elements list which are marked as optional elements.build()private voidbuildPartial0(Expr.CreateList result) private voidclear()The elements part of the list.The indices within the elements list which are marked as optional elements.private voidprivate voidstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetElements(int index) The elements part of the list.getElementsBuilder(int index) The elements part of the list.The elements part of the list.intThe elements part of the list.The elements part of the list.getElementsOrBuilder(int index) The elements part of the list.List<? extends ExprOrBuilder> The elements part of the list.intgetOptionalIndices(int index) The indices within the elements list which are marked as optional elements.intThe indices within the elements list which are marked as optional elements.The indices within the elements list which are marked as optional elements.private com.google.protobuf.RepeatedFieldBuilder<Expr, Expr.Builder, ExprOrBuilder> protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Expr.CreateList other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeElements(int index) The elements part of the list.setElements(int index, Expr value) The elements part of the list.setElements(int index, Expr.Builder builderForValue) The elements part of the list.setOptionalIndices(int index, int value) The indices within the elements list which are marked as optional elements.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
elements_
-
elementsBuilder_
private com.google.protobuf.RepeatedFieldBuilder<Expr, Expr.Builder, ExprOrBuilder> elementsBuilder_ -
optionalIndices_
private com.google.protobuf.Internal.IntList optionalIndices_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Expr.CreateList.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Expr.CreateList.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Expr.CreateList.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Expr.CreateList.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Expr.CreateList.Builder>
-
mergeFrom
public Expr.CreateList.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Expr.CreateList.Builder>- Throws:
IOException
-
ensureElementsIsMutable
private void ensureElementsIsMutable() -
getElementsList
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1;- Specified by:
getElementsListin interfaceExpr.CreateListOrBuilder
-
getElementsCount
public int getElementsCount()The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1;- Specified by:
getElementsCountin interfaceExpr.CreateListOrBuilder
-
getElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1;- Specified by:
getElementsin interfaceExpr.CreateListOrBuilder
-
setElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1; -
setElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1; -
addElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1; -
addElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1; -
addElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1; -
addElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1; -
addAllElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1; -
clearElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1; -
removeElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1; -
getElementsBuilder
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1; -
getElementsOrBuilder
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1;- Specified by:
getElementsOrBuilderin interfaceExpr.CreateListOrBuilder
-
getElementsOrBuilderList
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1;- Specified by:
getElementsOrBuilderListin interfaceExpr.CreateListOrBuilder
-
addElementsBuilder
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1; -
addElementsBuilder
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1; -
getElementsBuilderList
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1; -
internalGetElementsFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<Expr, Expr.Builder, ExprOrBuilder> internalGetElementsFieldBuilder() -
ensureOptionalIndicesIsMutable
private void ensureOptionalIndicesIsMutable() -
getOptionalIndicesList
The indices within the elements list which are marked as optional elements. When an optional-typed value is present, the value it contains is included in the list. If the optional-typed value is absent, the list element is omitted from the CreateList result.
repeated int32 optional_indices = 2;- Specified by:
getOptionalIndicesListin interfaceExpr.CreateListOrBuilder- Returns:
- A list containing the optionalIndices.
-
getOptionalIndicesCount
public int getOptionalIndicesCount()The indices within the elements list which are marked as optional elements. When an optional-typed value is present, the value it contains is included in the list. If the optional-typed value is absent, the list element is omitted from the CreateList result.
repeated int32 optional_indices = 2;- Specified by:
getOptionalIndicesCountin interfaceExpr.CreateListOrBuilder- Returns:
- The count of optionalIndices.
-
getOptionalIndices
public int getOptionalIndices(int index) The indices within the elements list which are marked as optional elements. When an optional-typed value is present, the value it contains is included in the list. If the optional-typed value is absent, the list element is omitted from the CreateList result.
repeated int32 optional_indices = 2;- Specified by:
getOptionalIndicesin interfaceExpr.CreateListOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The optionalIndices at the given index.
-
setOptionalIndices
The indices within the elements list which are marked as optional elements. When an optional-typed value is present, the value it contains is included in the list. If the optional-typed value is absent, the list element is omitted from the CreateList result.
repeated int32 optional_indices = 2;- Parameters:
index- The index to set the value at.value- The optionalIndices to set.- Returns:
- This builder for chaining.
-
addOptionalIndices
The indices within the elements list which are marked as optional elements. When an optional-typed value is present, the value it contains is included in the list. If the optional-typed value is absent, the list element is omitted from the CreateList result.
repeated int32 optional_indices = 2;- Parameters:
value- The optionalIndices to add.- Returns:
- This builder for chaining.
-
addAllOptionalIndices
The indices within the elements list which are marked as optional elements. When an optional-typed value is present, the value it contains is included in the list. If the optional-typed value is absent, the list element is omitted from the CreateList result.
repeated int32 optional_indices = 2;- Parameters:
values- The optionalIndices to add.- Returns:
- This builder for chaining.
-
clearOptionalIndices
The indices within the elements list which are marked as optional elements. When an optional-typed value is present, the value it contains is included in the list. If the optional-typed value is absent, the list element is omitted from the CreateList result.
repeated int32 optional_indices = 2;- Returns:
- This builder for chaining.
-