Package com.google.api.expr.v1beta1
Class Expr.CreateStruct.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Expr.CreateStruct,Expr.CreateStruct.Builder>
com.google.api.expr.v1beta1.Expr.CreateStruct.Builder
- All Implemented Interfaces:
Expr.CreateStructOrBuilder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Cloneable
- Enclosing class:
- Expr.CreateStruct
public static final class Expr.CreateStruct.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Expr.CreateStruct,Expr.CreateStruct.Builder>
implements Expr.CreateStructOrBuilder
A map or message creation expression.
Maps are constructed as `{'key_name': 'value'}`. Message construction is
similar, but prefixed with a type name and composed of field ids:
`types.MyType{field_id: 'value'}`.
Protobuf type google.api.expr.v1beta1.Expr.CreateStruct-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllEntries(Iterable<? extends Expr.CreateStruct.Entry> values) The entries in the creation expression.addEntries(int index, Expr.CreateStruct.Entry value) The entries in the creation expression.addEntries(int index, Expr.CreateStruct.Entry.Builder builderForValue) The entries in the creation expression.The entries in the creation expression.addEntries(Expr.CreateStruct.Entry.Builder builderForValue) The entries in the creation expression.The entries in the creation expression.The type name of the message to be created, empty when creating map literals.getEntries(int index) The entries in the creation expression.intThe entries in the creation expression.The entries in the creation expression.getType()The type name of the message to be created, empty when creating map literals.com.google.protobuf.ByteStringThe type name of the message to be created, empty when creating map literals.removeEntries(int index) The entries in the creation expression.setEntries(int index, Expr.CreateStruct.Entry value) The entries in the creation expression.setEntries(int index, Expr.CreateStruct.Entry.Builder builderForValue) The entries in the creation expression.The type name of the message to be created, empty when creating map literals.setTypeBytes(com.google.protobuf.ByteString value) The type name of the message to be created, empty when creating map literals.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
-
getType
The type name of the message to be created, empty when creating map literals.
string type = 1 [json_name = "type"];- Specified by:
getTypein interfaceExpr.CreateStructOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()The type name of the message to be created, empty when creating map literals.
string type = 1 [json_name = "type"];- Specified by:
getTypeBytesin interfaceExpr.CreateStructOrBuilder- Returns:
- The bytes for type.
-
setType
The type name of the message to be created, empty when creating map literals.
string type = 1 [json_name = "type"];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
The type name of the message to be created, empty when creating map literals.
string type = 1 [json_name = "type"];- Returns:
- This builder for chaining.
-
setTypeBytes
The type name of the message to be created, empty when creating map literals.
string type = 1 [json_name = "type"];- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
getEntriesList
The entries in the creation expression.
repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];- Specified by:
getEntriesListin interfaceExpr.CreateStructOrBuilder
-
getEntriesCount
public int getEntriesCount()The entries in the creation expression.
repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];- Specified by:
getEntriesCountin interfaceExpr.CreateStructOrBuilder
-
getEntries
The entries in the creation expression.
repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];- Specified by:
getEntriesin interfaceExpr.CreateStructOrBuilder
-
setEntries
The entries in the creation expression.
repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; -
setEntries
public Expr.CreateStruct.Builder setEntries(int index, Expr.CreateStruct.Entry.Builder builderForValue) The entries in the creation expression.
repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; -
addEntries
The entries in the creation expression.
repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; -
addEntries
The entries in the creation expression.
repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; -
addEntries
The entries in the creation expression.
repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; -
addEntries
public Expr.CreateStruct.Builder addEntries(int index, Expr.CreateStruct.Entry.Builder builderForValue) The entries in the creation expression.
repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; -
addAllEntries
The entries in the creation expression.
repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; -
clearEntries
The entries in the creation expression.
repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; -
removeEntries
The entries in the creation expression.
repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];
-