Package com.google.api.expr.v1alpha1
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 int
private 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 void
buildPartial0
(Expr.CreateList result) private void
clear()
The elements part of the list.The indices within the elements list which are marked as optional elements.private void
private void
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getElements
(int index) The elements part of the list.getElementsBuilder
(int index) The elements part of the list.The elements part of the list.int
The 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.int
getOptionalIndices
(int index) The indices within the elements list which are marked as optional elements.int
The 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.FieldAccessorTable
final boolean
mergeFrom
(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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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_
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Expr.CreateList.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Expr.CreateList.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Expr.CreateList.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Expr.CreateList.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getElementsList
in interfaceExpr.CreateListOrBuilder
-
getElementsCount
public int getElementsCount()The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1;
- Specified by:
getElementsCount
in interfaceExpr.CreateListOrBuilder
-
getElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1;
- Specified by:
getElements
in 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:
getElementsOrBuilder
in interfaceExpr.CreateListOrBuilder
-
getElementsOrBuilderList
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1;
- Specified by:
getElementsOrBuilderList
in 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, internalGetElementsFieldBuilder()ExprOrBuilder> -
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:
getOptionalIndicesList
in 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:
getOptionalIndicesCount
in 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:
getOptionalIndices
in 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.
-