Package com.google.type
Class Expr.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Expr.Builder>
com.google.type.Expr.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ExprOrBuilder
,Cloneable
- Enclosing class:
- Expr
public static final class Expr.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Expr.Builder>
implements ExprOrBuilder
Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.Protobuf type
google.type.Expr
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Optional.Textual representation of an expression in Common Expression Language syntax.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Optional.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Optional.clone()
Optional.com.google.protobuf.ByteString
Optional.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Textual representation of an expression in Common Expression Language syntax.com.google.protobuf.ByteString
Textual representation of an expression in Common Expression Language syntax.Optional.com.google.protobuf.ByteString
Optional.getTitle()
Optional.com.google.protobuf.ByteString
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) final Expr.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setDescription
(String value) Optional.setDescriptionBytes
(com.google.protobuf.ByteString value) Optional.setExpression
(String value) Textual representation of an expression in Common Expression Language syntax.setExpressionBytes
(com.google.protobuf.ByteString value) Textual representation of an expression in Common Expression Language syntax.setLocation
(String value) Optional.setLocationBytes
(com.google.protobuf.ByteString value) Optional.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Optional.setTitleBytes
(com.google.protobuf.ByteString value) Optional.final Expr.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Expr.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.GeneratedMessageV3.Builder<Expr.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.GeneratedMessageV3.Builder<Expr.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
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Expr.Builder>
-
setField
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Expr.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Expr.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Expr.Builder>
-
setRepeatedField
public Expr.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Expr.Builder>
-
addRepeatedField
public Expr.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Expr.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Expr.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Expr.Builder>
-
mergeFrom
public Expr.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.Builder>
- Throws:
IOException
-
getExpression
Textual representation of an expression in Common Expression Language syntax.
string expression = 1;
- Specified by:
getExpression
in interfaceExprOrBuilder
- Returns:
- The expression.
-
getExpressionBytes
public com.google.protobuf.ByteString getExpressionBytes()Textual representation of an expression in Common Expression Language syntax.
string expression = 1;
- Specified by:
getExpressionBytes
in interfaceExprOrBuilder
- Returns:
- The bytes for expression.
-
setExpression
Textual representation of an expression in Common Expression Language syntax.
string expression = 1;
- Parameters:
value
- The expression to set.- Returns:
- This builder for chaining.
-
clearExpression
Textual representation of an expression in Common Expression Language syntax.
string expression = 1;
- Returns:
- This builder for chaining.
-
setExpressionBytes
Textual representation of an expression in Common Expression Language syntax.
string expression = 1;
- Parameters:
value
- The bytes for expression to set.- Returns:
- This builder for chaining.
-
getTitle
Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
string title = 2;
- Specified by:
getTitle
in interfaceExprOrBuilder
- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
string title = 2;
- Specified by:
getTitleBytes
in interfaceExprOrBuilder
- Returns:
- The bytes for title.
-
setTitle
Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
string title = 2;
- Parameters:
value
- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
string title = 2;
- Returns:
- This builder for chaining.
-
setTitleBytes
Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
string title = 2;
- Parameters:
value
- The bytes for title to set.- Returns:
- This builder for chaining.
-
getDescription
Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
string description = 3;
- Specified by:
getDescription
in interfaceExprOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
string description = 3;
- Specified by:
getDescriptionBytes
in interfaceExprOrBuilder
- Returns:
- The bytes for description.
-
setDescription
Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
string description = 3;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
string description = 3;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
string description = 3;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
getLocation
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
string location = 4;
- Specified by:
getLocation
in interfaceExprOrBuilder
- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
string location = 4;
- Specified by:
getLocationBytes
in interfaceExprOrBuilder
- Returns:
- The bytes for location.
-
setLocation
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
string location = 4;
- Parameters:
value
- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
string location = 4;
- Returns:
- This builder for chaining.
-
setLocationBytes
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
string location = 4;
- Parameters:
value
- The bytes for location to set.- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Expr.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Expr.Builder>
-