Package com.google.api.expr.v1alpha1
Class Expr.CreateList.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Expr.CreateList,Expr.CreateList.Builder>
com.google.api.expr.v1alpha1.Expr.CreateList.Builder
- All Implemented Interfaces:
Expr.CreateListOrBuilder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Cloneable
- Enclosing class:
- Expr.CreateList
public static final class Expr.CreateList.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Expr.CreateList,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
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
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.addOptionalIndices(int value) The indices within the elements list which are marked as optional elements.The elements part of the list.The indices within the elements list which are marked as optional elements.getElements(int index) The elements part of the list.intThe elements part of the list.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.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.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getElementsList
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"];- Specified by:
getElementsListin interfaceExpr.CreateListOrBuilder
-
getElementsCount
public int getElementsCount()The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"];- Specified by:
getElementsCountin interfaceExpr.CreateListOrBuilder
-
getElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"];- Specified by:
getElementsin interfaceExpr.CreateListOrBuilder
-
setElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; -
setElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; -
addElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; -
addElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; -
addElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; -
addElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; -
addAllElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; -
clearElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; -
removeElements
The elements part of the list.
repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"]; -
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 [json_name = "optionalIndices"];- 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 [json_name = "optionalIndices"];- 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 [json_name = "optionalIndices"];- 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 [json_name = "optionalIndices"];- Parameters:
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 [json_name = "optionalIndices"];- 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 [json_name = "optionalIndices"];- 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 [json_name = "optionalIndices"];- Returns:
- This builder for chaining.
-