Package com.google.api.expr.v1alpha1
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.v1alpha1.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.v1alpha1.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.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.setMessageName(String value) The type name of the message to be created, empty when creating map literals.setMessageNameBytes(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
-
getMessageName
The type name of the message to be created, empty when creating map literals.
string message_name = 1 [json_name = "messageName"];- Specified by:
getMessageNamein interfaceExpr.CreateStructOrBuilder- Returns:
- The messageName.
-
getMessageNameBytes
public com.google.protobuf.ByteString getMessageNameBytes()The type name of the message to be created, empty when creating map literals.
string message_name = 1 [json_name = "messageName"];- Specified by:
getMessageNameBytesin interfaceExpr.CreateStructOrBuilder- Returns:
- The bytes for messageName.
-
setMessageName
The type name of the message to be created, empty when creating map literals.
string message_name = 1 [json_name = "messageName"];- Parameters:
value- The messageName to set.- Returns:
- This builder for chaining.
-
clearMessageName
The type name of the message to be created, empty when creating map literals.
string message_name = 1 [json_name = "messageName"];- Returns:
- This builder for chaining.
-
setMessageNameBytes
The type name of the message to be created, empty when creating map literals.
string message_name = 1 [json_name = "messageName"];- Parameters:
value- The bytes for messageName to set.- Returns:
- This builder for chaining.
-
getEntriesList
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.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.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];- Specified by:
getEntriesCountin interfaceExpr.CreateStructOrBuilder
-
getEntries
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];- Specified by:
getEntriesin interfaceExpr.CreateStructOrBuilder
-
setEntries
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.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.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; -
addEntries
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; -
addEntries
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; -
addEntries
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.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.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; -
addAllEntries
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; -
clearEntries
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"]; -
removeEntries
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2 [json_name = "entries"];
-