Package com.google.api.expr.v1alpha1
Class Expr.CreateStruct.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Expr.CreateStruct.Builder>
com.google.protobuf.GeneratedMessage.Builder<Expr.CreateStruct.Builder>
com.google.api.expr.v1alpha1.Expr.CreateStruct.Builder
- All Implemented Interfaces:
Expr.CreateStructOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
Expr.CreateStruct
public static final class Expr.CreateStruct.Builder
extends com.google.protobuf.GeneratedMessage.Builder<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
FieldsModifier and TypeFieldDescriptionprivate int
private List
<Expr.CreateStruct.Entry> private com.google.protobuf.RepeatedFieldBuilder
<Expr.CreateStruct.Entry, Expr.CreateStruct.Entry.Builder, Expr.CreateStruct.EntryOrBuilder> private Object
-
Constructor Summary
Constructors -
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.addEntriesBuilder
(int index) The entries in the creation expression.build()
private void
buildPartial0
(Expr.CreateStruct result) private void
clear()
The entries in the creation expression.The type name of the message to be created, empty when creating map literals.private void
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getEntries
(int index) The entries in the creation expression.getEntriesBuilder
(int index) The entries in the creation expression.The entries in the creation expression.int
The entries in the creation expression.private com.google.protobuf.RepeatedFieldBuilder
<Expr.CreateStruct.Entry, Expr.CreateStruct.Entry.Builder, Expr.CreateStruct.EntryOrBuilder> The entries in the creation expression.getEntriesOrBuilder
(int index) The entries in the creation expression.List
<? extends Expr.CreateStruct.EntryOrBuilder> The entries in the creation expression.The type name of the message to be created, empty when creating map literals.com.google.protobuf.ByteString
The type name of the message to be created, empty when creating map literals.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(Expr.CreateStruct other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) 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.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_ -
messageName_
-
entries_
-
entriesBuilder_
private com.google.protobuf.RepeatedFieldBuilder<Expr.CreateStruct.Entry,Expr.CreateStruct.Entry.Builder, entriesBuilder_Expr.CreateStruct.EntryOrBuilder>
-
-
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.CreateStruct.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.CreateStruct.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.CreateStruct.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.CreateStruct.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Expr.CreateStruct.Builder>
-
mergeFrom
public Expr.CreateStruct.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.CreateStruct.Builder>
- Throws:
IOException
-
getMessageName
The type name of the message to be created, empty when creating map literals.
string message_name = 1;
- Specified by:
getMessageName
in 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;
- Specified by:
getMessageNameBytes
in 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;
- 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;
- Returns:
- This builder for chaining.
-
setMessageNameBytes
The type name of the message to be created, empty when creating map literals.
string message_name = 1;
- Parameters:
value
- The bytes for messageName to set.- Returns:
- This builder for chaining.
-
ensureEntriesIsMutable
private void ensureEntriesIsMutable() -
getEntriesList
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2;
- Specified by:
getEntriesList
in interfaceExpr.CreateStructOrBuilder
-
getEntriesCount
public int getEntriesCount()The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2;
- Specified by:
getEntriesCount
in interfaceExpr.CreateStructOrBuilder
-
getEntries
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2;
- Specified by:
getEntries
in interfaceExpr.CreateStructOrBuilder
-
setEntries
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2;
-
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;
-
addEntries
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2;
-
addEntries
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2;
-
addEntries
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2;
-
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;
-
addAllEntries
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2;
-
clearEntries
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2;
-
removeEntries
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2;
-
getEntriesBuilder
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2;
-
getEntriesOrBuilder
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2;
- Specified by:
getEntriesOrBuilder
in interfaceExpr.CreateStructOrBuilder
-
getEntriesOrBuilderList
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2;
- Specified by:
getEntriesOrBuilderList
in interfaceExpr.CreateStructOrBuilder
-
addEntriesBuilder
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2;
-
addEntriesBuilder
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2;
-
getEntriesBuilderList
The entries in the creation expression.
repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2;
-
getEntriesFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<Expr.CreateStruct.Entry,Expr.CreateStruct.Entry.Builder, getEntriesFieldBuilder()Expr.CreateStruct.EntryOrBuilder>
-