Package com.google.api.expr.v1alpha1
Class Expr.CreateStruct.Entry.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Expr.CreateStruct.Entry,Expr.CreateStruct.Entry.Builder>
com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.Builder
- All Implemented Interfaces:
Expr.CreateStruct.EntryOrBuilder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
- Enclosing class:
- Expr.CreateStruct.Entry
public static final class Expr.CreateStruct.Entry.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Expr.CreateStruct.Entry,Expr.CreateStruct.Entry.Builder>
implements Expr.CreateStruct.EntryOrBuilder
Represents an entry.Protobuf type
google.api.expr.v1alpha1.Expr.CreateStruct.Entry
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionThe field key for a message creator statement.clearId()
Required.The key expression for a map creation statement.Whether the key-value pair is optional.Required.The field key for a message creator statement.com.google.protobuf.ByteString
The field key for a message creator statement.long
getId()
Required.The key expression for a map creation statement.boolean
Whether the key-value pair is optional.getValue()
Required.boolean
The field key for a message creator statement.boolean
The key expression for a map creation statement.boolean
hasValue()
Required.mergeMapKey
(Expr value) The key expression for a map creation statement.mergeValue
(Expr value) Required.setFieldKey
(String value) The field key for a message creator statement.setFieldKeyBytes
(com.google.protobuf.ByteString value) The field key for a message creator statement.setId
(long value) Required.The key expression for a map creation statement.setMapKey
(Expr.Builder builderForValue) The key expression for a map creation statement.setOptionalEntry
(boolean value) Whether the key-value pair is optional.Required.setValue
(Expr.Builder builderForValue) Required.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getKeyKindCase
- Specified by:
getKeyKindCase
in interfaceExpr.CreateStruct.EntryOrBuilder
-
clearKeyKind
-
getId
public long getId()Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to the node.
int64 id = 1 [json_name = "id"];
- Specified by:
getId
in interfaceExpr.CreateStruct.EntryOrBuilder
- Returns:
- The id.
-
setId
Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to the node.
int64 id = 1 [json_name = "id"];
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to the node.
int64 id = 1 [json_name = "id"];
- Returns:
- This builder for chaining.
-
hasFieldKey
public boolean hasFieldKey()The field key for a message creator statement.
string field_key = 2 [json_name = "fieldKey"];
- Specified by:
hasFieldKey
in interfaceExpr.CreateStruct.EntryOrBuilder
- Returns:
- Whether the fieldKey field is set.
-
getFieldKey
The field key for a message creator statement.
string field_key = 2 [json_name = "fieldKey"];
- Specified by:
getFieldKey
in interfaceExpr.CreateStruct.EntryOrBuilder
- Returns:
- The fieldKey.
-
getFieldKeyBytes
public com.google.protobuf.ByteString getFieldKeyBytes()The field key for a message creator statement.
string field_key = 2 [json_name = "fieldKey"];
- Specified by:
getFieldKeyBytes
in interfaceExpr.CreateStruct.EntryOrBuilder
- Returns:
- The bytes for fieldKey.
-
setFieldKey
The field key for a message creator statement.
string field_key = 2 [json_name = "fieldKey"];
- Parameters:
value
- The fieldKey to set.- Returns:
- This builder for chaining.
-
clearFieldKey
The field key for a message creator statement.
string field_key = 2 [json_name = "fieldKey"];
- Returns:
- This builder for chaining.
-
setFieldKeyBytes
The field key for a message creator statement.
string field_key = 2 [json_name = "fieldKey"];
- Parameters:
value
- The bytes for fieldKey to set.- Returns:
- This builder for chaining.
-
hasMapKey
public boolean hasMapKey()The key expression for a map creation statement.
.google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"];
- Specified by:
hasMapKey
in interfaceExpr.CreateStruct.EntryOrBuilder
- Returns:
- Whether the mapKey field is set.
-
getMapKey
The key expression for a map creation statement.
.google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"];
- Specified by:
getMapKey
in interfaceExpr.CreateStruct.EntryOrBuilder
- Returns:
- The mapKey.
-
setMapKey
The key expression for a map creation statement.
.google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"];
-
setMapKey
The key expression for a map creation statement.
.google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"];
-
mergeMapKey
The key expression for a map creation statement.
.google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"];
-
clearMapKey
The key expression for a map creation statement.
.google.api.expr.v1alpha1.Expr map_key = 3 [json_name = "mapKey"];
-
hasValue
public boolean hasValue()Required. The value assigned to the key. If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
.google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"];
- Specified by:
hasValue
in interfaceExpr.CreateStruct.EntryOrBuilder
- Returns:
- Whether the value field is set.
-
getValue
Required. The value assigned to the key. If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
.google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"];
- Specified by:
getValue
in interfaceExpr.CreateStruct.EntryOrBuilder
- Returns:
- The value.
-
setValue
Required. The value assigned to the key. If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
.google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"];
-
setValue
Required. The value assigned to the key. If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
.google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"];
-
mergeValue
Required. The value assigned to the key. If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
.google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"];
-
clearValue
Required. The value assigned to the key. If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
.google.api.expr.v1alpha1.Expr value = 4 [json_name = "value"];
-
getOptionalEntry
public boolean getOptionalEntry()Whether the key-value pair is optional.
bool optional_entry = 5 [json_name = "optionalEntry"];
- Specified by:
getOptionalEntry
in interfaceExpr.CreateStruct.EntryOrBuilder
- Returns:
- The optionalEntry.
-
setOptionalEntry
Whether the key-value pair is optional.
bool optional_entry = 5 [json_name = "optionalEntry"];
- Parameters:
value
- The optionalEntry to set.- Returns:
- This builder for chaining.
-
clearOptionalEntry
Whether the key-value pair is optional.
bool optional_entry = 5 [json_name = "optionalEntry"];
- Returns:
- This builder for chaining.
-