All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.expr.v1alpha1.Expr Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/api/expr/v1alpha1/syntax.proto

package com.google.api.expr.v1alpha1;

/**
 * 
 * An abstract representation of a common expression.
 * Expressions are abstractly represented as a collection of identifiers,
 * select statements, function calls, literals, and comprehensions. All
 * operators with the exception of the '.' operator are modelled as function
 * calls. This makes it easy to represent new operators into the existing AST.
 * All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at
 * type-check for an expression to be valid. A reference may either be a bare
 * identifier `name` or a qualified identifier `google.api.name`. References
 * may either refer to a value or a function declaration.
 * For example, the expression `google.api.name.startsWith('expr')` references
 * the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and
 * the function declaration `startsWith`.
 * 
* * Protobuf type {@code google.api.expr.v1alpha1.Expr} */ public final class Expr extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.api.expr.v1alpha1.Expr) ExprOrBuilder { private static final long serialVersionUID = 0L; // Use Expr.newBuilder() to construct. private Expr(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Expr() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Expr(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Expr( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 16: { id_ = input.readInt64(); break; } case 26: { com.google.api.expr.v1alpha1.Constant.Builder subBuilder = null; if (exprKindCase_ == 3) { subBuilder = ((com.google.api.expr.v1alpha1.Constant) exprKind_).toBuilder(); } exprKind_ = input.readMessage(com.google.api.expr.v1alpha1.Constant.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.api.expr.v1alpha1.Constant) exprKind_); exprKind_ = subBuilder.buildPartial(); } exprKindCase_ = 3; break; } case 34: { com.google.api.expr.v1alpha1.Expr.Ident.Builder subBuilder = null; if (exprKindCase_ == 4) { subBuilder = ((com.google.api.expr.v1alpha1.Expr.Ident) exprKind_).toBuilder(); } exprKind_ = input.readMessage(com.google.api.expr.v1alpha1.Expr.Ident.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.api.expr.v1alpha1.Expr.Ident) exprKind_); exprKind_ = subBuilder.buildPartial(); } exprKindCase_ = 4; break; } case 42: { com.google.api.expr.v1alpha1.Expr.Select.Builder subBuilder = null; if (exprKindCase_ == 5) { subBuilder = ((com.google.api.expr.v1alpha1.Expr.Select) exprKind_).toBuilder(); } exprKind_ = input.readMessage(com.google.api.expr.v1alpha1.Expr.Select.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.api.expr.v1alpha1.Expr.Select) exprKind_); exprKind_ = subBuilder.buildPartial(); } exprKindCase_ = 5; break; } case 50: { com.google.api.expr.v1alpha1.Expr.Call.Builder subBuilder = null; if (exprKindCase_ == 6) { subBuilder = ((com.google.api.expr.v1alpha1.Expr.Call) exprKind_).toBuilder(); } exprKind_ = input.readMessage(com.google.api.expr.v1alpha1.Expr.Call.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.api.expr.v1alpha1.Expr.Call) exprKind_); exprKind_ = subBuilder.buildPartial(); } exprKindCase_ = 6; break; } case 58: { com.google.api.expr.v1alpha1.Expr.CreateList.Builder subBuilder = null; if (exprKindCase_ == 7) { subBuilder = ((com.google.api.expr.v1alpha1.Expr.CreateList) exprKind_).toBuilder(); } exprKind_ = input.readMessage(com.google.api.expr.v1alpha1.Expr.CreateList.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.api.expr.v1alpha1.Expr.CreateList) exprKind_); exprKind_ = subBuilder.buildPartial(); } exprKindCase_ = 7; break; } case 66: { com.google.api.expr.v1alpha1.Expr.CreateStruct.Builder subBuilder = null; if (exprKindCase_ == 8) { subBuilder = ((com.google.api.expr.v1alpha1.Expr.CreateStruct) exprKind_).toBuilder(); } exprKind_ = input.readMessage(com.google.api.expr.v1alpha1.Expr.CreateStruct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.api.expr.v1alpha1.Expr.CreateStruct) exprKind_); exprKind_ = subBuilder.buildPartial(); } exprKindCase_ = 8; break; } case 74: { com.google.api.expr.v1alpha1.Expr.Comprehension.Builder subBuilder = null; if (exprKindCase_ == 9) { subBuilder = ((com.google.api.expr.v1alpha1.Expr.Comprehension) exprKind_).toBuilder(); } exprKind_ = input.readMessage(com.google.api.expr.v1alpha1.Expr.Comprehension.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.api.expr.v1alpha1.Expr.Comprehension) exprKind_); exprKind_ = subBuilder.buildPartial(); } exprKindCase_ = 9; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.expr.v1alpha1.Expr.class, com.google.api.expr.v1alpha1.Expr.Builder.class); } public interface IdentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.api.expr.v1alpha1.Expr.Ident) com.google.protobuf.MessageOrBuilder { /** *
     * Required. Holds a single, unqualified identifier, possibly preceded by a
     * '.'.
     * Qualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Required. Holds a single, unqualified identifier, possibly preceded by a
     * '.'.
     * Qualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } /** *
   * An identifier expression. e.g. `request`.
   * 
* * Protobuf type {@code google.api.expr.v1alpha1.Expr.Ident} */ public static final class Ident extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.api.expr.v1alpha1.Expr.Ident) IdentOrBuilder { private static final long serialVersionUID = 0L; // Use Ident.newBuilder() to construct. private Ident(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Ident() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Ident(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Ident( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Ident_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Ident_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.expr.v1alpha1.Expr.Ident.class, com.google.api.expr.v1alpha1.Expr.Ident.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Required. Holds a single, unqualified identifier, possibly preceded by a
     * '.'.
     * Qualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression.
     * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Required. Holds a single, unqualified identifier, possibly preceded by a
     * '.'.
     * Qualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression.
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.api.expr.v1alpha1.Expr.Ident)) { return super.equals(obj); } com.google.api.expr.v1alpha1.Expr.Ident other = (com.google.api.expr.v1alpha1.Expr.Ident) obj; if (!getName() .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.api.expr.v1alpha1.Expr.Ident parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.Ident parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Ident parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.Ident parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Ident parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.Ident parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Ident parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.Ident parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Ident parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.Ident parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Ident parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.Ident parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.api.expr.v1alpha1.Expr.Ident prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * An identifier expression. e.g. `request`.
     * 
* * Protobuf type {@code google.api.expr.v1alpha1.Expr.Ident} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.api.expr.v1alpha1.Expr.Ident) com.google.api.expr.v1alpha1.Expr.IdentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Ident_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Ident_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.expr.v1alpha1.Expr.Ident.class, com.google.api.expr.v1alpha1.Expr.Ident.Builder.class); } // Construct using com.google.api.expr.v1alpha1.Expr.Ident.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Ident_descriptor; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Ident getDefaultInstanceForType() { return com.google.api.expr.v1alpha1.Expr.Ident.getDefaultInstance(); } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Ident build() { com.google.api.expr.v1alpha1.Expr.Ident result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Ident buildPartial() { com.google.api.expr.v1alpha1.Expr.Ident result = new com.google.api.expr.v1alpha1.Expr.Ident(this); result.name_ = name_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.expr.v1alpha1.Expr.Ident) { return mergeFrom((com.google.api.expr.v1alpha1.Expr.Ident)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.api.expr.v1alpha1.Expr.Ident other) { if (other == com.google.api.expr.v1alpha1.Expr.Ident.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.api.expr.v1alpha1.Expr.Ident parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.api.expr.v1alpha1.Expr.Ident) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * Required. Holds a single, unqualified identifier, possibly preceded by a
       * '.'.
       * Qualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression.
       * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Required. Holds a single, unqualified identifier, possibly preceded by a
       * '.'.
       * Qualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression.
       * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Required. Holds a single, unqualified identifier, possibly preceded by a
       * '.'.
       * Qualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression.
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Required. Holds a single, unqualified identifier, possibly preceded by a
       * '.'.
       * Qualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Required. Holds a single, unqualified identifier, possibly preceded by a
       * '.'.
       * Qualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression.
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.api.expr.v1alpha1.Expr.Ident) } // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.Ident) private static final com.google.api.expr.v1alpha1.Expr.Ident DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.api.expr.v1alpha1.Expr.Ident(); } public static com.google.api.expr.v1alpha1.Expr.Ident getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Ident parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Ident(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Ident getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SelectOrBuilder extends // @@protoc_insertion_point(interface_extends:google.api.expr.v1alpha1.Expr.Select) com.google.protobuf.MessageOrBuilder { /** *
     * Required. The target of the selection expression.
     * For example, in the select expression `request.auth`, the `request`
     * portion of the expression is the `operand`.
     * 
* * .google.api.expr.v1alpha1.Expr operand = 1; * @return Whether the operand field is set. */ boolean hasOperand(); /** *
     * Required. The target of the selection expression.
     * For example, in the select expression `request.auth`, the `request`
     * portion of the expression is the `operand`.
     * 
* * .google.api.expr.v1alpha1.Expr operand = 1; * @return The operand. */ com.google.api.expr.v1alpha1.Expr getOperand(); /** *
     * Required. The target of the selection expression.
     * For example, in the select expression `request.auth`, the `request`
     * portion of the expression is the `operand`.
     * 
* * .google.api.expr.v1alpha1.Expr operand = 1; */ com.google.api.expr.v1alpha1.ExprOrBuilder getOperandOrBuilder(); /** *
     * Required. The name of the field to select.
     * For example, in the select expression `request.auth`, the `auth` portion
     * of the expression would be the `field`.
     * 
* * string field = 2; * @return The field. */ java.lang.String getField(); /** *
     * Required. The name of the field to select.
     * For example, in the select expression `request.auth`, the `auth` portion
     * of the expression would be the `field`.
     * 
* * string field = 2; * @return The bytes for field. */ com.google.protobuf.ByteString getFieldBytes(); /** *
     * Whether the select is to be interpreted as a field presence test.
     * This results from the macro `has(request.auth)`.
     * 
* * bool test_only = 3; * @return The testOnly. */ boolean getTestOnly(); } /** *
   * A field selection expression. e.g. `request.auth`.
   * 
* * Protobuf type {@code google.api.expr.v1alpha1.Expr.Select} */ public static final class Select extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.api.expr.v1alpha1.Expr.Select) SelectOrBuilder { private static final long serialVersionUID = 0L; // Use Select.newBuilder() to construct. private Select(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Select() { field_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Select(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Select( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.api.expr.v1alpha1.Expr.Builder subBuilder = null; if (operand_ != null) { subBuilder = operand_.toBuilder(); } operand_ = input.readMessage(com.google.api.expr.v1alpha1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(operand_); operand_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); field_ = s; break; } case 24: { testOnly_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Select_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Select_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.expr.v1alpha1.Expr.Select.class, com.google.api.expr.v1alpha1.Expr.Select.Builder.class); } public static final int OPERAND_FIELD_NUMBER = 1; private com.google.api.expr.v1alpha1.Expr operand_; /** *
     * Required. The target of the selection expression.
     * For example, in the select expression `request.auth`, the `request`
     * portion of the expression is the `operand`.
     * 
* * .google.api.expr.v1alpha1.Expr operand = 1; * @return Whether the operand field is set. */ @java.lang.Override public boolean hasOperand() { return operand_ != null; } /** *
     * Required. The target of the selection expression.
     * For example, in the select expression `request.auth`, the `request`
     * portion of the expression is the `operand`.
     * 
* * .google.api.expr.v1alpha1.Expr operand = 1; * @return The operand. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr getOperand() { return operand_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : operand_; } /** *
     * Required. The target of the selection expression.
     * For example, in the select expression `request.auth`, the `request`
     * portion of the expression is the `operand`.
     * 
* * .google.api.expr.v1alpha1.Expr operand = 1; */ @java.lang.Override public com.google.api.expr.v1alpha1.ExprOrBuilder getOperandOrBuilder() { return getOperand(); } public static final int FIELD_FIELD_NUMBER = 2; private volatile java.lang.Object field_; /** *
     * Required. The name of the field to select.
     * For example, in the select expression `request.auth`, the `auth` portion
     * of the expression would be the `field`.
     * 
* * string field = 2; * @return The field. */ @java.lang.Override public java.lang.String getField() { java.lang.Object ref = field_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); field_ = s; return s; } } /** *
     * Required. The name of the field to select.
     * For example, in the select expression `request.auth`, the `auth` portion
     * of the expression would be the `field`.
     * 
* * string field = 2; * @return The bytes for field. */ @java.lang.Override public com.google.protobuf.ByteString getFieldBytes() { java.lang.Object ref = field_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); field_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TEST_ONLY_FIELD_NUMBER = 3; private boolean testOnly_; /** *
     * Whether the select is to be interpreted as a field presence test.
     * This results from the macro `has(request.auth)`.
     * 
* * bool test_only = 3; * @return The testOnly. */ @java.lang.Override public boolean getTestOnly() { return testOnly_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (operand_ != null) { output.writeMessage(1, getOperand()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(field_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, field_); } if (testOnly_ != false) { output.writeBool(3, testOnly_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (operand_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperand()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(field_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, field_); } if (testOnly_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, testOnly_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.api.expr.v1alpha1.Expr.Select)) { return super.equals(obj); } com.google.api.expr.v1alpha1.Expr.Select other = (com.google.api.expr.v1alpha1.Expr.Select) obj; if (hasOperand() != other.hasOperand()) return false; if (hasOperand()) { if (!getOperand() .equals(other.getOperand())) return false; } if (!getField() .equals(other.getField())) return false; if (getTestOnly() != other.getTestOnly()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperand()) { hash = (37 * hash) + OPERAND_FIELD_NUMBER; hash = (53 * hash) + getOperand().hashCode(); } hash = (37 * hash) + FIELD_FIELD_NUMBER; hash = (53 * hash) + getField().hashCode(); hash = (37 * hash) + TEST_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTestOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.api.expr.v1alpha1.Expr.Select parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.Select parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Select parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.Select parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Select parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.Select parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Select parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.Select parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Select parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.Select parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Select parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.Select parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.api.expr.v1alpha1.Expr.Select prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A field selection expression. e.g. `request.auth`.
     * 
* * Protobuf type {@code google.api.expr.v1alpha1.Expr.Select} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.api.expr.v1alpha1.Expr.Select) com.google.api.expr.v1alpha1.Expr.SelectOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Select_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Select_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.expr.v1alpha1.Expr.Select.class, com.google.api.expr.v1alpha1.Expr.Select.Builder.class); } // Construct using com.google.api.expr.v1alpha1.Expr.Select.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (operandBuilder_ == null) { operand_ = null; } else { operand_ = null; operandBuilder_ = null; } field_ = ""; testOnly_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Select_descriptor; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Select getDefaultInstanceForType() { return com.google.api.expr.v1alpha1.Expr.Select.getDefaultInstance(); } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Select build() { com.google.api.expr.v1alpha1.Expr.Select result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Select buildPartial() { com.google.api.expr.v1alpha1.Expr.Select result = new com.google.api.expr.v1alpha1.Expr.Select(this); if (operandBuilder_ == null) { result.operand_ = operand_; } else { result.operand_ = operandBuilder_.build(); } result.field_ = field_; result.testOnly_ = testOnly_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.expr.v1alpha1.Expr.Select) { return mergeFrom((com.google.api.expr.v1alpha1.Expr.Select)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.api.expr.v1alpha1.Expr.Select other) { if (other == com.google.api.expr.v1alpha1.Expr.Select.getDefaultInstance()) return this; if (other.hasOperand()) { mergeOperand(other.getOperand()); } if (!other.getField().isEmpty()) { field_ = other.field_; onChanged(); } if (other.getTestOnly() != false) { setTestOnly(other.getTestOnly()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.api.expr.v1alpha1.Expr.Select parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.api.expr.v1alpha1.Expr.Select) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.api.expr.v1alpha1.Expr operand_; private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> operandBuilder_; /** *
       * Required. The target of the selection expression.
       * For example, in the select expression `request.auth`, the `request`
       * portion of the expression is the `operand`.
       * 
* * .google.api.expr.v1alpha1.Expr operand = 1; * @return Whether the operand field is set. */ public boolean hasOperand() { return operandBuilder_ != null || operand_ != null; } /** *
       * Required. The target of the selection expression.
       * For example, in the select expression `request.auth`, the `request`
       * portion of the expression is the `operand`.
       * 
* * .google.api.expr.v1alpha1.Expr operand = 1; * @return The operand. */ public com.google.api.expr.v1alpha1.Expr getOperand() { if (operandBuilder_ == null) { return operand_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : operand_; } else { return operandBuilder_.getMessage(); } } /** *
       * Required. The target of the selection expression.
       * For example, in the select expression `request.auth`, the `request`
       * portion of the expression is the `operand`.
       * 
* * .google.api.expr.v1alpha1.Expr operand = 1; */ public Builder setOperand(com.google.api.expr.v1alpha1.Expr value) { if (operandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operand_ = value; onChanged(); } else { operandBuilder_.setMessage(value); } return this; } /** *
       * Required. The target of the selection expression.
       * For example, in the select expression `request.auth`, the `request`
       * portion of the expression is the `operand`.
       * 
* * .google.api.expr.v1alpha1.Expr operand = 1; */ public Builder setOperand( com.google.api.expr.v1alpha1.Expr.Builder builderForValue) { if (operandBuilder_ == null) { operand_ = builderForValue.build(); onChanged(); } else { operandBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Required. The target of the selection expression.
       * For example, in the select expression `request.auth`, the `request`
       * portion of the expression is the `operand`.
       * 
* * .google.api.expr.v1alpha1.Expr operand = 1; */ public Builder mergeOperand(com.google.api.expr.v1alpha1.Expr value) { if (operandBuilder_ == null) { if (operand_ != null) { operand_ = com.google.api.expr.v1alpha1.Expr.newBuilder(operand_).mergeFrom(value).buildPartial(); } else { operand_ = value; } onChanged(); } else { operandBuilder_.mergeFrom(value); } return this; } /** *
       * Required. The target of the selection expression.
       * For example, in the select expression `request.auth`, the `request`
       * portion of the expression is the `operand`.
       * 
* * .google.api.expr.v1alpha1.Expr operand = 1; */ public Builder clearOperand() { if (operandBuilder_ == null) { operand_ = null; onChanged(); } else { operand_ = null; operandBuilder_ = null; } return this; } /** *
       * Required. The target of the selection expression.
       * For example, in the select expression `request.auth`, the `request`
       * portion of the expression is the `operand`.
       * 
* * .google.api.expr.v1alpha1.Expr operand = 1; */ public com.google.api.expr.v1alpha1.Expr.Builder getOperandBuilder() { onChanged(); return getOperandFieldBuilder().getBuilder(); } /** *
       * Required. The target of the selection expression.
       * For example, in the select expression `request.auth`, the `request`
       * portion of the expression is the `operand`.
       * 
* * .google.api.expr.v1alpha1.Expr operand = 1; */ public com.google.api.expr.v1alpha1.ExprOrBuilder getOperandOrBuilder() { if (operandBuilder_ != null) { return operandBuilder_.getMessageOrBuilder(); } else { return operand_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : operand_; } } /** *
       * Required. The target of the selection expression.
       * For example, in the select expression `request.auth`, the `request`
       * portion of the expression is the `operand`.
       * 
* * .google.api.expr.v1alpha1.Expr operand = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> getOperandFieldBuilder() { if (operandBuilder_ == null) { operandBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder>( getOperand(), getParentForChildren(), isClean()); operand_ = null; } return operandBuilder_; } private java.lang.Object field_ = ""; /** *
       * Required. The name of the field to select.
       * For example, in the select expression `request.auth`, the `auth` portion
       * of the expression would be the `field`.
       * 
* * string field = 2; * @return The field. */ public java.lang.String getField() { java.lang.Object ref = field_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); field_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Required. The name of the field to select.
       * For example, in the select expression `request.auth`, the `auth` portion
       * of the expression would be the `field`.
       * 
* * string field = 2; * @return The bytes for field. */ public com.google.protobuf.ByteString getFieldBytes() { java.lang.Object ref = field_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); field_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Required. The name of the field to select.
       * For example, in the select expression `request.auth`, the `auth` portion
       * of the expression would be the `field`.
       * 
* * string field = 2; * @param value The field to set. * @return This builder for chaining. */ public Builder setField( java.lang.String value) { if (value == null) { throw new NullPointerException(); } field_ = value; onChanged(); return this; } /** *
       * Required. The name of the field to select.
       * For example, in the select expression `request.auth`, the `auth` portion
       * of the expression would be the `field`.
       * 
* * string field = 2; * @return This builder for chaining. */ public Builder clearField() { field_ = getDefaultInstance().getField(); onChanged(); return this; } /** *
       * Required. The name of the field to select.
       * For example, in the select expression `request.auth`, the `auth` portion
       * of the expression would be the `field`.
       * 
* * string field = 2; * @param value The bytes for field to set. * @return This builder for chaining. */ public Builder setFieldBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); field_ = value; onChanged(); return this; } private boolean testOnly_ ; /** *
       * Whether the select is to be interpreted as a field presence test.
       * This results from the macro `has(request.auth)`.
       * 
* * bool test_only = 3; * @return The testOnly. */ @java.lang.Override public boolean getTestOnly() { return testOnly_; } /** *
       * Whether the select is to be interpreted as a field presence test.
       * This results from the macro `has(request.auth)`.
       * 
* * bool test_only = 3; * @param value The testOnly to set. * @return This builder for chaining. */ public Builder setTestOnly(boolean value) { testOnly_ = value; onChanged(); return this; } /** *
       * Whether the select is to be interpreted as a field presence test.
       * This results from the macro `has(request.auth)`.
       * 
* * bool test_only = 3; * @return This builder for chaining. */ public Builder clearTestOnly() { testOnly_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.api.expr.v1alpha1.Expr.Select) } // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.Select) private static final com.google.api.expr.v1alpha1.Expr.Select DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.api.expr.v1alpha1.Expr.Select(); } public static com.google.api.expr.v1alpha1.Expr.Select getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser() { @java.lang.Override public Select parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Select(input, extensionRegistry); } }; public static com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Select getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CallOrBuilder extends // @@protoc_insertion_point(interface_extends:google.api.expr.v1alpha1.Expr.Call) com.google.protobuf.MessageOrBuilder { /** *
     * The target of an method call-style expression. For example, `x` in
     * `x.f()`.
     * 
* * .google.api.expr.v1alpha1.Expr target = 1; * @return Whether the target field is set. */ boolean hasTarget(); /** *
     * The target of an method call-style expression. For example, `x` in
     * `x.f()`.
     * 
* * .google.api.expr.v1alpha1.Expr target = 1; * @return The target. */ com.google.api.expr.v1alpha1.Expr getTarget(); /** *
     * The target of an method call-style expression. For example, `x` in
     * `x.f()`.
     * 
* * .google.api.expr.v1alpha1.Expr target = 1; */ com.google.api.expr.v1alpha1.ExprOrBuilder getTargetOrBuilder(); /** *
     * Required. The name of the function or method being called.
     * 
* * string function = 2; * @return The function. */ java.lang.String getFunction(); /** *
     * Required. The name of the function or method being called.
     * 
* * string function = 2; * @return The bytes for function. */ com.google.protobuf.ByteString getFunctionBytes(); /** *
     * The arguments.
     * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ java.util.List getArgsList(); /** *
     * The arguments.
     * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ com.google.api.expr.v1alpha1.Expr getArgs(int index); /** *
     * The arguments.
     * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ int getArgsCount(); /** *
     * The arguments.
     * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ java.util.List getArgsOrBuilderList(); /** *
     * The arguments.
     * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ com.google.api.expr.v1alpha1.ExprOrBuilder getArgsOrBuilder( int index); } /** *
   * A call expression, including calls to predefined functions and operators.
   * For example, `value == 10`, `size(map_value)`.
   * 
* * Protobuf type {@code google.api.expr.v1alpha1.Expr.Call} */ public static final class Call extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.api.expr.v1alpha1.Expr.Call) CallOrBuilder { private static final long serialVersionUID = 0L; // Use Call.newBuilder() to construct. private Call(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Call() { function_ = ""; args_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Call(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Call( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.api.expr.v1alpha1.Expr.Builder subBuilder = null; if (target_ != null) { subBuilder = target_.toBuilder(); } target_ = input.readMessage(com.google.api.expr.v1alpha1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(target_); target_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); function_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { args_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } args_.add( input.readMessage(com.google.api.expr.v1alpha1.Expr.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { args_ = java.util.Collections.unmodifiableList(args_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Call_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Call_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.expr.v1alpha1.Expr.Call.class, com.google.api.expr.v1alpha1.Expr.Call.Builder.class); } public static final int TARGET_FIELD_NUMBER = 1; private com.google.api.expr.v1alpha1.Expr target_; /** *
     * The target of an method call-style expression. For example, `x` in
     * `x.f()`.
     * 
* * .google.api.expr.v1alpha1.Expr target = 1; * @return Whether the target field is set. */ @java.lang.Override public boolean hasTarget() { return target_ != null; } /** *
     * The target of an method call-style expression. For example, `x` in
     * `x.f()`.
     * 
* * .google.api.expr.v1alpha1.Expr target = 1; * @return The target. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr getTarget() { return target_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : target_; } /** *
     * The target of an method call-style expression. For example, `x` in
     * `x.f()`.
     * 
* * .google.api.expr.v1alpha1.Expr target = 1; */ @java.lang.Override public com.google.api.expr.v1alpha1.ExprOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int FUNCTION_FIELD_NUMBER = 2; private volatile java.lang.Object function_; /** *
     * Required. The name of the function or method being called.
     * 
* * string function = 2; * @return The function. */ @java.lang.Override public java.lang.String getFunction() { java.lang.Object ref = function_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); function_ = s; return s; } } /** *
     * Required. The name of the function or method being called.
     * 
* * string function = 2; * @return The bytes for function. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionBytes() { java.lang.Object ref = function_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); function_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ARGS_FIELD_NUMBER = 3; private java.util.List args_; /** *
     * The arguments.
     * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ @java.lang.Override public java.util.List getArgsList() { return args_; } /** *
     * The arguments.
     * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ @java.lang.Override public java.util.List getArgsOrBuilderList() { return args_; } /** *
     * The arguments.
     * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ @java.lang.Override public int getArgsCount() { return args_.size(); } /** *
     * The arguments.
     * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr getArgs(int index) { return args_.get(index); } /** *
     * The arguments.
     * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ @java.lang.Override public com.google.api.expr.v1alpha1.ExprOrBuilder getArgsOrBuilder( int index) { return args_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (target_ != null) { output.writeMessage(1, getTarget()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(function_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, function_); } for (int i = 0; i < args_.size(); i++) { output.writeMessage(3, args_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTarget()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(function_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, function_); } for (int i = 0; i < args_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, args_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.api.expr.v1alpha1.Expr.Call)) { return super.equals(obj); } com.google.api.expr.v1alpha1.Expr.Call other = (com.google.api.expr.v1alpha1.Expr.Call) obj; if (hasTarget() != other.hasTarget()) return false; if (hasTarget()) { if (!getTarget() .equals(other.getTarget())) return false; } if (!getFunction() .equals(other.getFunction())) return false; if (!getArgsList() .equals(other.getArgsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); } hash = (37 * hash) + FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getFunction().hashCode(); if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.api.expr.v1alpha1.Expr.Call parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.Call parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Call parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.Call parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Call parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.Call parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Call parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.Call parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Call parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.Call parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Call parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.Call parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.api.expr.v1alpha1.Expr.Call prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A call expression, including calls to predefined functions and operators.
     * For example, `value == 10`, `size(map_value)`.
     * 
* * Protobuf type {@code google.api.expr.v1alpha1.Expr.Call} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.api.expr.v1alpha1.Expr.Call) com.google.api.expr.v1alpha1.Expr.CallOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Call_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Call_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.expr.v1alpha1.Expr.Call.class, com.google.api.expr.v1alpha1.Expr.Call.Builder.class); } // Construct using com.google.api.expr.v1alpha1.Expr.Call.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getArgsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } function_ = ""; if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { argsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Call_descriptor; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Call getDefaultInstanceForType() { return com.google.api.expr.v1alpha1.Expr.Call.getDefaultInstance(); } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Call build() { com.google.api.expr.v1alpha1.Expr.Call result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Call buildPartial() { com.google.api.expr.v1alpha1.Expr.Call result = new com.google.api.expr.v1alpha1.Expr.Call(this); int from_bitField0_ = bitField0_; if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } result.function_ = function_; if (argsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { args_ = java.util.Collections.unmodifiableList(args_); bitField0_ = (bitField0_ & ~0x00000001); } result.args_ = args_; } else { result.args_ = argsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.expr.v1alpha1.Expr.Call) { return mergeFrom((com.google.api.expr.v1alpha1.Expr.Call)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.api.expr.v1alpha1.Expr.Call other) { if (other == com.google.api.expr.v1alpha1.Expr.Call.getDefaultInstance()) return this; if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (!other.getFunction().isEmpty()) { function_ = other.function_; onChanged(); } if (argsBuilder_ == null) { if (!other.args_.isEmpty()) { if (args_.isEmpty()) { args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureArgsIsMutable(); args_.addAll(other.args_); } onChanged(); } } else { if (!other.args_.isEmpty()) { if (argsBuilder_.isEmpty()) { argsBuilder_.dispose(); argsBuilder_ = null; args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000001); argsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getArgsFieldBuilder() : null; } else { argsBuilder_.addAllMessages(other.args_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.api.expr.v1alpha1.Expr.Call parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.api.expr.v1alpha1.Expr.Call) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.api.expr.v1alpha1.Expr target_; private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> targetBuilder_; /** *
       * The target of an method call-style expression. For example, `x` in
       * `x.f()`.
       * 
* * .google.api.expr.v1alpha1.Expr target = 1; * @return Whether the target field is set. */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** *
       * The target of an method call-style expression. For example, `x` in
       * `x.f()`.
       * 
* * .google.api.expr.v1alpha1.Expr target = 1; * @return The target. */ public com.google.api.expr.v1alpha1.Expr getTarget() { if (targetBuilder_ == null) { return target_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : target_; } else { return targetBuilder_.getMessage(); } } /** *
       * The target of an method call-style expression. For example, `x` in
       * `x.f()`.
       * 
* * .google.api.expr.v1alpha1.Expr target = 1; */ public Builder setTarget(com.google.api.expr.v1alpha1.Expr value) { if (targetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } target_ = value; onChanged(); } else { targetBuilder_.setMessage(value); } return this; } /** *
       * The target of an method call-style expression. For example, `x` in
       * `x.f()`.
       * 
* * .google.api.expr.v1alpha1.Expr target = 1; */ public Builder setTarget( com.google.api.expr.v1alpha1.Expr.Builder builderForValue) { if (targetBuilder_ == null) { target_ = builderForValue.build(); onChanged(); } else { targetBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The target of an method call-style expression. For example, `x` in
       * `x.f()`.
       * 
* * .google.api.expr.v1alpha1.Expr target = 1; */ public Builder mergeTarget(com.google.api.expr.v1alpha1.Expr value) { if (targetBuilder_ == null) { if (target_ != null) { target_ = com.google.api.expr.v1alpha1.Expr.newBuilder(target_).mergeFrom(value).buildPartial(); } else { target_ = value; } onChanged(); } else { targetBuilder_.mergeFrom(value); } return this; } /** *
       * The target of an method call-style expression. For example, `x` in
       * `x.f()`.
       * 
* * .google.api.expr.v1alpha1.Expr target = 1; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** *
       * The target of an method call-style expression. For example, `x` in
       * `x.f()`.
       * 
* * .google.api.expr.v1alpha1.Expr target = 1; */ public com.google.api.expr.v1alpha1.Expr.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** *
       * The target of an method call-style expression. For example, `x` in
       * `x.f()`.
       * 
* * .google.api.expr.v1alpha1.Expr target = 1; */ public com.google.api.expr.v1alpha1.ExprOrBuilder getTargetOrBuilder() { if (targetBuilder_ != null) { return targetBuilder_.getMessageOrBuilder(); } else { return target_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : target_; } } /** *
       * The target of an method call-style expression. For example, `x` in
       * `x.f()`.
       * 
* * .google.api.expr.v1alpha1.Expr target = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> getTargetFieldBuilder() { if (targetBuilder_ == null) { targetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder>( getTarget(), getParentForChildren(), isClean()); target_ = null; } return targetBuilder_; } private java.lang.Object function_ = ""; /** *
       * Required. The name of the function or method being called.
       * 
* * string function = 2; * @return The function. */ public java.lang.String getFunction() { java.lang.Object ref = function_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); function_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Required. The name of the function or method being called.
       * 
* * string function = 2; * @return The bytes for function. */ public com.google.protobuf.ByteString getFunctionBytes() { java.lang.Object ref = function_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); function_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Required. The name of the function or method being called.
       * 
* * string function = 2; * @param value The function to set. * @return This builder for chaining. */ public Builder setFunction( java.lang.String value) { if (value == null) { throw new NullPointerException(); } function_ = value; onChanged(); return this; } /** *
       * Required. The name of the function or method being called.
       * 
* * string function = 2; * @return This builder for chaining. */ public Builder clearFunction() { function_ = getDefaultInstance().getFunction(); onChanged(); return this; } /** *
       * Required. The name of the function or method being called.
       * 
* * string function = 2; * @param value The bytes for function to set. * @return This builder for chaining. */ public Builder setFunctionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); function_ = value; onChanged(); return this; } private java.util.List args_ = java.util.Collections.emptyList(); private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new java.util.ArrayList(args_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> argsBuilder_; /** *
       * The arguments.
       * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ public java.util.List getArgsList() { if (argsBuilder_ == null) { return java.util.Collections.unmodifiableList(args_); } else { return argsBuilder_.getMessageList(); } } /** *
       * The arguments.
       * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ public int getArgsCount() { if (argsBuilder_ == null) { return args_.size(); } else { return argsBuilder_.getCount(); } } /** *
       * The arguments.
       * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ public com.google.api.expr.v1alpha1.Expr getArgs(int index) { if (argsBuilder_ == null) { return args_.get(index); } else { return argsBuilder_.getMessage(index); } } /** *
       * The arguments.
       * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ public Builder setArgs( int index, com.google.api.expr.v1alpha1.Expr value) { if (argsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.set(index, value); onChanged(); } else { argsBuilder_.setMessage(index, value); } return this; } /** *
       * The arguments.
       * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ public Builder setArgs( int index, com.google.api.expr.v1alpha1.Expr.Builder builderForValue) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.set(index, builderForValue.build()); onChanged(); } else { argsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The arguments.
       * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ public Builder addArgs(com.google.api.expr.v1alpha1.Expr value) { if (argsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(value); onChanged(); } else { argsBuilder_.addMessage(value); } return this; } /** *
       * The arguments.
       * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ public Builder addArgs( int index, com.google.api.expr.v1alpha1.Expr value) { if (argsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(index, value); onChanged(); } else { argsBuilder_.addMessage(index, value); } return this; } /** *
       * The arguments.
       * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ public Builder addArgs( com.google.api.expr.v1alpha1.Expr.Builder builderForValue) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.add(builderForValue.build()); onChanged(); } else { argsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The arguments.
       * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ public Builder addArgs( int index, com.google.api.expr.v1alpha1.Expr.Builder builderForValue) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.add(index, builderForValue.build()); onChanged(); } else { argsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The arguments.
       * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ public Builder addAllArgs( java.lang.Iterable values) { if (argsBuilder_ == null) { ensureArgsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, args_); onChanged(); } else { argsBuilder_.addAllMessages(values); } return this; } /** *
       * The arguments.
       * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ public Builder clearArgs() { if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { argsBuilder_.clear(); } return this; } /** *
       * The arguments.
       * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ public Builder removeArgs(int index) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.remove(index); onChanged(); } else { argsBuilder_.remove(index); } return this; } /** *
       * The arguments.
       * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ public com.google.api.expr.v1alpha1.Expr.Builder getArgsBuilder( int index) { return getArgsFieldBuilder().getBuilder(index); } /** *
       * The arguments.
       * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ public com.google.api.expr.v1alpha1.ExprOrBuilder getArgsOrBuilder( int index) { if (argsBuilder_ == null) { return args_.get(index); } else { return argsBuilder_.getMessageOrBuilder(index); } } /** *
       * The arguments.
       * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ public java.util.List getArgsOrBuilderList() { if (argsBuilder_ != null) { return argsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(args_); } } /** *
       * The arguments.
       * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ public com.google.api.expr.v1alpha1.Expr.Builder addArgsBuilder() { return getArgsFieldBuilder().addBuilder( com.google.api.expr.v1alpha1.Expr.getDefaultInstance()); } /** *
       * The arguments.
       * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ public com.google.api.expr.v1alpha1.Expr.Builder addArgsBuilder( int index) { return getArgsFieldBuilder().addBuilder( index, com.google.api.expr.v1alpha1.Expr.getDefaultInstance()); } /** *
       * The arguments.
       * 
* * repeated .google.api.expr.v1alpha1.Expr args = 3; */ public java.util.List getArgsBuilderList() { return getArgsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> getArgsFieldBuilder() { if (argsBuilder_ == null) { argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder>( args_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); args_ = null; } return argsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.api.expr.v1alpha1.Expr.Call) } // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.Call) private static final com.google.api.expr.v1alpha1.Expr.Call DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.api.expr.v1alpha1.Expr.Call(); } public static com.google.api.expr.v1alpha1.Expr.Call getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Call parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Call(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Call getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateListOrBuilder extends // @@protoc_insertion_point(interface_extends:google.api.expr.v1alpha1.Expr.CreateList) com.google.protobuf.MessageOrBuilder { /** *
     * The elements part of the list.
     * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ java.util.List getElementsList(); /** *
     * The elements part of the list.
     * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ com.google.api.expr.v1alpha1.Expr getElements(int index); /** *
     * The elements part of the list.
     * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ int getElementsCount(); /** *
     * The elements part of the list.
     * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ java.util.List getElementsOrBuilderList(); /** *
     * The elements part of the list.
     * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ com.google.api.expr.v1alpha1.ExprOrBuilder getElementsOrBuilder( int index); /** *
     * The indices within the elements list which are marked as optional
     * elements.
     * When an optional-typed value is present, the value it contains
     * is included in the list. If the optional-typed value is absent, the list
     * element is omitted from the CreateList result.
     * 
* * repeated int32 optional_indices = 2; * @return A list containing the optionalIndices. */ java.util.List getOptionalIndicesList(); /** *
     * The indices within the elements list which are marked as optional
     * elements.
     * When an optional-typed value is present, the value it contains
     * is included in the list. If the optional-typed value is absent, the list
     * element is omitted from the CreateList result.
     * 
* * repeated int32 optional_indices = 2; * @return The count of optionalIndices. */ int getOptionalIndicesCount(); /** *
     * The indices within the elements list which are marked as optional
     * elements.
     * When an optional-typed value is present, the value it contains
     * is included in the list. If the optional-typed value is absent, the list
     * element is omitted from the CreateList result.
     * 
* * repeated int32 optional_indices = 2; * @param index The index of the element to return. * @return The optionalIndices at the given index. */ int getOptionalIndices(int index); } /** *
   * A list creation expression.
   * Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogeneous, e.g.
   * `dyn([1, 'hello', 2.0])`
   * 
* * Protobuf type {@code google.api.expr.v1alpha1.Expr.CreateList} */ public static final class CreateList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.api.expr.v1alpha1.Expr.CreateList) CreateListOrBuilder { private static final long serialVersionUID = 0L; // Use CreateList.newBuilder() to construct. private CreateList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateList() { elements_ = java.util.Collections.emptyList(); optionalIndices_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { elements_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } elements_.add( input.readMessage(com.google.api.expr.v1alpha1.Expr.parser(), extensionRegistry)); break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { optionalIndices_ = newIntList(); mutable_bitField0_ |= 0x00000002; } optionalIndices_.addInt(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { optionalIndices_ = newIntList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { optionalIndices_.addInt(input.readInt32()); } input.popLimit(limit); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { elements_ = java.util.Collections.unmodifiableList(elements_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { optionalIndices_.makeImmutable(); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_CreateList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_CreateList_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.expr.v1alpha1.Expr.CreateList.class, com.google.api.expr.v1alpha1.Expr.CreateList.Builder.class); } public static final int ELEMENTS_FIELD_NUMBER = 1; private java.util.List elements_; /** *
     * The elements part of the list.
     * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ @java.lang.Override public java.util.List getElementsList() { return elements_; } /** *
     * The elements part of the list.
     * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ @java.lang.Override public java.util.List getElementsOrBuilderList() { return elements_; } /** *
     * The elements part of the list.
     * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ @java.lang.Override public int getElementsCount() { return elements_.size(); } /** *
     * The elements part of the list.
     * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr getElements(int index) { return elements_.get(index); } /** *
     * The elements part of the list.
     * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ @java.lang.Override public com.google.api.expr.v1alpha1.ExprOrBuilder getElementsOrBuilder( int index) { return elements_.get(index); } public static final int OPTIONAL_INDICES_FIELD_NUMBER = 2; private com.google.protobuf.Internal.IntList optionalIndices_; /** *
     * The indices within the elements list which are marked as optional
     * elements.
     * When an optional-typed value is present, the value it contains
     * is included in the list. If the optional-typed value is absent, the list
     * element is omitted from the CreateList result.
     * 
* * repeated int32 optional_indices = 2; * @return A list containing the optionalIndices. */ @java.lang.Override public java.util.List getOptionalIndicesList() { return optionalIndices_; } /** *
     * The indices within the elements list which are marked as optional
     * elements.
     * When an optional-typed value is present, the value it contains
     * is included in the list. If the optional-typed value is absent, the list
     * element is omitted from the CreateList result.
     * 
* * repeated int32 optional_indices = 2; * @return The count of optionalIndices. */ public int getOptionalIndicesCount() { return optionalIndices_.size(); } /** *
     * The indices within the elements list which are marked as optional
     * elements.
     * When an optional-typed value is present, the value it contains
     * is included in the list. If the optional-typed value is absent, the list
     * element is omitted from the CreateList result.
     * 
* * repeated int32 optional_indices = 2; * @param index The index of the element to return. * @return The optionalIndices at the given index. */ public int getOptionalIndices(int index) { return optionalIndices_.getInt(index); } private int optionalIndicesMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < elements_.size(); i++) { output.writeMessage(1, elements_.get(i)); } if (getOptionalIndicesList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(optionalIndicesMemoizedSerializedSize); } for (int i = 0; i < optionalIndices_.size(); i++) { output.writeInt32NoTag(optionalIndices_.getInt(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < elements_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, elements_.get(i)); } { int dataSize = 0; for (int i = 0; i < optionalIndices_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(optionalIndices_.getInt(i)); } size += dataSize; if (!getOptionalIndicesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } optionalIndicesMemoizedSerializedSize = dataSize; } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.api.expr.v1alpha1.Expr.CreateList)) { return super.equals(obj); } com.google.api.expr.v1alpha1.Expr.CreateList other = (com.google.api.expr.v1alpha1.Expr.CreateList) obj; if (!getElementsList() .equals(other.getElementsList())) return false; if (!getOptionalIndicesList() .equals(other.getOptionalIndicesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getElementsCount() > 0) { hash = (37 * hash) + ELEMENTS_FIELD_NUMBER; hash = (53 * hash) + getElementsList().hashCode(); } if (getOptionalIndicesCount() > 0) { hash = (37 * hash) + OPTIONAL_INDICES_FIELD_NUMBER; hash = (53 * hash) + getOptionalIndicesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.api.expr.v1alpha1.Expr.CreateList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.CreateList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.CreateList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.CreateList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.CreateList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.CreateList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.CreateList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.CreateList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.CreateList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.CreateList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.CreateList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.CreateList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.api.expr.v1alpha1.Expr.CreateList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A list creation expression.
     * Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogeneous, e.g.
     * `dyn([1, 'hello', 2.0])`
     * 
* * Protobuf type {@code google.api.expr.v1alpha1.Expr.CreateList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.api.expr.v1alpha1.Expr.CreateList) com.google.api.expr.v1alpha1.Expr.CreateListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_CreateList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_CreateList_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.expr.v1alpha1.Expr.CreateList.class, com.google.api.expr.v1alpha1.Expr.CreateList.Builder.class); } // Construct using com.google.api.expr.v1alpha1.Expr.CreateList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getElementsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (elementsBuilder_ == null) { elements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { elementsBuilder_.clear(); } optionalIndices_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_CreateList_descriptor; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateList getDefaultInstanceForType() { return com.google.api.expr.v1alpha1.Expr.CreateList.getDefaultInstance(); } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateList build() { com.google.api.expr.v1alpha1.Expr.CreateList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateList buildPartial() { com.google.api.expr.v1alpha1.Expr.CreateList result = new com.google.api.expr.v1alpha1.Expr.CreateList(this); int from_bitField0_ = bitField0_; if (elementsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { elements_ = java.util.Collections.unmodifiableList(elements_); bitField0_ = (bitField0_ & ~0x00000001); } result.elements_ = elements_; } else { result.elements_ = elementsBuilder_.build(); } if (((bitField0_ & 0x00000002) != 0)) { optionalIndices_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000002); } result.optionalIndices_ = optionalIndices_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.expr.v1alpha1.Expr.CreateList) { return mergeFrom((com.google.api.expr.v1alpha1.Expr.CreateList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.api.expr.v1alpha1.Expr.CreateList other) { if (other == com.google.api.expr.v1alpha1.Expr.CreateList.getDefaultInstance()) return this; if (elementsBuilder_ == null) { if (!other.elements_.isEmpty()) { if (elements_.isEmpty()) { elements_ = other.elements_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureElementsIsMutable(); elements_.addAll(other.elements_); } onChanged(); } } else { if (!other.elements_.isEmpty()) { if (elementsBuilder_.isEmpty()) { elementsBuilder_.dispose(); elementsBuilder_ = null; elements_ = other.elements_; bitField0_ = (bitField0_ & ~0x00000001); elementsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getElementsFieldBuilder() : null; } else { elementsBuilder_.addAllMessages(other.elements_); } } } if (!other.optionalIndices_.isEmpty()) { if (optionalIndices_.isEmpty()) { optionalIndices_ = other.optionalIndices_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureOptionalIndicesIsMutable(); optionalIndices_.addAll(other.optionalIndices_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.api.expr.v1alpha1.Expr.CreateList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.api.expr.v1alpha1.Expr.CreateList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List elements_ = java.util.Collections.emptyList(); private void ensureElementsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { elements_ = new java.util.ArrayList(elements_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> elementsBuilder_; /** *
       * The elements part of the list.
       * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ public java.util.List getElementsList() { if (elementsBuilder_ == null) { return java.util.Collections.unmodifiableList(elements_); } else { return elementsBuilder_.getMessageList(); } } /** *
       * The elements part of the list.
       * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ public int getElementsCount() { if (elementsBuilder_ == null) { return elements_.size(); } else { return elementsBuilder_.getCount(); } } /** *
       * The elements part of the list.
       * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ public com.google.api.expr.v1alpha1.Expr getElements(int index) { if (elementsBuilder_ == null) { return elements_.get(index); } else { return elementsBuilder_.getMessage(index); } } /** *
       * The elements part of the list.
       * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ public Builder setElements( int index, com.google.api.expr.v1alpha1.Expr value) { if (elementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureElementsIsMutable(); elements_.set(index, value); onChanged(); } else { elementsBuilder_.setMessage(index, value); } return this; } /** *
       * The elements part of the list.
       * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ public Builder setElements( int index, com.google.api.expr.v1alpha1.Expr.Builder builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.set(index, builderForValue.build()); onChanged(); } else { elementsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The elements part of the list.
       * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ public Builder addElements(com.google.api.expr.v1alpha1.Expr value) { if (elementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureElementsIsMutable(); elements_.add(value); onChanged(); } else { elementsBuilder_.addMessage(value); } return this; } /** *
       * The elements part of the list.
       * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ public Builder addElements( int index, com.google.api.expr.v1alpha1.Expr value) { if (elementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureElementsIsMutable(); elements_.add(index, value); onChanged(); } else { elementsBuilder_.addMessage(index, value); } return this; } /** *
       * The elements part of the list.
       * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ public Builder addElements( com.google.api.expr.v1alpha1.Expr.Builder builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.add(builderForValue.build()); onChanged(); } else { elementsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The elements part of the list.
       * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ public Builder addElements( int index, com.google.api.expr.v1alpha1.Expr.Builder builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.add(index, builderForValue.build()); onChanged(); } else { elementsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The elements part of the list.
       * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ public Builder addAllElements( java.lang.Iterable values) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, elements_); onChanged(); } else { elementsBuilder_.addAllMessages(values); } return this; } /** *
       * The elements part of the list.
       * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ public Builder clearElements() { if (elementsBuilder_ == null) { elements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { elementsBuilder_.clear(); } return this; } /** *
       * The elements part of the list.
       * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ public Builder removeElements(int index) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.remove(index); onChanged(); } else { elementsBuilder_.remove(index); } return this; } /** *
       * The elements part of the list.
       * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ public com.google.api.expr.v1alpha1.Expr.Builder getElementsBuilder( int index) { return getElementsFieldBuilder().getBuilder(index); } /** *
       * The elements part of the list.
       * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ public com.google.api.expr.v1alpha1.ExprOrBuilder getElementsOrBuilder( int index) { if (elementsBuilder_ == null) { return elements_.get(index); } else { return elementsBuilder_.getMessageOrBuilder(index); } } /** *
       * The elements part of the list.
       * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ public java.util.List getElementsOrBuilderList() { if (elementsBuilder_ != null) { return elementsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(elements_); } } /** *
       * The elements part of the list.
       * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ public com.google.api.expr.v1alpha1.Expr.Builder addElementsBuilder() { return getElementsFieldBuilder().addBuilder( com.google.api.expr.v1alpha1.Expr.getDefaultInstance()); } /** *
       * The elements part of the list.
       * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ public com.google.api.expr.v1alpha1.Expr.Builder addElementsBuilder( int index) { return getElementsFieldBuilder().addBuilder( index, com.google.api.expr.v1alpha1.Expr.getDefaultInstance()); } /** *
       * The elements part of the list.
       * 
* * repeated .google.api.expr.v1alpha1.Expr elements = 1; */ public java.util.List getElementsBuilderList() { return getElementsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> getElementsFieldBuilder() { if (elementsBuilder_ == null) { elementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder>( elements_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); elements_ = null; } return elementsBuilder_; } private com.google.protobuf.Internal.IntList optionalIndices_ = emptyIntList(); private void ensureOptionalIndicesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { optionalIndices_ = mutableCopy(optionalIndices_); bitField0_ |= 0x00000002; } } /** *
       * The indices within the elements list which are marked as optional
       * elements.
       * When an optional-typed value is present, the value it contains
       * is included in the list. If the optional-typed value is absent, the list
       * element is omitted from the CreateList result.
       * 
* * repeated int32 optional_indices = 2; * @return A list containing the optionalIndices. */ public java.util.List getOptionalIndicesList() { return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(optionalIndices_) : optionalIndices_; } /** *
       * The indices within the elements list which are marked as optional
       * elements.
       * When an optional-typed value is present, the value it contains
       * is included in the list. If the optional-typed value is absent, the list
       * element is omitted from the CreateList result.
       * 
* * repeated int32 optional_indices = 2; * @return The count of optionalIndices. */ public int getOptionalIndicesCount() { return optionalIndices_.size(); } /** *
       * The indices within the elements list which are marked as optional
       * elements.
       * When an optional-typed value is present, the value it contains
       * is included in the list. If the optional-typed value is absent, the list
       * element is omitted from the CreateList result.
       * 
* * repeated int32 optional_indices = 2; * @param index The index of the element to return. * @return The optionalIndices at the given index. */ public int getOptionalIndices(int index) { return optionalIndices_.getInt(index); } /** *
       * The indices within the elements list which are marked as optional
       * elements.
       * When an optional-typed value is present, the value it contains
       * is included in the list. If the optional-typed value is absent, the list
       * element is omitted from the CreateList result.
       * 
* * repeated int32 optional_indices = 2; * @param index The index to set the value at. * @param value The optionalIndices to set. * @return This builder for chaining. */ public Builder setOptionalIndices( int index, int value) { ensureOptionalIndicesIsMutable(); optionalIndices_.setInt(index, value); onChanged(); return this; } /** *
       * The indices within the elements list which are marked as optional
       * elements.
       * When an optional-typed value is present, the value it contains
       * is included in the list. If the optional-typed value is absent, the list
       * element is omitted from the CreateList result.
       * 
* * repeated int32 optional_indices = 2; * @param value The optionalIndices to add. * @return This builder for chaining. */ public Builder addOptionalIndices(int value) { ensureOptionalIndicesIsMutable(); optionalIndices_.addInt(value); onChanged(); return this; } /** *
       * The indices within the elements list which are marked as optional
       * elements.
       * When an optional-typed value is present, the value it contains
       * is included in the list. If the optional-typed value is absent, the list
       * element is omitted from the CreateList result.
       * 
* * repeated int32 optional_indices = 2; * @param values The optionalIndices to add. * @return This builder for chaining. */ public Builder addAllOptionalIndices( java.lang.Iterable values) { ensureOptionalIndicesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, optionalIndices_); onChanged(); return this; } /** *
       * The indices within the elements list which are marked as optional
       * elements.
       * When an optional-typed value is present, the value it contains
       * is included in the list. If the optional-typed value is absent, the list
       * element is omitted from the CreateList result.
       * 
* * repeated int32 optional_indices = 2; * @return This builder for chaining. */ public Builder clearOptionalIndices() { optionalIndices_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.api.expr.v1alpha1.Expr.CreateList) } // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.CreateList) private static final com.google.api.expr.v1alpha1.Expr.CreateList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.api.expr.v1alpha1.Expr.CreateList(); } public static com.google.api.expr.v1alpha1.Expr.CreateList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateList(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateStructOrBuilder extends // @@protoc_insertion_point(interface_extends:google.api.expr.v1alpha1.Expr.CreateStruct) com.google.protobuf.MessageOrBuilder { /** *
     * The type name of the message to be created, empty when creating map
     * literals.
     * 
* * string message_name = 1; * @return The messageName. */ java.lang.String getMessageName(); /** *
     * The type name of the message to be created, empty when creating map
     * literals.
     * 
* * string message_name = 1; * @return The bytes for messageName. */ com.google.protobuf.ByteString getMessageNameBytes(); /** *
     * The entries in the creation expression.
     * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ java.util.List getEntriesList(); /** *
     * The entries in the creation expression.
     * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry getEntries(int index); /** *
     * The entries in the creation expression.
     * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ int getEntriesCount(); /** *
     * The entries in the creation expression.
     * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ java.util.List getEntriesOrBuilderList(); /** *
     * The entries in the creation expression.
     * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ com.google.api.expr.v1alpha1.Expr.CreateStruct.EntryOrBuilder getEntriesOrBuilder( int index); } /** *
   * 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 {@code google.api.expr.v1alpha1.Expr.CreateStruct} */ public static final class CreateStruct extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.api.expr.v1alpha1.Expr.CreateStruct) CreateStructOrBuilder { private static final long serialVersionUID = 0L; // Use CreateStruct.newBuilder() to construct. private CreateStruct(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateStruct() { messageName_ = ""; entries_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateStruct(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateStruct( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); messageName_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } entries_.add( input.readMessage(com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_CreateStruct_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_CreateStruct_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.expr.v1alpha1.Expr.CreateStruct.class, com.google.api.expr.v1alpha1.Expr.CreateStruct.Builder.class); } public interface EntryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) com.google.protobuf.MessageOrBuilder { /** *
       * 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; * @return The id. */ long getId(); /** *
       * The field key for a message creator statement.
       * 
* * string field_key = 2; * @return Whether the fieldKey field is set. */ boolean hasFieldKey(); /** *
       * The field key for a message creator statement.
       * 
* * string field_key = 2; * @return The fieldKey. */ java.lang.String getFieldKey(); /** *
       * The field key for a message creator statement.
       * 
* * string field_key = 2; * @return The bytes for fieldKey. */ com.google.protobuf.ByteString getFieldKeyBytes(); /** *
       * The key expression for a map creation statement.
       * 
* * .google.api.expr.v1alpha1.Expr map_key = 3; * @return Whether the mapKey field is set. */ boolean hasMapKey(); /** *
       * The key expression for a map creation statement.
       * 
* * .google.api.expr.v1alpha1.Expr map_key = 3; * @return The mapKey. */ com.google.api.expr.v1alpha1.Expr getMapKey(); /** *
       * The key expression for a map creation statement.
       * 
* * .google.api.expr.v1alpha1.Expr map_key = 3; */ com.google.api.expr.v1alpha1.ExprOrBuilder getMapKeyOrBuilder(); /** *
       * 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; * @return Whether the value field is set. */ 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; * @return The value. */ com.google.api.expr.v1alpha1.Expr 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; */ com.google.api.expr.v1alpha1.ExprOrBuilder getValueOrBuilder(); /** *
       * Whether the key-value pair is optional.
       * 
* * bool optional_entry = 5; * @return The optionalEntry. */ boolean getOptionalEntry(); public com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.KeyKindCase getKeyKindCase(); } /** *
     * Represents an entry.
     * 
* * Protobuf type {@code google.api.expr.v1alpha1.Expr.CreateStruct.Entry} */ public static final class Entry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) EntryOrBuilder { private static final long serialVersionUID = 0L; // Use Entry.newBuilder() to construct. private Entry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Entry() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Entry(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Entry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { id_ = input.readInt64(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); keyKindCase_ = 2; keyKind_ = s; break; } case 26: { com.google.api.expr.v1alpha1.Expr.Builder subBuilder = null; if (keyKindCase_ == 3) { subBuilder = ((com.google.api.expr.v1alpha1.Expr) keyKind_).toBuilder(); } keyKind_ = input.readMessage(com.google.api.expr.v1alpha1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.api.expr.v1alpha1.Expr) keyKind_); keyKind_ = subBuilder.buildPartial(); } keyKindCase_ = 3; break; } case 34: { com.google.api.expr.v1alpha1.Expr.Builder subBuilder = null; if (value_ != null) { subBuilder = value_.toBuilder(); } value_ = input.readMessage(com.google.api.expr.v1alpha1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(value_); value_ = subBuilder.buildPartial(); } break; } case 40: { optionalEntry_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_CreateStruct_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_CreateStruct_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.class, com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.Builder.class); } private int keyKindCase_ = 0; private java.lang.Object keyKind_; public enum KeyKindCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FIELD_KEY(2), MAP_KEY(3), KEYKIND_NOT_SET(0); private final int value; private KeyKindCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static KeyKindCase valueOf(int value) { return forNumber(value); } public static KeyKindCase forNumber(int value) { switch (value) { case 2: return FIELD_KEY; case 3: return MAP_KEY; case 0: return KEYKIND_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public KeyKindCase getKeyKindCase() { return KeyKindCase.forNumber( keyKindCase_); } public static final int ID_FIELD_NUMBER = 1; private long id_; /** *
       * 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; * @return The id. */ @java.lang.Override public long getId() { return id_; } public static final int FIELD_KEY_FIELD_NUMBER = 2; /** *
       * The field key for a message creator statement.
       * 
* * string field_key = 2; * @return Whether the fieldKey field is set. */ public boolean hasFieldKey() { return keyKindCase_ == 2; } /** *
       * The field key for a message creator statement.
       * 
* * string field_key = 2; * @return The fieldKey. */ public java.lang.String getFieldKey() { java.lang.Object ref = ""; if (keyKindCase_ == 2) { ref = keyKind_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (keyKindCase_ == 2) { keyKind_ = s; } return s; } } /** *
       * The field key for a message creator statement.
       * 
* * string field_key = 2; * @return The bytes for fieldKey. */ public com.google.protobuf.ByteString getFieldKeyBytes() { java.lang.Object ref = ""; if (keyKindCase_ == 2) { ref = keyKind_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (keyKindCase_ == 2) { keyKind_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MAP_KEY_FIELD_NUMBER = 3; /** *
       * The key expression for a map creation statement.
       * 
* * .google.api.expr.v1alpha1.Expr map_key = 3; * @return Whether the mapKey field is set. */ @java.lang.Override public boolean hasMapKey() { return keyKindCase_ == 3; } /** *
       * The key expression for a map creation statement.
       * 
* * .google.api.expr.v1alpha1.Expr map_key = 3; * @return The mapKey. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr getMapKey() { if (keyKindCase_ == 3) { return (com.google.api.expr.v1alpha1.Expr) keyKind_; } return com.google.api.expr.v1alpha1.Expr.getDefaultInstance(); } /** *
       * The key expression for a map creation statement.
       * 
* * .google.api.expr.v1alpha1.Expr map_key = 3; */ @java.lang.Override public com.google.api.expr.v1alpha1.ExprOrBuilder getMapKeyOrBuilder() { if (keyKindCase_ == 3) { return (com.google.api.expr.v1alpha1.Expr) keyKind_; } return com.google.api.expr.v1alpha1.Expr.getDefaultInstance(); } public static final int VALUE_FIELD_NUMBER = 4; private com.google.api.expr.v1alpha1.Expr value_; /** *
       * 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; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return value_ != null; } /** *
       * 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; * @return The value. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr getValue() { return value_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : value_; } /** *
       * 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; */ @java.lang.Override public com.google.api.expr.v1alpha1.ExprOrBuilder getValueOrBuilder() { return getValue(); } public static final int OPTIONAL_ENTRY_FIELD_NUMBER = 5; private boolean optionalEntry_; /** *
       * Whether the key-value pair is optional.
       * 
* * bool optional_entry = 5; * @return The optionalEntry. */ @java.lang.Override public boolean getOptionalEntry() { return optionalEntry_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != 0L) { output.writeInt64(1, id_); } if (keyKindCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keyKind_); } if (keyKindCase_ == 3) { output.writeMessage(3, (com.google.api.expr.v1alpha1.Expr) keyKind_); } if (value_ != null) { output.writeMessage(4, getValue()); } if (optionalEntry_ != false) { output.writeBool(5, optionalEntry_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, id_); } if (keyKindCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, keyKind_); } if (keyKindCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.google.api.expr.v1alpha1.Expr) keyKind_); } if (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getValue()); } if (optionalEntry_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, optionalEntry_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry)) { return super.equals(obj); } com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry other = (com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry) obj; if (getId() != other.getId()) return false; if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) return false; } if (getOptionalEntry() != other.getOptionalEntry()) return false; if (!getKeyKindCase().equals(other.getKeyKindCase())) return false; switch (keyKindCase_) { case 2: if (!getFieldKey() .equals(other.getFieldKey())) return false; break; case 3: if (!getMapKey() .equals(other.getMapKey())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (37 * hash) + OPTIONAL_ENTRY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getOptionalEntry()); switch (keyKindCase_) { case 2: hash = (37 * hash) + FIELD_KEY_FIELD_NUMBER; hash = (53 * hash) + getFieldKey().hashCode(); break; case 3: hash = (37 * hash) + MAP_KEY_FIELD_NUMBER; hash = (53 * hash) + getMapKey().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
       * Represents an entry.
       * 
* * Protobuf type {@code google.api.expr.v1alpha1.Expr.CreateStruct.Entry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) com.google.api.expr.v1alpha1.Expr.CreateStruct.EntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_CreateStruct_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_CreateStruct_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.class, com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.Builder.class); } // Construct using com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); id_ = 0L; if (valueBuilder_ == null) { value_ = null; } else { value_ = null; valueBuilder_ = null; } optionalEntry_ = false; keyKindCase_ = 0; keyKind_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_CreateStruct_Entry_descriptor; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry getDefaultInstanceForType() { return com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.getDefaultInstance(); } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry build() { com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry buildPartial() { com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry result = new com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry(this); result.id_ = id_; if (keyKindCase_ == 2) { result.keyKind_ = keyKind_; } if (keyKindCase_ == 3) { if (mapKeyBuilder_ == null) { result.keyKind_ = keyKind_; } else { result.keyKind_ = mapKeyBuilder_.build(); } } if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } result.optionalEntry_ = optionalEntry_; result.keyKindCase_ = keyKindCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry) { return mergeFrom((com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry other) { if (other == com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.getDefaultInstance()) return this; if (other.getId() != 0L) { setId(other.getId()); } if (other.hasValue()) { mergeValue(other.getValue()); } if (other.getOptionalEntry() != false) { setOptionalEntry(other.getOptionalEntry()); } switch (other.getKeyKindCase()) { case FIELD_KEY: { keyKindCase_ = 2; keyKind_ = other.keyKind_; onChanged(); break; } case MAP_KEY: { mergeMapKey(other.getMapKey()); break; } case KEYKIND_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int keyKindCase_ = 0; private java.lang.Object keyKind_; public KeyKindCase getKeyKindCase() { return KeyKindCase.forNumber( keyKindCase_); } public Builder clearKeyKind() { keyKindCase_ = 0; keyKind_ = null; onChanged(); return this; } private long id_ ; /** *
         * 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; * @return The id. */ @java.lang.Override public long getId() { return id_; } /** *
         * 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; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { id_ = value; onChanged(); return this; } /** *
         * 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; * @return This builder for chaining. */ public Builder clearId() { id_ = 0L; onChanged(); return this; } /** *
         * The field key for a message creator statement.
         * 
* * string field_key = 2; * @return Whether the fieldKey field is set. */ @java.lang.Override public boolean hasFieldKey() { return keyKindCase_ == 2; } /** *
         * The field key for a message creator statement.
         * 
* * string field_key = 2; * @return The fieldKey. */ @java.lang.Override public java.lang.String getFieldKey() { java.lang.Object ref = ""; if (keyKindCase_ == 2) { ref = keyKind_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (keyKindCase_ == 2) { keyKind_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * The field key for a message creator statement.
         * 
* * string field_key = 2; * @return The bytes for fieldKey. */ @java.lang.Override public com.google.protobuf.ByteString getFieldKeyBytes() { java.lang.Object ref = ""; if (keyKindCase_ == 2) { ref = keyKind_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (keyKindCase_ == 2) { keyKind_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * The field key for a message creator statement.
         * 
* * string field_key = 2; * @param value The fieldKey to set. * @return This builder for chaining. */ public Builder setFieldKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } keyKindCase_ = 2; keyKind_ = value; onChanged(); return this; } /** *
         * The field key for a message creator statement.
         * 
* * string field_key = 2; * @return This builder for chaining. */ public Builder clearFieldKey() { if (keyKindCase_ == 2) { keyKindCase_ = 0; keyKind_ = null; onChanged(); } return this; } /** *
         * The field key for a message creator statement.
         * 
* * string field_key = 2; * @param value The bytes for fieldKey to set. * @return This builder for chaining. */ public Builder setFieldKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); keyKindCase_ = 2; keyKind_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> mapKeyBuilder_; /** *
         * The key expression for a map creation statement.
         * 
* * .google.api.expr.v1alpha1.Expr map_key = 3; * @return Whether the mapKey field is set. */ @java.lang.Override public boolean hasMapKey() { return keyKindCase_ == 3; } /** *
         * The key expression for a map creation statement.
         * 
* * .google.api.expr.v1alpha1.Expr map_key = 3; * @return The mapKey. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr getMapKey() { if (mapKeyBuilder_ == null) { if (keyKindCase_ == 3) { return (com.google.api.expr.v1alpha1.Expr) keyKind_; } return com.google.api.expr.v1alpha1.Expr.getDefaultInstance(); } else { if (keyKindCase_ == 3) { return mapKeyBuilder_.getMessage(); } return com.google.api.expr.v1alpha1.Expr.getDefaultInstance(); } } /** *
         * The key expression for a map creation statement.
         * 
* * .google.api.expr.v1alpha1.Expr map_key = 3; */ public Builder setMapKey(com.google.api.expr.v1alpha1.Expr value) { if (mapKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keyKind_ = value; onChanged(); } else { mapKeyBuilder_.setMessage(value); } keyKindCase_ = 3; return this; } /** *
         * The key expression for a map creation statement.
         * 
* * .google.api.expr.v1alpha1.Expr map_key = 3; */ public Builder setMapKey( com.google.api.expr.v1alpha1.Expr.Builder builderForValue) { if (mapKeyBuilder_ == null) { keyKind_ = builderForValue.build(); onChanged(); } else { mapKeyBuilder_.setMessage(builderForValue.build()); } keyKindCase_ = 3; return this; } /** *
         * The key expression for a map creation statement.
         * 
* * .google.api.expr.v1alpha1.Expr map_key = 3; */ public Builder mergeMapKey(com.google.api.expr.v1alpha1.Expr value) { if (mapKeyBuilder_ == null) { if (keyKindCase_ == 3 && keyKind_ != com.google.api.expr.v1alpha1.Expr.getDefaultInstance()) { keyKind_ = com.google.api.expr.v1alpha1.Expr.newBuilder((com.google.api.expr.v1alpha1.Expr) keyKind_) .mergeFrom(value).buildPartial(); } else { keyKind_ = value; } onChanged(); } else { if (keyKindCase_ == 3) { mapKeyBuilder_.mergeFrom(value); } else { mapKeyBuilder_.setMessage(value); } } keyKindCase_ = 3; return this; } /** *
         * The key expression for a map creation statement.
         * 
* * .google.api.expr.v1alpha1.Expr map_key = 3; */ public Builder clearMapKey() { if (mapKeyBuilder_ == null) { if (keyKindCase_ == 3) { keyKindCase_ = 0; keyKind_ = null; onChanged(); } } else { if (keyKindCase_ == 3) { keyKindCase_ = 0; keyKind_ = null; } mapKeyBuilder_.clear(); } return this; } /** *
         * The key expression for a map creation statement.
         * 
* * .google.api.expr.v1alpha1.Expr map_key = 3; */ public com.google.api.expr.v1alpha1.Expr.Builder getMapKeyBuilder() { return getMapKeyFieldBuilder().getBuilder(); } /** *
         * The key expression for a map creation statement.
         * 
* * .google.api.expr.v1alpha1.Expr map_key = 3; */ @java.lang.Override public com.google.api.expr.v1alpha1.ExprOrBuilder getMapKeyOrBuilder() { if ((keyKindCase_ == 3) && (mapKeyBuilder_ != null)) { return mapKeyBuilder_.getMessageOrBuilder(); } else { if (keyKindCase_ == 3) { return (com.google.api.expr.v1alpha1.Expr) keyKind_; } return com.google.api.expr.v1alpha1.Expr.getDefaultInstance(); } } /** *
         * The key expression for a map creation statement.
         * 
* * .google.api.expr.v1alpha1.Expr map_key = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> getMapKeyFieldBuilder() { if (mapKeyBuilder_ == null) { if (!(keyKindCase_ == 3)) { keyKind_ = com.google.api.expr.v1alpha1.Expr.getDefaultInstance(); } mapKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder>( (com.google.api.expr.v1alpha1.Expr) keyKind_, getParentForChildren(), isClean()); keyKind_ = null; } keyKindCase_ = 3; onChanged();; return mapKeyBuilder_; } private com.google.api.expr.v1alpha1.Expr value_; private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> valueBuilder_; /** *
         * 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; * @return Whether the value field is set. */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** *
         * 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; * @return The value. */ public com.google.api.expr.v1alpha1.Expr getValue() { if (valueBuilder_ == null) { return value_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** *
         * 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; */ public Builder setValue(com.google.api.expr.v1alpha1.Expr value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { valueBuilder_.setMessage(value); } return this; } /** *
         * 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; */ public Builder setValue( com.google.api.expr.v1alpha1.Expr.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * 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; */ public Builder mergeValue(com.google.api.expr.v1alpha1.Expr value) { if (valueBuilder_ == null) { if (value_ != null) { value_ = com.google.api.expr.v1alpha1.Expr.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } return this; } /** *
         * 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; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** *
         * 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; */ public com.google.api.expr.v1alpha1.Expr.Builder getValueBuilder() { onChanged(); return getValueFieldBuilder().getBuilder(); } /** *
         * 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; */ public com.google.api.expr.v1alpha1.ExprOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : value_; } } /** *
         * 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; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } private boolean optionalEntry_ ; /** *
         * Whether the key-value pair is optional.
         * 
* * bool optional_entry = 5; * @return The optionalEntry. */ @java.lang.Override public boolean getOptionalEntry() { return optionalEntry_; } /** *
         * Whether the key-value pair is optional.
         * 
* * bool optional_entry = 5; * @param value The optionalEntry to set. * @return This builder for chaining. */ public Builder setOptionalEntry(boolean value) { optionalEntry_ = value; onChanged(); return this; } /** *
         * Whether the key-value pair is optional.
         * 
* * bool optional_entry = 5; * @return This builder for chaining. */ public Builder clearOptionalEntry() { optionalEntry_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) } // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.CreateStruct.Entry) private static final com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry(); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Entry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Entry(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int MESSAGE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object messageName_; /** *
     * The type name of the message to be created, empty when creating map
     * literals.
     * 
* * string message_name = 1; * @return The messageName. */ @java.lang.Override public java.lang.String getMessageName() { java.lang.Object ref = messageName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); messageName_ = s; return s; } } /** *
     * The type name of the message to be created, empty when creating map
     * literals.
     * 
* * string message_name = 1; * @return The bytes for messageName. */ @java.lang.Override public com.google.protobuf.ByteString getMessageNameBytes() { java.lang.Object ref = messageName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); messageName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENTRIES_FIELD_NUMBER = 2; private java.util.List entries_; /** *
     * The entries in the creation expression.
     * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ @java.lang.Override public java.util.List getEntriesList() { return entries_; } /** *
     * The entries in the creation expression.
     * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ @java.lang.Override public java.util.List getEntriesOrBuilderList() { return entries_; } /** *
     * The entries in the creation expression.
     * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ @java.lang.Override public int getEntriesCount() { return entries_.size(); } /** *
     * The entries in the creation expression.
     * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry getEntries(int index) { return entries_.get(index); } /** *
     * The entries in the creation expression.
     * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateStruct.EntryOrBuilder getEntriesOrBuilder( int index) { return entries_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, messageName_); } for (int i = 0; i < entries_.size(); i++) { output.writeMessage(2, entries_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, messageName_); } for (int i = 0; i < entries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, entries_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.api.expr.v1alpha1.Expr.CreateStruct)) { return super.equals(obj); } com.google.api.expr.v1alpha1.Expr.CreateStruct other = (com.google.api.expr.v1alpha1.Expr.CreateStruct) obj; if (!getMessageName() .equals(other.getMessageName())) return false; if (!getEntriesList() .equals(other.getEntriesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MESSAGE_NAME_FIELD_NUMBER; hash = (53 * hash) + getMessageName().hashCode(); if (getEntriesCount() > 0) { hash = (37 * hash) + ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getEntriesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.api.expr.v1alpha1.Expr.CreateStruct parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.api.expr.v1alpha1.Expr.CreateStruct prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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 {@code google.api.expr.v1alpha1.Expr.CreateStruct} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.api.expr.v1alpha1.Expr.CreateStruct) com.google.api.expr.v1alpha1.Expr.CreateStructOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_CreateStruct_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_CreateStruct_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.expr.v1alpha1.Expr.CreateStruct.class, com.google.api.expr.v1alpha1.Expr.CreateStruct.Builder.class); } // Construct using com.google.api.expr.v1alpha1.Expr.CreateStruct.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEntriesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); messageName_ = ""; if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { entriesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_CreateStruct_descriptor; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateStruct getDefaultInstanceForType() { return com.google.api.expr.v1alpha1.Expr.CreateStruct.getDefaultInstance(); } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateStruct build() { com.google.api.expr.v1alpha1.Expr.CreateStruct result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateStruct buildPartial() { com.google.api.expr.v1alpha1.Expr.CreateStruct result = new com.google.api.expr.v1alpha1.Expr.CreateStruct(this); int from_bitField0_ = bitField0_; result.messageName_ = messageName_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); bitField0_ = (bitField0_ & ~0x00000001); } result.entries_ = entries_; } else { result.entries_ = entriesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.expr.v1alpha1.Expr.CreateStruct) { return mergeFrom((com.google.api.expr.v1alpha1.Expr.CreateStruct)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.api.expr.v1alpha1.Expr.CreateStruct other) { if (other == com.google.api.expr.v1alpha1.Expr.CreateStruct.getDefaultInstance()) return this; if (!other.getMessageName().isEmpty()) { messageName_ = other.messageName_; onChanged(); } if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntriesIsMutable(); entries_.addAll(other.entries_); } onChanged(); } } else { if (!other.entries_.isEmpty()) { if (entriesBuilder_.isEmpty()) { entriesBuilder_.dispose(); entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); entriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.api.expr.v1alpha1.Expr.CreateStruct parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.api.expr.v1alpha1.Expr.CreateStruct) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object messageName_ = ""; /** *
       * The type name of the message to be created, empty when creating map
       * literals.
       * 
* * string message_name = 1; * @return The messageName. */ public java.lang.String getMessageName() { java.lang.Object ref = messageName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); messageName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The type name of the message to be created, empty when creating map
       * literals.
       * 
* * string message_name = 1; * @return The bytes for messageName. */ public com.google.protobuf.ByteString getMessageNameBytes() { java.lang.Object ref = messageName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); messageName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The type name of the message to be created, empty when creating map
       * literals.
       * 
* * string message_name = 1; * @param value The messageName to set. * @return This builder for chaining. */ public Builder setMessageName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } messageName_ = value; onChanged(); return this; } /** *
       * The type name of the message to be created, empty when creating map
       * literals.
       * 
* * string message_name = 1; * @return This builder for chaining. */ public Builder clearMessageName() { messageName_ = getDefaultInstance().getMessageName(); onChanged(); return this; } /** *
       * The type name of the message to be created, empty when creating map
       * literals.
       * 
* * string message_name = 1; * @param value The bytes for messageName to set. * @return This builder for chaining. */ public Builder setMessageNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); messageName_ = value; onChanged(); return this; } private java.util.List entries_ = java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList(entries_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry, com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.Builder, com.google.api.expr.v1alpha1.Expr.CreateStruct.EntryOrBuilder> entriesBuilder_; /** *
       * The entries in the creation expression.
       * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { return entriesBuilder_.getMessageList(); } } /** *
       * The entries in the creation expression.
       * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ public int getEntriesCount() { if (entriesBuilder_ == null) { return entries_.size(); } else { return entriesBuilder_.getCount(); } } /** *
       * The entries in the creation expression.
       * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ public com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry getEntries(int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessage(index); } } /** *
       * The entries in the creation expression.
       * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ public Builder setEntries( int index, com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.set(index, value); onChanged(); } else { entriesBuilder_.setMessage(index, value); } return this; } /** *
       * The entries in the creation expression.
       * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ public Builder setEntries( int index, com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The entries in the creation expression.
       * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ public Builder addEntries(com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(value); onChanged(); } else { entriesBuilder_.addMessage(value); } return this; } /** *
       * The entries in the creation expression.
       * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ public Builder addEntries( int index, com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(index, value); onChanged(); } else { entriesBuilder_.addMessage(index, value); } return this; } /** *
       * The entries in the creation expression.
       * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ public Builder addEntries( com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The entries in the creation expression.
       * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ public Builder addEntries( int index, com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The entries in the creation expression.
       * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ public Builder addAllEntries( java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); } return this; } /** *
       * The entries in the creation expression.
       * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ public Builder clearEntries() { if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entriesBuilder_.clear(); } return this; } /** *
       * The entries in the creation expression.
       * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.remove(index); onChanged(); } else { entriesBuilder_.remove(index); } return this; } /** *
       * The entries in the creation expression.
       * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ public com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.Builder getEntriesBuilder( int index) { return getEntriesFieldBuilder().getBuilder(index); } /** *
       * The entries in the creation expression.
       * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ public com.google.api.expr.v1alpha1.Expr.CreateStruct.EntryOrBuilder getEntriesOrBuilder( int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** *
       * The entries in the creation expression.
       * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ public java.util.List getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entries_); } } /** *
       * The entries in the creation expression.
       * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ public com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.Builder addEntriesBuilder() { return getEntriesFieldBuilder().addBuilder( com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.getDefaultInstance()); } /** *
       * The entries in the creation expression.
       * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ public com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.Builder addEntriesBuilder( int index) { return getEntriesFieldBuilder().addBuilder( index, com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.getDefaultInstance()); } /** *
       * The entries in the creation expression.
       * 
* * repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ public java.util.List getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry, com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.Builder, com.google.api.expr.v1alpha1.Expr.CreateStruct.EntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry, com.google.api.expr.v1alpha1.Expr.CreateStruct.Entry.Builder, com.google.api.expr.v1alpha1.Expr.CreateStruct.EntryOrBuilder>( entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); entries_ = null; } return entriesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.api.expr.v1alpha1.Expr.CreateStruct) } // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.CreateStruct) private static final com.google.api.expr.v1alpha1.Expr.CreateStruct DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.api.expr.v1alpha1.Expr.CreateStruct(); } public static com.google.api.expr.v1alpha1.Expr.CreateStruct getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateStruct parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateStruct(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateStruct getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ComprehensionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.api.expr.v1alpha1.Expr.Comprehension) com.google.protobuf.MessageOrBuilder { /** *
     * The name of the iteration variable.
     * 
* * string iter_var = 1; * @return The iterVar. */ java.lang.String getIterVar(); /** *
     * The name of the iteration variable.
     * 
* * string iter_var = 1; * @return The bytes for iterVar. */ com.google.protobuf.ByteString getIterVarBytes(); /** *
     * The range over which var iterates.
     * 
* * .google.api.expr.v1alpha1.Expr iter_range = 2; * @return Whether the iterRange field is set. */ boolean hasIterRange(); /** *
     * The range over which var iterates.
     * 
* * .google.api.expr.v1alpha1.Expr iter_range = 2; * @return The iterRange. */ com.google.api.expr.v1alpha1.Expr getIterRange(); /** *
     * The range over which var iterates.
     * 
* * .google.api.expr.v1alpha1.Expr iter_range = 2; */ com.google.api.expr.v1alpha1.ExprOrBuilder getIterRangeOrBuilder(); /** *
     * The name of the variable used for accumulation of the result.
     * 
* * string accu_var = 3; * @return The accuVar. */ java.lang.String getAccuVar(); /** *
     * The name of the variable used for accumulation of the result.
     * 
* * string accu_var = 3; * @return The bytes for accuVar. */ com.google.protobuf.ByteString getAccuVarBytes(); /** *
     * The initial value of the accumulator.
     * 
* * .google.api.expr.v1alpha1.Expr accu_init = 4; * @return Whether the accuInit field is set. */ boolean hasAccuInit(); /** *
     * The initial value of the accumulator.
     * 
* * .google.api.expr.v1alpha1.Expr accu_init = 4; * @return The accuInit. */ com.google.api.expr.v1alpha1.Expr getAccuInit(); /** *
     * The initial value of the accumulator.
     * 
* * .google.api.expr.v1alpha1.Expr accu_init = 4; */ com.google.api.expr.v1alpha1.ExprOrBuilder getAccuInitOrBuilder(); /** *
     * An expression which can contain iter_var and accu_var.
     * Returns false when the result has been computed and may be used as
     * a hint to short-circuit the remainder of the comprehension.
     * 
* * .google.api.expr.v1alpha1.Expr loop_condition = 5; * @return Whether the loopCondition field is set. */ boolean hasLoopCondition(); /** *
     * An expression which can contain iter_var and accu_var.
     * Returns false when the result has been computed and may be used as
     * a hint to short-circuit the remainder of the comprehension.
     * 
* * .google.api.expr.v1alpha1.Expr loop_condition = 5; * @return The loopCondition. */ com.google.api.expr.v1alpha1.Expr getLoopCondition(); /** *
     * An expression which can contain iter_var and accu_var.
     * Returns false when the result has been computed and may be used as
     * a hint to short-circuit the remainder of the comprehension.
     * 
* * .google.api.expr.v1alpha1.Expr loop_condition = 5; */ com.google.api.expr.v1alpha1.ExprOrBuilder getLoopConditionOrBuilder(); /** *
     * An expression which can contain iter_var and accu_var.
     * Computes the next value of accu_var.
     * 
* * .google.api.expr.v1alpha1.Expr loop_step = 6; * @return Whether the loopStep field is set. */ boolean hasLoopStep(); /** *
     * An expression which can contain iter_var and accu_var.
     * Computes the next value of accu_var.
     * 
* * .google.api.expr.v1alpha1.Expr loop_step = 6; * @return The loopStep. */ com.google.api.expr.v1alpha1.Expr getLoopStep(); /** *
     * An expression which can contain iter_var and accu_var.
     * Computes the next value of accu_var.
     * 
* * .google.api.expr.v1alpha1.Expr loop_step = 6; */ com.google.api.expr.v1alpha1.ExprOrBuilder getLoopStepOrBuilder(); /** *
     * An expression which can contain accu_var.
     * Computes the result.
     * 
* * .google.api.expr.v1alpha1.Expr result = 7; * @return Whether the result field is set. */ boolean hasResult(); /** *
     * An expression which can contain accu_var.
     * Computes the result.
     * 
* * .google.api.expr.v1alpha1.Expr result = 7; * @return The result. */ com.google.api.expr.v1alpha1.Expr getResult(); /** *
     * An expression which can contain accu_var.
     * Computes the result.
     * 
* * .google.api.expr.v1alpha1.Expr result = 7; */ com.google.api.expr.v1alpha1.ExprOrBuilder getResultOrBuilder(); } /** *
   * A comprehension expression applied to a list or map.
   * Comprehensions are not part of the core syntax, but enabled with macros.
   * A macro matches a specific call signature within a parsed AST and replaces
   * the call with an alternate AST block. Macro expansion happens at parse
   * time.
   * The following macros are supported within CEL:
   * Aggregate type macros may be applied to all elements in a list or all keys
   * in a map:
   * *  `all`, `exists`, `exists_one` -  test a predicate expression against
   *    the inputs and return `true` if the predicate is satisfied for all,
   *    any, or only one value `list.all(x, x < 10)`.
   * *  `filter` - test a predicate expression against the inputs and return
   *    the subset of elements which satisfy the predicate:
   *    `payments.filter(p, p > 1000)`.
   * *  `map` - apply an expression to all elements in the input and return the
   *    output aggregate type: `[1, 2, 3].map(i, i * i)`.
   * The `has(m.x)` macro tests whether the property `x` is present in struct
   * `m`. The semantics of this macro depend on the type of `m`. For proto2
   * messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the
   * macro tests whether the property is set to its default. For map and struct
   * types, the macro tests whether the property `x` is defined on `m`.
   * 
* * Protobuf type {@code google.api.expr.v1alpha1.Expr.Comprehension} */ public static final class Comprehension extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.api.expr.v1alpha1.Expr.Comprehension) ComprehensionOrBuilder { private static final long serialVersionUID = 0L; // Use Comprehension.newBuilder() to construct. private Comprehension(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Comprehension() { iterVar_ = ""; accuVar_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Comprehension(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Comprehension( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); iterVar_ = s; break; } case 18: { com.google.api.expr.v1alpha1.Expr.Builder subBuilder = null; if (iterRange_ != null) { subBuilder = iterRange_.toBuilder(); } iterRange_ = input.readMessage(com.google.api.expr.v1alpha1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(iterRange_); iterRange_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); accuVar_ = s; break; } case 34: { com.google.api.expr.v1alpha1.Expr.Builder subBuilder = null; if (accuInit_ != null) { subBuilder = accuInit_.toBuilder(); } accuInit_ = input.readMessage(com.google.api.expr.v1alpha1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(accuInit_); accuInit_ = subBuilder.buildPartial(); } break; } case 42: { com.google.api.expr.v1alpha1.Expr.Builder subBuilder = null; if (loopCondition_ != null) { subBuilder = loopCondition_.toBuilder(); } loopCondition_ = input.readMessage(com.google.api.expr.v1alpha1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(loopCondition_); loopCondition_ = subBuilder.buildPartial(); } break; } case 50: { com.google.api.expr.v1alpha1.Expr.Builder subBuilder = null; if (loopStep_ != null) { subBuilder = loopStep_.toBuilder(); } loopStep_ = input.readMessage(com.google.api.expr.v1alpha1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(loopStep_); loopStep_ = subBuilder.buildPartial(); } break; } case 58: { com.google.api.expr.v1alpha1.Expr.Builder subBuilder = null; if (result_ != null) { subBuilder = result_.toBuilder(); } result_ = input.readMessage(com.google.api.expr.v1alpha1.Expr.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(result_); result_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Comprehension_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Comprehension_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.expr.v1alpha1.Expr.Comprehension.class, com.google.api.expr.v1alpha1.Expr.Comprehension.Builder.class); } public static final int ITER_VAR_FIELD_NUMBER = 1; private volatile java.lang.Object iterVar_; /** *
     * The name of the iteration variable.
     * 
* * string iter_var = 1; * @return The iterVar. */ @java.lang.Override public java.lang.String getIterVar() { java.lang.Object ref = iterVar_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); iterVar_ = s; return s; } } /** *
     * The name of the iteration variable.
     * 
* * string iter_var = 1; * @return The bytes for iterVar. */ @java.lang.Override public com.google.protobuf.ByteString getIterVarBytes() { java.lang.Object ref = iterVar_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); iterVar_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ITER_RANGE_FIELD_NUMBER = 2; private com.google.api.expr.v1alpha1.Expr iterRange_; /** *
     * The range over which var iterates.
     * 
* * .google.api.expr.v1alpha1.Expr iter_range = 2; * @return Whether the iterRange field is set. */ @java.lang.Override public boolean hasIterRange() { return iterRange_ != null; } /** *
     * The range over which var iterates.
     * 
* * .google.api.expr.v1alpha1.Expr iter_range = 2; * @return The iterRange. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr getIterRange() { return iterRange_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : iterRange_; } /** *
     * The range over which var iterates.
     * 
* * .google.api.expr.v1alpha1.Expr iter_range = 2; */ @java.lang.Override public com.google.api.expr.v1alpha1.ExprOrBuilder getIterRangeOrBuilder() { return getIterRange(); } public static final int ACCU_VAR_FIELD_NUMBER = 3; private volatile java.lang.Object accuVar_; /** *
     * The name of the variable used for accumulation of the result.
     * 
* * string accu_var = 3; * @return The accuVar. */ @java.lang.Override public java.lang.String getAccuVar() { java.lang.Object ref = accuVar_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accuVar_ = s; return s; } } /** *
     * The name of the variable used for accumulation of the result.
     * 
* * string accu_var = 3; * @return The bytes for accuVar. */ @java.lang.Override public com.google.protobuf.ByteString getAccuVarBytes() { java.lang.Object ref = accuVar_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accuVar_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ACCU_INIT_FIELD_NUMBER = 4; private com.google.api.expr.v1alpha1.Expr accuInit_; /** *
     * The initial value of the accumulator.
     * 
* * .google.api.expr.v1alpha1.Expr accu_init = 4; * @return Whether the accuInit field is set. */ @java.lang.Override public boolean hasAccuInit() { return accuInit_ != null; } /** *
     * The initial value of the accumulator.
     * 
* * .google.api.expr.v1alpha1.Expr accu_init = 4; * @return The accuInit. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr getAccuInit() { return accuInit_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : accuInit_; } /** *
     * The initial value of the accumulator.
     * 
* * .google.api.expr.v1alpha1.Expr accu_init = 4; */ @java.lang.Override public com.google.api.expr.v1alpha1.ExprOrBuilder getAccuInitOrBuilder() { return getAccuInit(); } public static final int LOOP_CONDITION_FIELD_NUMBER = 5; private com.google.api.expr.v1alpha1.Expr loopCondition_; /** *
     * An expression which can contain iter_var and accu_var.
     * Returns false when the result has been computed and may be used as
     * a hint to short-circuit the remainder of the comprehension.
     * 
* * .google.api.expr.v1alpha1.Expr loop_condition = 5; * @return Whether the loopCondition field is set. */ @java.lang.Override public boolean hasLoopCondition() { return loopCondition_ != null; } /** *
     * An expression which can contain iter_var and accu_var.
     * Returns false when the result has been computed and may be used as
     * a hint to short-circuit the remainder of the comprehension.
     * 
* * .google.api.expr.v1alpha1.Expr loop_condition = 5; * @return The loopCondition. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr getLoopCondition() { return loopCondition_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : loopCondition_; } /** *
     * An expression which can contain iter_var and accu_var.
     * Returns false when the result has been computed and may be used as
     * a hint to short-circuit the remainder of the comprehension.
     * 
* * .google.api.expr.v1alpha1.Expr loop_condition = 5; */ @java.lang.Override public com.google.api.expr.v1alpha1.ExprOrBuilder getLoopConditionOrBuilder() { return getLoopCondition(); } public static final int LOOP_STEP_FIELD_NUMBER = 6; private com.google.api.expr.v1alpha1.Expr loopStep_; /** *
     * An expression which can contain iter_var and accu_var.
     * Computes the next value of accu_var.
     * 
* * .google.api.expr.v1alpha1.Expr loop_step = 6; * @return Whether the loopStep field is set. */ @java.lang.Override public boolean hasLoopStep() { return loopStep_ != null; } /** *
     * An expression which can contain iter_var and accu_var.
     * Computes the next value of accu_var.
     * 
* * .google.api.expr.v1alpha1.Expr loop_step = 6; * @return The loopStep. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr getLoopStep() { return loopStep_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : loopStep_; } /** *
     * An expression which can contain iter_var and accu_var.
     * Computes the next value of accu_var.
     * 
* * .google.api.expr.v1alpha1.Expr loop_step = 6; */ @java.lang.Override public com.google.api.expr.v1alpha1.ExprOrBuilder getLoopStepOrBuilder() { return getLoopStep(); } public static final int RESULT_FIELD_NUMBER = 7; private com.google.api.expr.v1alpha1.Expr result_; /** *
     * An expression which can contain accu_var.
     * Computes the result.
     * 
* * .google.api.expr.v1alpha1.Expr result = 7; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return result_ != null; } /** *
     * An expression which can contain accu_var.
     * Computes the result.
     * 
* * .google.api.expr.v1alpha1.Expr result = 7; * @return The result. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr getResult() { return result_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : result_; } /** *
     * An expression which can contain accu_var.
     * Computes the result.
     * 
* * .google.api.expr.v1alpha1.Expr result = 7; */ @java.lang.Override public com.google.api.expr.v1alpha1.ExprOrBuilder getResultOrBuilder() { return getResult(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iterVar_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, iterVar_); } if (iterRange_ != null) { output.writeMessage(2, getIterRange()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accuVar_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, accuVar_); } if (accuInit_ != null) { output.writeMessage(4, getAccuInit()); } if (loopCondition_ != null) { output.writeMessage(5, getLoopCondition()); } if (loopStep_ != null) { output.writeMessage(6, getLoopStep()); } if (result_ != null) { output.writeMessage(7, getResult()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iterVar_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, iterVar_); } if (iterRange_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getIterRange()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accuVar_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, accuVar_); } if (accuInit_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getAccuInit()); } if (loopCondition_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getLoopCondition()); } if (loopStep_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getLoopStep()); } if (result_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getResult()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.api.expr.v1alpha1.Expr.Comprehension)) { return super.equals(obj); } com.google.api.expr.v1alpha1.Expr.Comprehension other = (com.google.api.expr.v1alpha1.Expr.Comprehension) obj; if (!getIterVar() .equals(other.getIterVar())) return false; if (hasIterRange() != other.hasIterRange()) return false; if (hasIterRange()) { if (!getIterRange() .equals(other.getIterRange())) return false; } if (!getAccuVar() .equals(other.getAccuVar())) return false; if (hasAccuInit() != other.hasAccuInit()) return false; if (hasAccuInit()) { if (!getAccuInit() .equals(other.getAccuInit())) return false; } if (hasLoopCondition() != other.hasLoopCondition()) return false; if (hasLoopCondition()) { if (!getLoopCondition() .equals(other.getLoopCondition())) return false; } if (hasLoopStep() != other.hasLoopStep()) return false; if (hasLoopStep()) { if (!getLoopStep() .equals(other.getLoopStep())) return false; } if (hasResult() != other.hasResult()) return false; if (hasResult()) { if (!getResult() .equals(other.getResult())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ITER_VAR_FIELD_NUMBER; hash = (53 * hash) + getIterVar().hashCode(); if (hasIterRange()) { hash = (37 * hash) + ITER_RANGE_FIELD_NUMBER; hash = (53 * hash) + getIterRange().hashCode(); } hash = (37 * hash) + ACCU_VAR_FIELD_NUMBER; hash = (53 * hash) + getAccuVar().hashCode(); if (hasAccuInit()) { hash = (37 * hash) + ACCU_INIT_FIELD_NUMBER; hash = (53 * hash) + getAccuInit().hashCode(); } if (hasLoopCondition()) { hash = (37 * hash) + LOOP_CONDITION_FIELD_NUMBER; hash = (53 * hash) + getLoopCondition().hashCode(); } if (hasLoopStep()) { hash = (37 * hash) + LOOP_STEP_FIELD_NUMBER; hash = (53 * hash) + getLoopStep().hashCode(); } if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.api.expr.v1alpha1.Expr.Comprehension parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.Comprehension parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Comprehension parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.Comprehension parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Comprehension parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr.Comprehension parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Comprehension parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.Comprehension parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Comprehension parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.Comprehension parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr.Comprehension parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr.Comprehension parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.api.expr.v1alpha1.Expr.Comprehension prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A comprehension expression applied to a list or map.
     * Comprehensions are not part of the core syntax, but enabled with macros.
     * A macro matches a specific call signature within a parsed AST and replaces
     * the call with an alternate AST block. Macro expansion happens at parse
     * time.
     * The following macros are supported within CEL:
     * Aggregate type macros may be applied to all elements in a list or all keys
     * in a map:
     * *  `all`, `exists`, `exists_one` -  test a predicate expression against
     *    the inputs and return `true` if the predicate is satisfied for all,
     *    any, or only one value `list.all(x, x < 10)`.
     * *  `filter` - test a predicate expression against the inputs and return
     *    the subset of elements which satisfy the predicate:
     *    `payments.filter(p, p > 1000)`.
     * *  `map` - apply an expression to all elements in the input and return the
     *    output aggregate type: `[1, 2, 3].map(i, i * i)`.
     * The `has(m.x)` macro tests whether the property `x` is present in struct
     * `m`. The semantics of this macro depend on the type of `m`. For proto2
     * messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the
     * macro tests whether the property is set to its default. For map and struct
     * types, the macro tests whether the property `x` is defined on `m`.
     * 
* * Protobuf type {@code google.api.expr.v1alpha1.Expr.Comprehension} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.api.expr.v1alpha1.Expr.Comprehension) com.google.api.expr.v1alpha1.Expr.ComprehensionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Comprehension_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Comprehension_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.expr.v1alpha1.Expr.Comprehension.class, com.google.api.expr.v1alpha1.Expr.Comprehension.Builder.class); } // Construct using com.google.api.expr.v1alpha1.Expr.Comprehension.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); iterVar_ = ""; if (iterRangeBuilder_ == null) { iterRange_ = null; } else { iterRange_ = null; iterRangeBuilder_ = null; } accuVar_ = ""; if (accuInitBuilder_ == null) { accuInit_ = null; } else { accuInit_ = null; accuInitBuilder_ = null; } if (loopConditionBuilder_ == null) { loopCondition_ = null; } else { loopCondition_ = null; loopConditionBuilder_ = null; } if (loopStepBuilder_ == null) { loopStep_ = null; } else { loopStep_ = null; loopStepBuilder_ = null; } if (resultBuilder_ == null) { result_ = null; } else { result_ = null; resultBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_Comprehension_descriptor; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Comprehension getDefaultInstanceForType() { return com.google.api.expr.v1alpha1.Expr.Comprehension.getDefaultInstance(); } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Comprehension build() { com.google.api.expr.v1alpha1.Expr.Comprehension result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Comprehension buildPartial() { com.google.api.expr.v1alpha1.Expr.Comprehension result = new com.google.api.expr.v1alpha1.Expr.Comprehension(this); result.iterVar_ = iterVar_; if (iterRangeBuilder_ == null) { result.iterRange_ = iterRange_; } else { result.iterRange_ = iterRangeBuilder_.build(); } result.accuVar_ = accuVar_; if (accuInitBuilder_ == null) { result.accuInit_ = accuInit_; } else { result.accuInit_ = accuInitBuilder_.build(); } if (loopConditionBuilder_ == null) { result.loopCondition_ = loopCondition_; } else { result.loopCondition_ = loopConditionBuilder_.build(); } if (loopStepBuilder_ == null) { result.loopStep_ = loopStep_; } else { result.loopStep_ = loopStepBuilder_.build(); } if (resultBuilder_ == null) { result.result_ = result_; } else { result.result_ = resultBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.expr.v1alpha1.Expr.Comprehension) { return mergeFrom((com.google.api.expr.v1alpha1.Expr.Comprehension)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.api.expr.v1alpha1.Expr.Comprehension other) { if (other == com.google.api.expr.v1alpha1.Expr.Comprehension.getDefaultInstance()) return this; if (!other.getIterVar().isEmpty()) { iterVar_ = other.iterVar_; onChanged(); } if (other.hasIterRange()) { mergeIterRange(other.getIterRange()); } if (!other.getAccuVar().isEmpty()) { accuVar_ = other.accuVar_; onChanged(); } if (other.hasAccuInit()) { mergeAccuInit(other.getAccuInit()); } if (other.hasLoopCondition()) { mergeLoopCondition(other.getLoopCondition()); } if (other.hasLoopStep()) { mergeLoopStep(other.getLoopStep()); } if (other.hasResult()) { mergeResult(other.getResult()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.api.expr.v1alpha1.Expr.Comprehension parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.api.expr.v1alpha1.Expr.Comprehension) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object iterVar_ = ""; /** *
       * The name of the iteration variable.
       * 
* * string iter_var = 1; * @return The iterVar. */ public java.lang.String getIterVar() { java.lang.Object ref = iterVar_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); iterVar_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The name of the iteration variable.
       * 
* * string iter_var = 1; * @return The bytes for iterVar. */ public com.google.protobuf.ByteString getIterVarBytes() { java.lang.Object ref = iterVar_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); iterVar_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The name of the iteration variable.
       * 
* * string iter_var = 1; * @param value The iterVar to set. * @return This builder for chaining. */ public Builder setIterVar( java.lang.String value) { if (value == null) { throw new NullPointerException(); } iterVar_ = value; onChanged(); return this; } /** *
       * The name of the iteration variable.
       * 
* * string iter_var = 1; * @return This builder for chaining. */ public Builder clearIterVar() { iterVar_ = getDefaultInstance().getIterVar(); onChanged(); return this; } /** *
       * The name of the iteration variable.
       * 
* * string iter_var = 1; * @param value The bytes for iterVar to set. * @return This builder for chaining. */ public Builder setIterVarBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); iterVar_ = value; onChanged(); return this; } private com.google.api.expr.v1alpha1.Expr iterRange_; private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> iterRangeBuilder_; /** *
       * The range over which var iterates.
       * 
* * .google.api.expr.v1alpha1.Expr iter_range = 2; * @return Whether the iterRange field is set. */ public boolean hasIterRange() { return iterRangeBuilder_ != null || iterRange_ != null; } /** *
       * The range over which var iterates.
       * 
* * .google.api.expr.v1alpha1.Expr iter_range = 2; * @return The iterRange. */ public com.google.api.expr.v1alpha1.Expr getIterRange() { if (iterRangeBuilder_ == null) { return iterRange_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : iterRange_; } else { return iterRangeBuilder_.getMessage(); } } /** *
       * The range over which var iterates.
       * 
* * .google.api.expr.v1alpha1.Expr iter_range = 2; */ public Builder setIterRange(com.google.api.expr.v1alpha1.Expr value) { if (iterRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } iterRange_ = value; onChanged(); } else { iterRangeBuilder_.setMessage(value); } return this; } /** *
       * The range over which var iterates.
       * 
* * .google.api.expr.v1alpha1.Expr iter_range = 2; */ public Builder setIterRange( com.google.api.expr.v1alpha1.Expr.Builder builderForValue) { if (iterRangeBuilder_ == null) { iterRange_ = builderForValue.build(); onChanged(); } else { iterRangeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The range over which var iterates.
       * 
* * .google.api.expr.v1alpha1.Expr iter_range = 2; */ public Builder mergeIterRange(com.google.api.expr.v1alpha1.Expr value) { if (iterRangeBuilder_ == null) { if (iterRange_ != null) { iterRange_ = com.google.api.expr.v1alpha1.Expr.newBuilder(iterRange_).mergeFrom(value).buildPartial(); } else { iterRange_ = value; } onChanged(); } else { iterRangeBuilder_.mergeFrom(value); } return this; } /** *
       * The range over which var iterates.
       * 
* * .google.api.expr.v1alpha1.Expr iter_range = 2; */ public Builder clearIterRange() { if (iterRangeBuilder_ == null) { iterRange_ = null; onChanged(); } else { iterRange_ = null; iterRangeBuilder_ = null; } return this; } /** *
       * The range over which var iterates.
       * 
* * .google.api.expr.v1alpha1.Expr iter_range = 2; */ public com.google.api.expr.v1alpha1.Expr.Builder getIterRangeBuilder() { onChanged(); return getIterRangeFieldBuilder().getBuilder(); } /** *
       * The range over which var iterates.
       * 
* * .google.api.expr.v1alpha1.Expr iter_range = 2; */ public com.google.api.expr.v1alpha1.ExprOrBuilder getIterRangeOrBuilder() { if (iterRangeBuilder_ != null) { return iterRangeBuilder_.getMessageOrBuilder(); } else { return iterRange_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : iterRange_; } } /** *
       * The range over which var iterates.
       * 
* * .google.api.expr.v1alpha1.Expr iter_range = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> getIterRangeFieldBuilder() { if (iterRangeBuilder_ == null) { iterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder>( getIterRange(), getParentForChildren(), isClean()); iterRange_ = null; } return iterRangeBuilder_; } private java.lang.Object accuVar_ = ""; /** *
       * The name of the variable used for accumulation of the result.
       * 
* * string accu_var = 3; * @return The accuVar. */ public java.lang.String getAccuVar() { java.lang.Object ref = accuVar_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accuVar_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The name of the variable used for accumulation of the result.
       * 
* * string accu_var = 3; * @return The bytes for accuVar. */ public com.google.protobuf.ByteString getAccuVarBytes() { java.lang.Object ref = accuVar_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); accuVar_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The name of the variable used for accumulation of the result.
       * 
* * string accu_var = 3; * @param value The accuVar to set. * @return This builder for chaining. */ public Builder setAccuVar( java.lang.String value) { if (value == null) { throw new NullPointerException(); } accuVar_ = value; onChanged(); return this; } /** *
       * The name of the variable used for accumulation of the result.
       * 
* * string accu_var = 3; * @return This builder for chaining. */ public Builder clearAccuVar() { accuVar_ = getDefaultInstance().getAccuVar(); onChanged(); return this; } /** *
       * The name of the variable used for accumulation of the result.
       * 
* * string accu_var = 3; * @param value The bytes for accuVar to set. * @return This builder for chaining. */ public Builder setAccuVarBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accuVar_ = value; onChanged(); return this; } private com.google.api.expr.v1alpha1.Expr accuInit_; private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> accuInitBuilder_; /** *
       * The initial value of the accumulator.
       * 
* * .google.api.expr.v1alpha1.Expr accu_init = 4; * @return Whether the accuInit field is set. */ public boolean hasAccuInit() { return accuInitBuilder_ != null || accuInit_ != null; } /** *
       * The initial value of the accumulator.
       * 
* * .google.api.expr.v1alpha1.Expr accu_init = 4; * @return The accuInit. */ public com.google.api.expr.v1alpha1.Expr getAccuInit() { if (accuInitBuilder_ == null) { return accuInit_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : accuInit_; } else { return accuInitBuilder_.getMessage(); } } /** *
       * The initial value of the accumulator.
       * 
* * .google.api.expr.v1alpha1.Expr accu_init = 4; */ public Builder setAccuInit(com.google.api.expr.v1alpha1.Expr value) { if (accuInitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } accuInit_ = value; onChanged(); } else { accuInitBuilder_.setMessage(value); } return this; } /** *
       * The initial value of the accumulator.
       * 
* * .google.api.expr.v1alpha1.Expr accu_init = 4; */ public Builder setAccuInit( com.google.api.expr.v1alpha1.Expr.Builder builderForValue) { if (accuInitBuilder_ == null) { accuInit_ = builderForValue.build(); onChanged(); } else { accuInitBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The initial value of the accumulator.
       * 
* * .google.api.expr.v1alpha1.Expr accu_init = 4; */ public Builder mergeAccuInit(com.google.api.expr.v1alpha1.Expr value) { if (accuInitBuilder_ == null) { if (accuInit_ != null) { accuInit_ = com.google.api.expr.v1alpha1.Expr.newBuilder(accuInit_).mergeFrom(value).buildPartial(); } else { accuInit_ = value; } onChanged(); } else { accuInitBuilder_.mergeFrom(value); } return this; } /** *
       * The initial value of the accumulator.
       * 
* * .google.api.expr.v1alpha1.Expr accu_init = 4; */ public Builder clearAccuInit() { if (accuInitBuilder_ == null) { accuInit_ = null; onChanged(); } else { accuInit_ = null; accuInitBuilder_ = null; } return this; } /** *
       * The initial value of the accumulator.
       * 
* * .google.api.expr.v1alpha1.Expr accu_init = 4; */ public com.google.api.expr.v1alpha1.Expr.Builder getAccuInitBuilder() { onChanged(); return getAccuInitFieldBuilder().getBuilder(); } /** *
       * The initial value of the accumulator.
       * 
* * .google.api.expr.v1alpha1.Expr accu_init = 4; */ public com.google.api.expr.v1alpha1.ExprOrBuilder getAccuInitOrBuilder() { if (accuInitBuilder_ != null) { return accuInitBuilder_.getMessageOrBuilder(); } else { return accuInit_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : accuInit_; } } /** *
       * The initial value of the accumulator.
       * 
* * .google.api.expr.v1alpha1.Expr accu_init = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> getAccuInitFieldBuilder() { if (accuInitBuilder_ == null) { accuInitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder>( getAccuInit(), getParentForChildren(), isClean()); accuInit_ = null; } return accuInitBuilder_; } private com.google.api.expr.v1alpha1.Expr loopCondition_; private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> loopConditionBuilder_; /** *
       * An expression which can contain iter_var and accu_var.
       * Returns false when the result has been computed and may be used as
       * a hint to short-circuit the remainder of the comprehension.
       * 
* * .google.api.expr.v1alpha1.Expr loop_condition = 5; * @return Whether the loopCondition field is set. */ public boolean hasLoopCondition() { return loopConditionBuilder_ != null || loopCondition_ != null; } /** *
       * An expression which can contain iter_var and accu_var.
       * Returns false when the result has been computed and may be used as
       * a hint to short-circuit the remainder of the comprehension.
       * 
* * .google.api.expr.v1alpha1.Expr loop_condition = 5; * @return The loopCondition. */ public com.google.api.expr.v1alpha1.Expr getLoopCondition() { if (loopConditionBuilder_ == null) { return loopCondition_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : loopCondition_; } else { return loopConditionBuilder_.getMessage(); } } /** *
       * An expression which can contain iter_var and accu_var.
       * Returns false when the result has been computed and may be used as
       * a hint to short-circuit the remainder of the comprehension.
       * 
* * .google.api.expr.v1alpha1.Expr loop_condition = 5; */ public Builder setLoopCondition(com.google.api.expr.v1alpha1.Expr value) { if (loopConditionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } loopCondition_ = value; onChanged(); } else { loopConditionBuilder_.setMessage(value); } return this; } /** *
       * An expression which can contain iter_var and accu_var.
       * Returns false when the result has been computed and may be used as
       * a hint to short-circuit the remainder of the comprehension.
       * 
* * .google.api.expr.v1alpha1.Expr loop_condition = 5; */ public Builder setLoopCondition( com.google.api.expr.v1alpha1.Expr.Builder builderForValue) { if (loopConditionBuilder_ == null) { loopCondition_ = builderForValue.build(); onChanged(); } else { loopConditionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * An expression which can contain iter_var and accu_var.
       * Returns false when the result has been computed and may be used as
       * a hint to short-circuit the remainder of the comprehension.
       * 
* * .google.api.expr.v1alpha1.Expr loop_condition = 5; */ public Builder mergeLoopCondition(com.google.api.expr.v1alpha1.Expr value) { if (loopConditionBuilder_ == null) { if (loopCondition_ != null) { loopCondition_ = com.google.api.expr.v1alpha1.Expr.newBuilder(loopCondition_).mergeFrom(value).buildPartial(); } else { loopCondition_ = value; } onChanged(); } else { loopConditionBuilder_.mergeFrom(value); } return this; } /** *
       * An expression which can contain iter_var and accu_var.
       * Returns false when the result has been computed and may be used as
       * a hint to short-circuit the remainder of the comprehension.
       * 
* * .google.api.expr.v1alpha1.Expr loop_condition = 5; */ public Builder clearLoopCondition() { if (loopConditionBuilder_ == null) { loopCondition_ = null; onChanged(); } else { loopCondition_ = null; loopConditionBuilder_ = null; } return this; } /** *
       * An expression which can contain iter_var and accu_var.
       * Returns false when the result has been computed and may be used as
       * a hint to short-circuit the remainder of the comprehension.
       * 
* * .google.api.expr.v1alpha1.Expr loop_condition = 5; */ public com.google.api.expr.v1alpha1.Expr.Builder getLoopConditionBuilder() { onChanged(); return getLoopConditionFieldBuilder().getBuilder(); } /** *
       * An expression which can contain iter_var and accu_var.
       * Returns false when the result has been computed and may be used as
       * a hint to short-circuit the remainder of the comprehension.
       * 
* * .google.api.expr.v1alpha1.Expr loop_condition = 5; */ public com.google.api.expr.v1alpha1.ExprOrBuilder getLoopConditionOrBuilder() { if (loopConditionBuilder_ != null) { return loopConditionBuilder_.getMessageOrBuilder(); } else { return loopCondition_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : loopCondition_; } } /** *
       * An expression which can contain iter_var and accu_var.
       * Returns false when the result has been computed and may be used as
       * a hint to short-circuit the remainder of the comprehension.
       * 
* * .google.api.expr.v1alpha1.Expr loop_condition = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> getLoopConditionFieldBuilder() { if (loopConditionBuilder_ == null) { loopConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder>( getLoopCondition(), getParentForChildren(), isClean()); loopCondition_ = null; } return loopConditionBuilder_; } private com.google.api.expr.v1alpha1.Expr loopStep_; private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> loopStepBuilder_; /** *
       * An expression which can contain iter_var and accu_var.
       * Computes the next value of accu_var.
       * 
* * .google.api.expr.v1alpha1.Expr loop_step = 6; * @return Whether the loopStep field is set. */ public boolean hasLoopStep() { return loopStepBuilder_ != null || loopStep_ != null; } /** *
       * An expression which can contain iter_var and accu_var.
       * Computes the next value of accu_var.
       * 
* * .google.api.expr.v1alpha1.Expr loop_step = 6; * @return The loopStep. */ public com.google.api.expr.v1alpha1.Expr getLoopStep() { if (loopStepBuilder_ == null) { return loopStep_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : loopStep_; } else { return loopStepBuilder_.getMessage(); } } /** *
       * An expression which can contain iter_var and accu_var.
       * Computes the next value of accu_var.
       * 
* * .google.api.expr.v1alpha1.Expr loop_step = 6; */ public Builder setLoopStep(com.google.api.expr.v1alpha1.Expr value) { if (loopStepBuilder_ == null) { if (value == null) { throw new NullPointerException(); } loopStep_ = value; onChanged(); } else { loopStepBuilder_.setMessage(value); } return this; } /** *
       * An expression which can contain iter_var and accu_var.
       * Computes the next value of accu_var.
       * 
* * .google.api.expr.v1alpha1.Expr loop_step = 6; */ public Builder setLoopStep( com.google.api.expr.v1alpha1.Expr.Builder builderForValue) { if (loopStepBuilder_ == null) { loopStep_ = builderForValue.build(); onChanged(); } else { loopStepBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * An expression which can contain iter_var and accu_var.
       * Computes the next value of accu_var.
       * 
* * .google.api.expr.v1alpha1.Expr loop_step = 6; */ public Builder mergeLoopStep(com.google.api.expr.v1alpha1.Expr value) { if (loopStepBuilder_ == null) { if (loopStep_ != null) { loopStep_ = com.google.api.expr.v1alpha1.Expr.newBuilder(loopStep_).mergeFrom(value).buildPartial(); } else { loopStep_ = value; } onChanged(); } else { loopStepBuilder_.mergeFrom(value); } return this; } /** *
       * An expression which can contain iter_var and accu_var.
       * Computes the next value of accu_var.
       * 
* * .google.api.expr.v1alpha1.Expr loop_step = 6; */ public Builder clearLoopStep() { if (loopStepBuilder_ == null) { loopStep_ = null; onChanged(); } else { loopStep_ = null; loopStepBuilder_ = null; } return this; } /** *
       * An expression which can contain iter_var and accu_var.
       * Computes the next value of accu_var.
       * 
* * .google.api.expr.v1alpha1.Expr loop_step = 6; */ public com.google.api.expr.v1alpha1.Expr.Builder getLoopStepBuilder() { onChanged(); return getLoopStepFieldBuilder().getBuilder(); } /** *
       * An expression which can contain iter_var and accu_var.
       * Computes the next value of accu_var.
       * 
* * .google.api.expr.v1alpha1.Expr loop_step = 6; */ public com.google.api.expr.v1alpha1.ExprOrBuilder getLoopStepOrBuilder() { if (loopStepBuilder_ != null) { return loopStepBuilder_.getMessageOrBuilder(); } else { return loopStep_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : loopStep_; } } /** *
       * An expression which can contain iter_var and accu_var.
       * Computes the next value of accu_var.
       * 
* * .google.api.expr.v1alpha1.Expr loop_step = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> getLoopStepFieldBuilder() { if (loopStepBuilder_ == null) { loopStepBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder>( getLoopStep(), getParentForChildren(), isClean()); loopStep_ = null; } return loopStepBuilder_; } private com.google.api.expr.v1alpha1.Expr result_; private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> resultBuilder_; /** *
       * An expression which can contain accu_var.
       * Computes the result.
       * 
* * .google.api.expr.v1alpha1.Expr result = 7; * @return Whether the result field is set. */ public boolean hasResult() { return resultBuilder_ != null || result_ != null; } /** *
       * An expression which can contain accu_var.
       * Computes the result.
       * 
* * .google.api.expr.v1alpha1.Expr result = 7; * @return The result. */ public com.google.api.expr.v1alpha1.Expr getResult() { if (resultBuilder_ == null) { return result_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** *
       * An expression which can contain accu_var.
       * Computes the result.
       * 
* * .google.api.expr.v1alpha1.Expr result = 7; */ public Builder setResult(com.google.api.expr.v1alpha1.Expr value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; onChanged(); } else { resultBuilder_.setMessage(value); } return this; } /** *
       * An expression which can contain accu_var.
       * Computes the result.
       * 
* * .google.api.expr.v1alpha1.Expr result = 7; */ public Builder setResult( com.google.api.expr.v1alpha1.Expr.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * An expression which can contain accu_var.
       * Computes the result.
       * 
* * .google.api.expr.v1alpha1.Expr result = 7; */ public Builder mergeResult(com.google.api.expr.v1alpha1.Expr value) { if (resultBuilder_ == null) { if (result_ != null) { result_ = com.google.api.expr.v1alpha1.Expr.newBuilder(result_).mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { resultBuilder_.mergeFrom(value); } return this; } /** *
       * An expression which can contain accu_var.
       * Computes the result.
       * 
* * .google.api.expr.v1alpha1.Expr result = 7; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = null; onChanged(); } else { result_ = null; resultBuilder_ = null; } return this; } /** *
       * An expression which can contain accu_var.
       * Computes the result.
       * 
* * .google.api.expr.v1alpha1.Expr result = 7; */ public com.google.api.expr.v1alpha1.Expr.Builder getResultBuilder() { onChanged(); return getResultFieldBuilder().getBuilder(); } /** *
       * An expression which can contain accu_var.
       * Computes the result.
       * 
* * .google.api.expr.v1alpha1.Expr result = 7; */ public com.google.api.expr.v1alpha1.ExprOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? com.google.api.expr.v1alpha1.Expr.getDefaultInstance() : result_; } } /** *
       * An expression which can contain accu_var.
       * Computes the result.
       * 
* * .google.api.expr.v1alpha1.Expr result = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr, com.google.api.expr.v1alpha1.Expr.Builder, com.google.api.expr.v1alpha1.ExprOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.api.expr.v1alpha1.Expr.Comprehension) } // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr.Comprehension) private static final com.google.api.expr.v1alpha1.Expr.Comprehension DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.api.expr.v1alpha1.Expr.Comprehension(); } public static com.google.api.expr.v1alpha1.Expr.Comprehension getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Comprehension parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Comprehension(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Comprehension getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int exprKindCase_ = 0; private java.lang.Object exprKind_; public enum ExprKindCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONST_EXPR(3), IDENT_EXPR(4), SELECT_EXPR(5), CALL_EXPR(6), LIST_EXPR(7), STRUCT_EXPR(8), COMPREHENSION_EXPR(9), EXPRKIND_NOT_SET(0); private final int value; private ExprKindCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ExprKindCase valueOf(int value) { return forNumber(value); } public static ExprKindCase forNumber(int value) { switch (value) { case 3: return CONST_EXPR; case 4: return IDENT_EXPR; case 5: return SELECT_EXPR; case 6: return CALL_EXPR; case 7: return LIST_EXPR; case 8: return STRUCT_EXPR; case 9: return COMPREHENSION_EXPR; case 0: return EXPRKIND_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ExprKindCase getExprKindCase() { return ExprKindCase.forNumber( exprKindCase_); } public static final int ID_FIELD_NUMBER = 2; private long id_; /** *
   * 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 a node in the parse tree.
   * 
* * int64 id = 2; * @return The id. */ @java.lang.Override public long getId() { return id_; } public static final int CONST_EXPR_FIELD_NUMBER = 3; /** *
   * A literal expression.
   * 
* * .google.api.expr.v1alpha1.Constant const_expr = 3; * @return Whether the constExpr field is set. */ @java.lang.Override public boolean hasConstExpr() { return exprKindCase_ == 3; } /** *
   * A literal expression.
   * 
* * .google.api.expr.v1alpha1.Constant const_expr = 3; * @return The constExpr. */ @java.lang.Override public com.google.api.expr.v1alpha1.Constant getConstExpr() { if (exprKindCase_ == 3) { return (com.google.api.expr.v1alpha1.Constant) exprKind_; } return com.google.api.expr.v1alpha1.Constant.getDefaultInstance(); } /** *
   * A literal expression.
   * 
* * .google.api.expr.v1alpha1.Constant const_expr = 3; */ @java.lang.Override public com.google.api.expr.v1alpha1.ConstantOrBuilder getConstExprOrBuilder() { if (exprKindCase_ == 3) { return (com.google.api.expr.v1alpha1.Constant) exprKind_; } return com.google.api.expr.v1alpha1.Constant.getDefaultInstance(); } public static final int IDENT_EXPR_FIELD_NUMBER = 4; /** *
   * An identifier expression.
   * 
* * .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4; * @return Whether the identExpr field is set. */ @java.lang.Override public boolean hasIdentExpr() { return exprKindCase_ == 4; } /** *
   * An identifier expression.
   * 
* * .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4; * @return The identExpr. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Ident getIdentExpr() { if (exprKindCase_ == 4) { return (com.google.api.expr.v1alpha1.Expr.Ident) exprKind_; } return com.google.api.expr.v1alpha1.Expr.Ident.getDefaultInstance(); } /** *
   * An identifier expression.
   * 
* * .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4; */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.IdentOrBuilder getIdentExprOrBuilder() { if (exprKindCase_ == 4) { return (com.google.api.expr.v1alpha1.Expr.Ident) exprKind_; } return com.google.api.expr.v1alpha1.Expr.Ident.getDefaultInstance(); } public static final int SELECT_EXPR_FIELD_NUMBER = 5; /** *
   * A field selection expression, e.g. `request.auth`.
   * 
* * .google.api.expr.v1alpha1.Expr.Select select_expr = 5; * @return Whether the selectExpr field is set. */ @java.lang.Override public boolean hasSelectExpr() { return exprKindCase_ == 5; } /** *
   * A field selection expression, e.g. `request.auth`.
   * 
* * .google.api.expr.v1alpha1.Expr.Select select_expr = 5; * @return The selectExpr. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Select getSelectExpr() { if (exprKindCase_ == 5) { return (com.google.api.expr.v1alpha1.Expr.Select) exprKind_; } return com.google.api.expr.v1alpha1.Expr.Select.getDefaultInstance(); } /** *
   * A field selection expression, e.g. `request.auth`.
   * 
* * .google.api.expr.v1alpha1.Expr.Select select_expr = 5; */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.SelectOrBuilder getSelectExprOrBuilder() { if (exprKindCase_ == 5) { return (com.google.api.expr.v1alpha1.Expr.Select) exprKind_; } return com.google.api.expr.v1alpha1.Expr.Select.getDefaultInstance(); } public static final int CALL_EXPR_FIELD_NUMBER = 6; /** *
   * A call expression, including calls to predefined functions and operators.
   * 
* * .google.api.expr.v1alpha1.Expr.Call call_expr = 6; * @return Whether the callExpr field is set. */ @java.lang.Override public boolean hasCallExpr() { return exprKindCase_ == 6; } /** *
   * A call expression, including calls to predefined functions and operators.
   * 
* * .google.api.expr.v1alpha1.Expr.Call call_expr = 6; * @return The callExpr. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Call getCallExpr() { if (exprKindCase_ == 6) { return (com.google.api.expr.v1alpha1.Expr.Call) exprKind_; } return com.google.api.expr.v1alpha1.Expr.Call.getDefaultInstance(); } /** *
   * A call expression, including calls to predefined functions and operators.
   * 
* * .google.api.expr.v1alpha1.Expr.Call call_expr = 6; */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CallOrBuilder getCallExprOrBuilder() { if (exprKindCase_ == 6) { return (com.google.api.expr.v1alpha1.Expr.Call) exprKind_; } return com.google.api.expr.v1alpha1.Expr.Call.getDefaultInstance(); } public static final int LIST_EXPR_FIELD_NUMBER = 7; /** *
   * A list creation expression.
   * 
* * .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7; * @return Whether the listExpr field is set. */ @java.lang.Override public boolean hasListExpr() { return exprKindCase_ == 7; } /** *
   * A list creation expression.
   * 
* * .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7; * @return The listExpr. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateList getListExpr() { if (exprKindCase_ == 7) { return (com.google.api.expr.v1alpha1.Expr.CreateList) exprKind_; } return com.google.api.expr.v1alpha1.Expr.CreateList.getDefaultInstance(); } /** *
   * A list creation expression.
   * 
* * .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7; */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateListOrBuilder getListExprOrBuilder() { if (exprKindCase_ == 7) { return (com.google.api.expr.v1alpha1.Expr.CreateList) exprKind_; } return com.google.api.expr.v1alpha1.Expr.CreateList.getDefaultInstance(); } public static final int STRUCT_EXPR_FIELD_NUMBER = 8; /** *
   * A map or message creation expression.
   * 
* * .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8; * @return Whether the structExpr field is set. */ @java.lang.Override public boolean hasStructExpr() { return exprKindCase_ == 8; } /** *
   * A map or message creation expression.
   * 
* * .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8; * @return The structExpr. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateStruct getStructExpr() { if (exprKindCase_ == 8) { return (com.google.api.expr.v1alpha1.Expr.CreateStruct) exprKind_; } return com.google.api.expr.v1alpha1.Expr.CreateStruct.getDefaultInstance(); } /** *
   * A map or message creation expression.
   * 
* * .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8; */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateStructOrBuilder getStructExprOrBuilder() { if (exprKindCase_ == 8) { return (com.google.api.expr.v1alpha1.Expr.CreateStruct) exprKind_; } return com.google.api.expr.v1alpha1.Expr.CreateStruct.getDefaultInstance(); } public static final int COMPREHENSION_EXPR_FIELD_NUMBER = 9; /** *
   * A comprehension expression.
   * 
* * .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9; * @return Whether the comprehensionExpr field is set. */ @java.lang.Override public boolean hasComprehensionExpr() { return exprKindCase_ == 9; } /** *
   * A comprehension expression.
   * 
* * .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9; * @return The comprehensionExpr. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Comprehension getComprehensionExpr() { if (exprKindCase_ == 9) { return (com.google.api.expr.v1alpha1.Expr.Comprehension) exprKind_; } return com.google.api.expr.v1alpha1.Expr.Comprehension.getDefaultInstance(); } /** *
   * A comprehension expression.
   * 
* * .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9; */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.ComprehensionOrBuilder getComprehensionExprOrBuilder() { if (exprKindCase_ == 9) { return (com.google.api.expr.v1alpha1.Expr.Comprehension) exprKind_; } return com.google.api.expr.v1alpha1.Expr.Comprehension.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != 0L) { output.writeInt64(2, id_); } if (exprKindCase_ == 3) { output.writeMessage(3, (com.google.api.expr.v1alpha1.Constant) exprKind_); } if (exprKindCase_ == 4) { output.writeMessage(4, (com.google.api.expr.v1alpha1.Expr.Ident) exprKind_); } if (exprKindCase_ == 5) { output.writeMessage(5, (com.google.api.expr.v1alpha1.Expr.Select) exprKind_); } if (exprKindCase_ == 6) { output.writeMessage(6, (com.google.api.expr.v1alpha1.Expr.Call) exprKind_); } if (exprKindCase_ == 7) { output.writeMessage(7, (com.google.api.expr.v1alpha1.Expr.CreateList) exprKind_); } if (exprKindCase_ == 8) { output.writeMessage(8, (com.google.api.expr.v1alpha1.Expr.CreateStruct) exprKind_); } if (exprKindCase_ == 9) { output.writeMessage(9, (com.google.api.expr.v1alpha1.Expr.Comprehension) exprKind_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, id_); } if (exprKindCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.google.api.expr.v1alpha1.Constant) exprKind_); } if (exprKindCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.google.api.expr.v1alpha1.Expr.Ident) exprKind_); } if (exprKindCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.google.api.expr.v1alpha1.Expr.Select) exprKind_); } if (exprKindCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.google.api.expr.v1alpha1.Expr.Call) exprKind_); } if (exprKindCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.google.api.expr.v1alpha1.Expr.CreateList) exprKind_); } if (exprKindCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.google.api.expr.v1alpha1.Expr.CreateStruct) exprKind_); } if (exprKindCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.google.api.expr.v1alpha1.Expr.Comprehension) exprKind_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.api.expr.v1alpha1.Expr)) { return super.equals(obj); } com.google.api.expr.v1alpha1.Expr other = (com.google.api.expr.v1alpha1.Expr) obj; if (getId() != other.getId()) return false; if (!getExprKindCase().equals(other.getExprKindCase())) return false; switch (exprKindCase_) { case 3: if (!getConstExpr() .equals(other.getConstExpr())) return false; break; case 4: if (!getIdentExpr() .equals(other.getIdentExpr())) return false; break; case 5: if (!getSelectExpr() .equals(other.getSelectExpr())) return false; break; case 6: if (!getCallExpr() .equals(other.getCallExpr())) return false; break; case 7: if (!getListExpr() .equals(other.getListExpr())) return false; break; case 8: if (!getStructExpr() .equals(other.getStructExpr())) return false; break; case 9: if (!getComprehensionExpr() .equals(other.getComprehensionExpr())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); switch (exprKindCase_) { case 3: hash = (37 * hash) + CONST_EXPR_FIELD_NUMBER; hash = (53 * hash) + getConstExpr().hashCode(); break; case 4: hash = (37 * hash) + IDENT_EXPR_FIELD_NUMBER; hash = (53 * hash) + getIdentExpr().hashCode(); break; case 5: hash = (37 * hash) + SELECT_EXPR_FIELD_NUMBER; hash = (53 * hash) + getSelectExpr().hashCode(); break; case 6: hash = (37 * hash) + CALL_EXPR_FIELD_NUMBER; hash = (53 * hash) + getCallExpr().hashCode(); break; case 7: hash = (37 * hash) + LIST_EXPR_FIELD_NUMBER; hash = (53 * hash) + getListExpr().hashCode(); break; case 8: hash = (37 * hash) + STRUCT_EXPR_FIELD_NUMBER; hash = (53 * hash) + getStructExpr().hashCode(); break; case 9: hash = (37 * hash) + COMPREHENSION_EXPR_FIELD_NUMBER; hash = (53 * hash) + getComprehensionExpr().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.api.expr.v1alpha1.Expr parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.api.expr.v1alpha1.Expr parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.api.expr.v1alpha1.Expr parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.api.expr.v1alpha1.Expr parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.api.expr.v1alpha1.Expr prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * An abstract representation of a common expression.
   * Expressions are abstractly represented as a collection of identifiers,
   * select statements, function calls, literals, and comprehensions. All
   * operators with the exception of the '.' operator are modelled as function
   * calls. This makes it easy to represent new operators into the existing AST.
   * All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at
   * type-check for an expression to be valid. A reference may either be a bare
   * identifier `name` or a qualified identifier `google.api.name`. References
   * may either refer to a value or a function declaration.
   * For example, the expression `google.api.name.startsWith('expr')` references
   * the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and
   * the function declaration `startsWith`.
   * 
* * Protobuf type {@code google.api.expr.v1alpha1.Expr} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.api.expr.v1alpha1.Expr) com.google.api.expr.v1alpha1.ExprOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.api.expr.v1alpha1.Expr.class, com.google.api.expr.v1alpha1.Expr.Builder.class); } // Construct using com.google.api.expr.v1alpha1.Expr.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); id_ = 0L; exprKindCase_ = 0; exprKind_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.api.expr.v1alpha1.SyntaxProto.internal_static_google_api_expr_v1alpha1_Expr_descriptor; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr getDefaultInstanceForType() { return com.google.api.expr.v1alpha1.Expr.getDefaultInstance(); } @java.lang.Override public com.google.api.expr.v1alpha1.Expr build() { com.google.api.expr.v1alpha1.Expr result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr buildPartial() { com.google.api.expr.v1alpha1.Expr result = new com.google.api.expr.v1alpha1.Expr(this); result.id_ = id_; if (exprKindCase_ == 3) { if (constExprBuilder_ == null) { result.exprKind_ = exprKind_; } else { result.exprKind_ = constExprBuilder_.build(); } } if (exprKindCase_ == 4) { if (identExprBuilder_ == null) { result.exprKind_ = exprKind_; } else { result.exprKind_ = identExprBuilder_.build(); } } if (exprKindCase_ == 5) { if (selectExprBuilder_ == null) { result.exprKind_ = exprKind_; } else { result.exprKind_ = selectExprBuilder_.build(); } } if (exprKindCase_ == 6) { if (callExprBuilder_ == null) { result.exprKind_ = exprKind_; } else { result.exprKind_ = callExprBuilder_.build(); } } if (exprKindCase_ == 7) { if (listExprBuilder_ == null) { result.exprKind_ = exprKind_; } else { result.exprKind_ = listExprBuilder_.build(); } } if (exprKindCase_ == 8) { if (structExprBuilder_ == null) { result.exprKind_ = exprKind_; } else { result.exprKind_ = structExprBuilder_.build(); } } if (exprKindCase_ == 9) { if (comprehensionExprBuilder_ == null) { result.exprKind_ = exprKind_; } else { result.exprKind_ = comprehensionExprBuilder_.build(); } } result.exprKindCase_ = exprKindCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.api.expr.v1alpha1.Expr) { return mergeFrom((com.google.api.expr.v1alpha1.Expr)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.api.expr.v1alpha1.Expr other) { if (other == com.google.api.expr.v1alpha1.Expr.getDefaultInstance()) return this; if (other.getId() != 0L) { setId(other.getId()); } switch (other.getExprKindCase()) { case CONST_EXPR: { mergeConstExpr(other.getConstExpr()); break; } case IDENT_EXPR: { mergeIdentExpr(other.getIdentExpr()); break; } case SELECT_EXPR: { mergeSelectExpr(other.getSelectExpr()); break; } case CALL_EXPR: { mergeCallExpr(other.getCallExpr()); break; } case LIST_EXPR: { mergeListExpr(other.getListExpr()); break; } case STRUCT_EXPR: { mergeStructExpr(other.getStructExpr()); break; } case COMPREHENSION_EXPR: { mergeComprehensionExpr(other.getComprehensionExpr()); break; } case EXPRKIND_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.api.expr.v1alpha1.Expr parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.api.expr.v1alpha1.Expr) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int exprKindCase_ = 0; private java.lang.Object exprKind_; public ExprKindCase getExprKindCase() { return ExprKindCase.forNumber( exprKindCase_); } public Builder clearExprKind() { exprKindCase_ = 0; exprKind_ = null; onChanged(); return this; } private long id_ ; /** *
     * 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 a node in the parse tree.
     * 
* * int64 id = 2; * @return The id. */ @java.lang.Override public long getId() { return id_; } /** *
     * 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 a node in the parse tree.
     * 
* * int64 id = 2; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { id_ = value; onChanged(); return this; } /** *
     * 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 a node in the parse tree.
     * 
* * int64 id = 2; * @return This builder for chaining. */ public Builder clearId() { id_ = 0L; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Constant, com.google.api.expr.v1alpha1.Constant.Builder, com.google.api.expr.v1alpha1.ConstantOrBuilder> constExprBuilder_; /** *
     * A literal expression.
     * 
* * .google.api.expr.v1alpha1.Constant const_expr = 3; * @return Whether the constExpr field is set. */ @java.lang.Override public boolean hasConstExpr() { return exprKindCase_ == 3; } /** *
     * A literal expression.
     * 
* * .google.api.expr.v1alpha1.Constant const_expr = 3; * @return The constExpr. */ @java.lang.Override public com.google.api.expr.v1alpha1.Constant getConstExpr() { if (constExprBuilder_ == null) { if (exprKindCase_ == 3) { return (com.google.api.expr.v1alpha1.Constant) exprKind_; } return com.google.api.expr.v1alpha1.Constant.getDefaultInstance(); } else { if (exprKindCase_ == 3) { return constExprBuilder_.getMessage(); } return com.google.api.expr.v1alpha1.Constant.getDefaultInstance(); } } /** *
     * A literal expression.
     * 
* * .google.api.expr.v1alpha1.Constant const_expr = 3; */ public Builder setConstExpr(com.google.api.expr.v1alpha1.Constant value) { if (constExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } exprKind_ = value; onChanged(); } else { constExprBuilder_.setMessage(value); } exprKindCase_ = 3; return this; } /** *
     * A literal expression.
     * 
* * .google.api.expr.v1alpha1.Constant const_expr = 3; */ public Builder setConstExpr( com.google.api.expr.v1alpha1.Constant.Builder builderForValue) { if (constExprBuilder_ == null) { exprKind_ = builderForValue.build(); onChanged(); } else { constExprBuilder_.setMessage(builderForValue.build()); } exprKindCase_ = 3; return this; } /** *
     * A literal expression.
     * 
* * .google.api.expr.v1alpha1.Constant const_expr = 3; */ public Builder mergeConstExpr(com.google.api.expr.v1alpha1.Constant value) { if (constExprBuilder_ == null) { if (exprKindCase_ == 3 && exprKind_ != com.google.api.expr.v1alpha1.Constant.getDefaultInstance()) { exprKind_ = com.google.api.expr.v1alpha1.Constant.newBuilder((com.google.api.expr.v1alpha1.Constant) exprKind_) .mergeFrom(value).buildPartial(); } else { exprKind_ = value; } onChanged(); } else { if (exprKindCase_ == 3) { constExprBuilder_.mergeFrom(value); } else { constExprBuilder_.setMessage(value); } } exprKindCase_ = 3; return this; } /** *
     * A literal expression.
     * 
* * .google.api.expr.v1alpha1.Constant const_expr = 3; */ public Builder clearConstExpr() { if (constExprBuilder_ == null) { if (exprKindCase_ == 3) { exprKindCase_ = 0; exprKind_ = null; onChanged(); } } else { if (exprKindCase_ == 3) { exprKindCase_ = 0; exprKind_ = null; } constExprBuilder_.clear(); } return this; } /** *
     * A literal expression.
     * 
* * .google.api.expr.v1alpha1.Constant const_expr = 3; */ public com.google.api.expr.v1alpha1.Constant.Builder getConstExprBuilder() { return getConstExprFieldBuilder().getBuilder(); } /** *
     * A literal expression.
     * 
* * .google.api.expr.v1alpha1.Constant const_expr = 3; */ @java.lang.Override public com.google.api.expr.v1alpha1.ConstantOrBuilder getConstExprOrBuilder() { if ((exprKindCase_ == 3) && (constExprBuilder_ != null)) { return constExprBuilder_.getMessageOrBuilder(); } else { if (exprKindCase_ == 3) { return (com.google.api.expr.v1alpha1.Constant) exprKind_; } return com.google.api.expr.v1alpha1.Constant.getDefaultInstance(); } } /** *
     * A literal expression.
     * 
* * .google.api.expr.v1alpha1.Constant const_expr = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Constant, com.google.api.expr.v1alpha1.Constant.Builder, com.google.api.expr.v1alpha1.ConstantOrBuilder> getConstExprFieldBuilder() { if (constExprBuilder_ == null) { if (!(exprKindCase_ == 3)) { exprKind_ = com.google.api.expr.v1alpha1.Constant.getDefaultInstance(); } constExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Constant, com.google.api.expr.v1alpha1.Constant.Builder, com.google.api.expr.v1alpha1.ConstantOrBuilder>( (com.google.api.expr.v1alpha1.Constant) exprKind_, getParentForChildren(), isClean()); exprKind_ = null; } exprKindCase_ = 3; onChanged();; return constExprBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.Ident, com.google.api.expr.v1alpha1.Expr.Ident.Builder, com.google.api.expr.v1alpha1.Expr.IdentOrBuilder> identExprBuilder_; /** *
     * An identifier expression.
     * 
* * .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4; * @return Whether the identExpr field is set. */ @java.lang.Override public boolean hasIdentExpr() { return exprKindCase_ == 4; } /** *
     * An identifier expression.
     * 
* * .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4; * @return The identExpr. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Ident getIdentExpr() { if (identExprBuilder_ == null) { if (exprKindCase_ == 4) { return (com.google.api.expr.v1alpha1.Expr.Ident) exprKind_; } return com.google.api.expr.v1alpha1.Expr.Ident.getDefaultInstance(); } else { if (exprKindCase_ == 4) { return identExprBuilder_.getMessage(); } return com.google.api.expr.v1alpha1.Expr.Ident.getDefaultInstance(); } } /** *
     * An identifier expression.
     * 
* * .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4; */ public Builder setIdentExpr(com.google.api.expr.v1alpha1.Expr.Ident value) { if (identExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } exprKind_ = value; onChanged(); } else { identExprBuilder_.setMessage(value); } exprKindCase_ = 4; return this; } /** *
     * An identifier expression.
     * 
* * .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4; */ public Builder setIdentExpr( com.google.api.expr.v1alpha1.Expr.Ident.Builder builderForValue) { if (identExprBuilder_ == null) { exprKind_ = builderForValue.build(); onChanged(); } else { identExprBuilder_.setMessage(builderForValue.build()); } exprKindCase_ = 4; return this; } /** *
     * An identifier expression.
     * 
* * .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4; */ public Builder mergeIdentExpr(com.google.api.expr.v1alpha1.Expr.Ident value) { if (identExprBuilder_ == null) { if (exprKindCase_ == 4 && exprKind_ != com.google.api.expr.v1alpha1.Expr.Ident.getDefaultInstance()) { exprKind_ = com.google.api.expr.v1alpha1.Expr.Ident.newBuilder((com.google.api.expr.v1alpha1.Expr.Ident) exprKind_) .mergeFrom(value).buildPartial(); } else { exprKind_ = value; } onChanged(); } else { if (exprKindCase_ == 4) { identExprBuilder_.mergeFrom(value); } else { identExprBuilder_.setMessage(value); } } exprKindCase_ = 4; return this; } /** *
     * An identifier expression.
     * 
* * .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4; */ public Builder clearIdentExpr() { if (identExprBuilder_ == null) { if (exprKindCase_ == 4) { exprKindCase_ = 0; exprKind_ = null; onChanged(); } } else { if (exprKindCase_ == 4) { exprKindCase_ = 0; exprKind_ = null; } identExprBuilder_.clear(); } return this; } /** *
     * An identifier expression.
     * 
* * .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4; */ public com.google.api.expr.v1alpha1.Expr.Ident.Builder getIdentExprBuilder() { return getIdentExprFieldBuilder().getBuilder(); } /** *
     * An identifier expression.
     * 
* * .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4; */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.IdentOrBuilder getIdentExprOrBuilder() { if ((exprKindCase_ == 4) && (identExprBuilder_ != null)) { return identExprBuilder_.getMessageOrBuilder(); } else { if (exprKindCase_ == 4) { return (com.google.api.expr.v1alpha1.Expr.Ident) exprKind_; } return com.google.api.expr.v1alpha1.Expr.Ident.getDefaultInstance(); } } /** *
     * An identifier expression.
     * 
* * .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.Ident, com.google.api.expr.v1alpha1.Expr.Ident.Builder, com.google.api.expr.v1alpha1.Expr.IdentOrBuilder> getIdentExprFieldBuilder() { if (identExprBuilder_ == null) { if (!(exprKindCase_ == 4)) { exprKind_ = com.google.api.expr.v1alpha1.Expr.Ident.getDefaultInstance(); } identExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.Ident, com.google.api.expr.v1alpha1.Expr.Ident.Builder, com.google.api.expr.v1alpha1.Expr.IdentOrBuilder>( (com.google.api.expr.v1alpha1.Expr.Ident) exprKind_, getParentForChildren(), isClean()); exprKind_ = null; } exprKindCase_ = 4; onChanged();; return identExprBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.Select, com.google.api.expr.v1alpha1.Expr.Select.Builder, com.google.api.expr.v1alpha1.Expr.SelectOrBuilder> selectExprBuilder_; /** *
     * A field selection expression, e.g. `request.auth`.
     * 
* * .google.api.expr.v1alpha1.Expr.Select select_expr = 5; * @return Whether the selectExpr field is set. */ @java.lang.Override public boolean hasSelectExpr() { return exprKindCase_ == 5; } /** *
     * A field selection expression, e.g. `request.auth`.
     * 
* * .google.api.expr.v1alpha1.Expr.Select select_expr = 5; * @return The selectExpr. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Select getSelectExpr() { if (selectExprBuilder_ == null) { if (exprKindCase_ == 5) { return (com.google.api.expr.v1alpha1.Expr.Select) exprKind_; } return com.google.api.expr.v1alpha1.Expr.Select.getDefaultInstance(); } else { if (exprKindCase_ == 5) { return selectExprBuilder_.getMessage(); } return com.google.api.expr.v1alpha1.Expr.Select.getDefaultInstance(); } } /** *
     * A field selection expression, e.g. `request.auth`.
     * 
* * .google.api.expr.v1alpha1.Expr.Select select_expr = 5; */ public Builder setSelectExpr(com.google.api.expr.v1alpha1.Expr.Select value) { if (selectExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } exprKind_ = value; onChanged(); } else { selectExprBuilder_.setMessage(value); } exprKindCase_ = 5; return this; } /** *
     * A field selection expression, e.g. `request.auth`.
     * 
* * .google.api.expr.v1alpha1.Expr.Select select_expr = 5; */ public Builder setSelectExpr( com.google.api.expr.v1alpha1.Expr.Select.Builder builderForValue) { if (selectExprBuilder_ == null) { exprKind_ = builderForValue.build(); onChanged(); } else { selectExprBuilder_.setMessage(builderForValue.build()); } exprKindCase_ = 5; return this; } /** *
     * A field selection expression, e.g. `request.auth`.
     * 
* * .google.api.expr.v1alpha1.Expr.Select select_expr = 5; */ public Builder mergeSelectExpr(com.google.api.expr.v1alpha1.Expr.Select value) { if (selectExprBuilder_ == null) { if (exprKindCase_ == 5 && exprKind_ != com.google.api.expr.v1alpha1.Expr.Select.getDefaultInstance()) { exprKind_ = com.google.api.expr.v1alpha1.Expr.Select.newBuilder((com.google.api.expr.v1alpha1.Expr.Select) exprKind_) .mergeFrom(value).buildPartial(); } else { exprKind_ = value; } onChanged(); } else { if (exprKindCase_ == 5) { selectExprBuilder_.mergeFrom(value); } else { selectExprBuilder_.setMessage(value); } } exprKindCase_ = 5; return this; } /** *
     * A field selection expression, e.g. `request.auth`.
     * 
* * .google.api.expr.v1alpha1.Expr.Select select_expr = 5; */ public Builder clearSelectExpr() { if (selectExprBuilder_ == null) { if (exprKindCase_ == 5) { exprKindCase_ = 0; exprKind_ = null; onChanged(); } } else { if (exprKindCase_ == 5) { exprKindCase_ = 0; exprKind_ = null; } selectExprBuilder_.clear(); } return this; } /** *
     * A field selection expression, e.g. `request.auth`.
     * 
* * .google.api.expr.v1alpha1.Expr.Select select_expr = 5; */ public com.google.api.expr.v1alpha1.Expr.Select.Builder getSelectExprBuilder() { return getSelectExprFieldBuilder().getBuilder(); } /** *
     * A field selection expression, e.g. `request.auth`.
     * 
* * .google.api.expr.v1alpha1.Expr.Select select_expr = 5; */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.SelectOrBuilder getSelectExprOrBuilder() { if ((exprKindCase_ == 5) && (selectExprBuilder_ != null)) { return selectExprBuilder_.getMessageOrBuilder(); } else { if (exprKindCase_ == 5) { return (com.google.api.expr.v1alpha1.Expr.Select) exprKind_; } return com.google.api.expr.v1alpha1.Expr.Select.getDefaultInstance(); } } /** *
     * A field selection expression, e.g. `request.auth`.
     * 
* * .google.api.expr.v1alpha1.Expr.Select select_expr = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.Select, com.google.api.expr.v1alpha1.Expr.Select.Builder, com.google.api.expr.v1alpha1.Expr.SelectOrBuilder> getSelectExprFieldBuilder() { if (selectExprBuilder_ == null) { if (!(exprKindCase_ == 5)) { exprKind_ = com.google.api.expr.v1alpha1.Expr.Select.getDefaultInstance(); } selectExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.Select, com.google.api.expr.v1alpha1.Expr.Select.Builder, com.google.api.expr.v1alpha1.Expr.SelectOrBuilder>( (com.google.api.expr.v1alpha1.Expr.Select) exprKind_, getParentForChildren(), isClean()); exprKind_ = null; } exprKindCase_ = 5; onChanged();; return selectExprBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.Call, com.google.api.expr.v1alpha1.Expr.Call.Builder, com.google.api.expr.v1alpha1.Expr.CallOrBuilder> callExprBuilder_; /** *
     * A call expression, including calls to predefined functions and operators.
     * 
* * .google.api.expr.v1alpha1.Expr.Call call_expr = 6; * @return Whether the callExpr field is set. */ @java.lang.Override public boolean hasCallExpr() { return exprKindCase_ == 6; } /** *
     * A call expression, including calls to predefined functions and operators.
     * 
* * .google.api.expr.v1alpha1.Expr.Call call_expr = 6; * @return The callExpr. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Call getCallExpr() { if (callExprBuilder_ == null) { if (exprKindCase_ == 6) { return (com.google.api.expr.v1alpha1.Expr.Call) exprKind_; } return com.google.api.expr.v1alpha1.Expr.Call.getDefaultInstance(); } else { if (exprKindCase_ == 6) { return callExprBuilder_.getMessage(); } return com.google.api.expr.v1alpha1.Expr.Call.getDefaultInstance(); } } /** *
     * A call expression, including calls to predefined functions and operators.
     * 
* * .google.api.expr.v1alpha1.Expr.Call call_expr = 6; */ public Builder setCallExpr(com.google.api.expr.v1alpha1.Expr.Call value) { if (callExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } exprKind_ = value; onChanged(); } else { callExprBuilder_.setMessage(value); } exprKindCase_ = 6; return this; } /** *
     * A call expression, including calls to predefined functions and operators.
     * 
* * .google.api.expr.v1alpha1.Expr.Call call_expr = 6; */ public Builder setCallExpr( com.google.api.expr.v1alpha1.Expr.Call.Builder builderForValue) { if (callExprBuilder_ == null) { exprKind_ = builderForValue.build(); onChanged(); } else { callExprBuilder_.setMessage(builderForValue.build()); } exprKindCase_ = 6; return this; } /** *
     * A call expression, including calls to predefined functions and operators.
     * 
* * .google.api.expr.v1alpha1.Expr.Call call_expr = 6; */ public Builder mergeCallExpr(com.google.api.expr.v1alpha1.Expr.Call value) { if (callExprBuilder_ == null) { if (exprKindCase_ == 6 && exprKind_ != com.google.api.expr.v1alpha1.Expr.Call.getDefaultInstance()) { exprKind_ = com.google.api.expr.v1alpha1.Expr.Call.newBuilder((com.google.api.expr.v1alpha1.Expr.Call) exprKind_) .mergeFrom(value).buildPartial(); } else { exprKind_ = value; } onChanged(); } else { if (exprKindCase_ == 6) { callExprBuilder_.mergeFrom(value); } else { callExprBuilder_.setMessage(value); } } exprKindCase_ = 6; return this; } /** *
     * A call expression, including calls to predefined functions and operators.
     * 
* * .google.api.expr.v1alpha1.Expr.Call call_expr = 6; */ public Builder clearCallExpr() { if (callExprBuilder_ == null) { if (exprKindCase_ == 6) { exprKindCase_ = 0; exprKind_ = null; onChanged(); } } else { if (exprKindCase_ == 6) { exprKindCase_ = 0; exprKind_ = null; } callExprBuilder_.clear(); } return this; } /** *
     * A call expression, including calls to predefined functions and operators.
     * 
* * .google.api.expr.v1alpha1.Expr.Call call_expr = 6; */ public com.google.api.expr.v1alpha1.Expr.Call.Builder getCallExprBuilder() { return getCallExprFieldBuilder().getBuilder(); } /** *
     * A call expression, including calls to predefined functions and operators.
     * 
* * .google.api.expr.v1alpha1.Expr.Call call_expr = 6; */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CallOrBuilder getCallExprOrBuilder() { if ((exprKindCase_ == 6) && (callExprBuilder_ != null)) { return callExprBuilder_.getMessageOrBuilder(); } else { if (exprKindCase_ == 6) { return (com.google.api.expr.v1alpha1.Expr.Call) exprKind_; } return com.google.api.expr.v1alpha1.Expr.Call.getDefaultInstance(); } } /** *
     * A call expression, including calls to predefined functions and operators.
     * 
* * .google.api.expr.v1alpha1.Expr.Call call_expr = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.Call, com.google.api.expr.v1alpha1.Expr.Call.Builder, com.google.api.expr.v1alpha1.Expr.CallOrBuilder> getCallExprFieldBuilder() { if (callExprBuilder_ == null) { if (!(exprKindCase_ == 6)) { exprKind_ = com.google.api.expr.v1alpha1.Expr.Call.getDefaultInstance(); } callExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.Call, com.google.api.expr.v1alpha1.Expr.Call.Builder, com.google.api.expr.v1alpha1.Expr.CallOrBuilder>( (com.google.api.expr.v1alpha1.Expr.Call) exprKind_, getParentForChildren(), isClean()); exprKind_ = null; } exprKindCase_ = 6; onChanged();; return callExprBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.CreateList, com.google.api.expr.v1alpha1.Expr.CreateList.Builder, com.google.api.expr.v1alpha1.Expr.CreateListOrBuilder> listExprBuilder_; /** *
     * A list creation expression.
     * 
* * .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7; * @return Whether the listExpr field is set. */ @java.lang.Override public boolean hasListExpr() { return exprKindCase_ == 7; } /** *
     * A list creation expression.
     * 
* * .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7; * @return The listExpr. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateList getListExpr() { if (listExprBuilder_ == null) { if (exprKindCase_ == 7) { return (com.google.api.expr.v1alpha1.Expr.CreateList) exprKind_; } return com.google.api.expr.v1alpha1.Expr.CreateList.getDefaultInstance(); } else { if (exprKindCase_ == 7) { return listExprBuilder_.getMessage(); } return com.google.api.expr.v1alpha1.Expr.CreateList.getDefaultInstance(); } } /** *
     * A list creation expression.
     * 
* * .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7; */ public Builder setListExpr(com.google.api.expr.v1alpha1.Expr.CreateList value) { if (listExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } exprKind_ = value; onChanged(); } else { listExprBuilder_.setMessage(value); } exprKindCase_ = 7; return this; } /** *
     * A list creation expression.
     * 
* * .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7; */ public Builder setListExpr( com.google.api.expr.v1alpha1.Expr.CreateList.Builder builderForValue) { if (listExprBuilder_ == null) { exprKind_ = builderForValue.build(); onChanged(); } else { listExprBuilder_.setMessage(builderForValue.build()); } exprKindCase_ = 7; return this; } /** *
     * A list creation expression.
     * 
* * .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7; */ public Builder mergeListExpr(com.google.api.expr.v1alpha1.Expr.CreateList value) { if (listExprBuilder_ == null) { if (exprKindCase_ == 7 && exprKind_ != com.google.api.expr.v1alpha1.Expr.CreateList.getDefaultInstance()) { exprKind_ = com.google.api.expr.v1alpha1.Expr.CreateList.newBuilder((com.google.api.expr.v1alpha1.Expr.CreateList) exprKind_) .mergeFrom(value).buildPartial(); } else { exprKind_ = value; } onChanged(); } else { if (exprKindCase_ == 7) { listExprBuilder_.mergeFrom(value); } else { listExprBuilder_.setMessage(value); } } exprKindCase_ = 7; return this; } /** *
     * A list creation expression.
     * 
* * .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7; */ public Builder clearListExpr() { if (listExprBuilder_ == null) { if (exprKindCase_ == 7) { exprKindCase_ = 0; exprKind_ = null; onChanged(); } } else { if (exprKindCase_ == 7) { exprKindCase_ = 0; exprKind_ = null; } listExprBuilder_.clear(); } return this; } /** *
     * A list creation expression.
     * 
* * .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7; */ public com.google.api.expr.v1alpha1.Expr.CreateList.Builder getListExprBuilder() { return getListExprFieldBuilder().getBuilder(); } /** *
     * A list creation expression.
     * 
* * .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7; */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateListOrBuilder getListExprOrBuilder() { if ((exprKindCase_ == 7) && (listExprBuilder_ != null)) { return listExprBuilder_.getMessageOrBuilder(); } else { if (exprKindCase_ == 7) { return (com.google.api.expr.v1alpha1.Expr.CreateList) exprKind_; } return com.google.api.expr.v1alpha1.Expr.CreateList.getDefaultInstance(); } } /** *
     * A list creation expression.
     * 
* * .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.CreateList, com.google.api.expr.v1alpha1.Expr.CreateList.Builder, com.google.api.expr.v1alpha1.Expr.CreateListOrBuilder> getListExprFieldBuilder() { if (listExprBuilder_ == null) { if (!(exprKindCase_ == 7)) { exprKind_ = com.google.api.expr.v1alpha1.Expr.CreateList.getDefaultInstance(); } listExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.CreateList, com.google.api.expr.v1alpha1.Expr.CreateList.Builder, com.google.api.expr.v1alpha1.Expr.CreateListOrBuilder>( (com.google.api.expr.v1alpha1.Expr.CreateList) exprKind_, getParentForChildren(), isClean()); exprKind_ = null; } exprKindCase_ = 7; onChanged();; return listExprBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.CreateStruct, com.google.api.expr.v1alpha1.Expr.CreateStruct.Builder, com.google.api.expr.v1alpha1.Expr.CreateStructOrBuilder> structExprBuilder_; /** *
     * A map or message creation expression.
     * 
* * .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8; * @return Whether the structExpr field is set. */ @java.lang.Override public boolean hasStructExpr() { return exprKindCase_ == 8; } /** *
     * A map or message creation expression.
     * 
* * .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8; * @return The structExpr. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateStruct getStructExpr() { if (structExprBuilder_ == null) { if (exprKindCase_ == 8) { return (com.google.api.expr.v1alpha1.Expr.CreateStruct) exprKind_; } return com.google.api.expr.v1alpha1.Expr.CreateStruct.getDefaultInstance(); } else { if (exprKindCase_ == 8) { return structExprBuilder_.getMessage(); } return com.google.api.expr.v1alpha1.Expr.CreateStruct.getDefaultInstance(); } } /** *
     * A map or message creation expression.
     * 
* * .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8; */ public Builder setStructExpr(com.google.api.expr.v1alpha1.Expr.CreateStruct value) { if (structExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } exprKind_ = value; onChanged(); } else { structExprBuilder_.setMessage(value); } exprKindCase_ = 8; return this; } /** *
     * A map or message creation expression.
     * 
* * .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8; */ public Builder setStructExpr( com.google.api.expr.v1alpha1.Expr.CreateStruct.Builder builderForValue) { if (structExprBuilder_ == null) { exprKind_ = builderForValue.build(); onChanged(); } else { structExprBuilder_.setMessage(builderForValue.build()); } exprKindCase_ = 8; return this; } /** *
     * A map or message creation expression.
     * 
* * .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8; */ public Builder mergeStructExpr(com.google.api.expr.v1alpha1.Expr.CreateStruct value) { if (structExprBuilder_ == null) { if (exprKindCase_ == 8 && exprKind_ != com.google.api.expr.v1alpha1.Expr.CreateStruct.getDefaultInstance()) { exprKind_ = com.google.api.expr.v1alpha1.Expr.CreateStruct.newBuilder((com.google.api.expr.v1alpha1.Expr.CreateStruct) exprKind_) .mergeFrom(value).buildPartial(); } else { exprKind_ = value; } onChanged(); } else { if (exprKindCase_ == 8) { structExprBuilder_.mergeFrom(value); } else { structExprBuilder_.setMessage(value); } } exprKindCase_ = 8; return this; } /** *
     * A map or message creation expression.
     * 
* * .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8; */ public Builder clearStructExpr() { if (structExprBuilder_ == null) { if (exprKindCase_ == 8) { exprKindCase_ = 0; exprKind_ = null; onChanged(); } } else { if (exprKindCase_ == 8) { exprKindCase_ = 0; exprKind_ = null; } structExprBuilder_.clear(); } return this; } /** *
     * A map or message creation expression.
     * 
* * .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8; */ public com.google.api.expr.v1alpha1.Expr.CreateStruct.Builder getStructExprBuilder() { return getStructExprFieldBuilder().getBuilder(); } /** *
     * A map or message creation expression.
     * 
* * .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8; */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.CreateStructOrBuilder getStructExprOrBuilder() { if ((exprKindCase_ == 8) && (structExprBuilder_ != null)) { return structExprBuilder_.getMessageOrBuilder(); } else { if (exprKindCase_ == 8) { return (com.google.api.expr.v1alpha1.Expr.CreateStruct) exprKind_; } return com.google.api.expr.v1alpha1.Expr.CreateStruct.getDefaultInstance(); } } /** *
     * A map or message creation expression.
     * 
* * .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.CreateStruct, com.google.api.expr.v1alpha1.Expr.CreateStruct.Builder, com.google.api.expr.v1alpha1.Expr.CreateStructOrBuilder> getStructExprFieldBuilder() { if (structExprBuilder_ == null) { if (!(exprKindCase_ == 8)) { exprKind_ = com.google.api.expr.v1alpha1.Expr.CreateStruct.getDefaultInstance(); } structExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.CreateStruct, com.google.api.expr.v1alpha1.Expr.CreateStruct.Builder, com.google.api.expr.v1alpha1.Expr.CreateStructOrBuilder>( (com.google.api.expr.v1alpha1.Expr.CreateStruct) exprKind_, getParentForChildren(), isClean()); exprKind_ = null; } exprKindCase_ = 8; onChanged();; return structExprBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.Comprehension, com.google.api.expr.v1alpha1.Expr.Comprehension.Builder, com.google.api.expr.v1alpha1.Expr.ComprehensionOrBuilder> comprehensionExprBuilder_; /** *
     * A comprehension expression.
     * 
* * .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9; * @return Whether the comprehensionExpr field is set. */ @java.lang.Override public boolean hasComprehensionExpr() { return exprKindCase_ == 9; } /** *
     * A comprehension expression.
     * 
* * .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9; * @return The comprehensionExpr. */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.Comprehension getComprehensionExpr() { if (comprehensionExprBuilder_ == null) { if (exprKindCase_ == 9) { return (com.google.api.expr.v1alpha1.Expr.Comprehension) exprKind_; } return com.google.api.expr.v1alpha1.Expr.Comprehension.getDefaultInstance(); } else { if (exprKindCase_ == 9) { return comprehensionExprBuilder_.getMessage(); } return com.google.api.expr.v1alpha1.Expr.Comprehension.getDefaultInstance(); } } /** *
     * A comprehension expression.
     * 
* * .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9; */ public Builder setComprehensionExpr(com.google.api.expr.v1alpha1.Expr.Comprehension value) { if (comprehensionExprBuilder_ == null) { if (value == null) { throw new NullPointerException(); } exprKind_ = value; onChanged(); } else { comprehensionExprBuilder_.setMessage(value); } exprKindCase_ = 9; return this; } /** *
     * A comprehension expression.
     * 
* * .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9; */ public Builder setComprehensionExpr( com.google.api.expr.v1alpha1.Expr.Comprehension.Builder builderForValue) { if (comprehensionExprBuilder_ == null) { exprKind_ = builderForValue.build(); onChanged(); } else { comprehensionExprBuilder_.setMessage(builderForValue.build()); } exprKindCase_ = 9; return this; } /** *
     * A comprehension expression.
     * 
* * .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9; */ public Builder mergeComprehensionExpr(com.google.api.expr.v1alpha1.Expr.Comprehension value) { if (comprehensionExprBuilder_ == null) { if (exprKindCase_ == 9 && exprKind_ != com.google.api.expr.v1alpha1.Expr.Comprehension.getDefaultInstance()) { exprKind_ = com.google.api.expr.v1alpha1.Expr.Comprehension.newBuilder((com.google.api.expr.v1alpha1.Expr.Comprehension) exprKind_) .mergeFrom(value).buildPartial(); } else { exprKind_ = value; } onChanged(); } else { if (exprKindCase_ == 9) { comprehensionExprBuilder_.mergeFrom(value); } else { comprehensionExprBuilder_.setMessage(value); } } exprKindCase_ = 9; return this; } /** *
     * A comprehension expression.
     * 
* * .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9; */ public Builder clearComprehensionExpr() { if (comprehensionExprBuilder_ == null) { if (exprKindCase_ == 9) { exprKindCase_ = 0; exprKind_ = null; onChanged(); } } else { if (exprKindCase_ == 9) { exprKindCase_ = 0; exprKind_ = null; } comprehensionExprBuilder_.clear(); } return this; } /** *
     * A comprehension expression.
     * 
* * .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9; */ public com.google.api.expr.v1alpha1.Expr.Comprehension.Builder getComprehensionExprBuilder() { return getComprehensionExprFieldBuilder().getBuilder(); } /** *
     * A comprehension expression.
     * 
* * .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9; */ @java.lang.Override public com.google.api.expr.v1alpha1.Expr.ComprehensionOrBuilder getComprehensionExprOrBuilder() { if ((exprKindCase_ == 9) && (comprehensionExprBuilder_ != null)) { return comprehensionExprBuilder_.getMessageOrBuilder(); } else { if (exprKindCase_ == 9) { return (com.google.api.expr.v1alpha1.Expr.Comprehension) exprKind_; } return com.google.api.expr.v1alpha1.Expr.Comprehension.getDefaultInstance(); } } /** *
     * A comprehension expression.
     * 
* * .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.Comprehension, com.google.api.expr.v1alpha1.Expr.Comprehension.Builder, com.google.api.expr.v1alpha1.Expr.ComprehensionOrBuilder> getComprehensionExprFieldBuilder() { if (comprehensionExprBuilder_ == null) { if (!(exprKindCase_ == 9)) { exprKind_ = com.google.api.expr.v1alpha1.Expr.Comprehension.getDefaultInstance(); } comprehensionExprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.api.expr.v1alpha1.Expr.Comprehension, com.google.api.expr.v1alpha1.Expr.Comprehension.Builder, com.google.api.expr.v1alpha1.Expr.ComprehensionOrBuilder>( (com.google.api.expr.v1alpha1.Expr.Comprehension) exprKind_, getParentForChildren(), isClean()); exprKind_ = null; } exprKindCase_ = 9; onChanged();; return comprehensionExprBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.api.expr.v1alpha1.Expr) } // @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Expr) private static final com.google.api.expr.v1alpha1.Expr DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.api.expr.v1alpha1.Expr(); } public static com.google.api.expr.v1alpha1.Expr getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Expr parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Expr(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.api.expr.v1alpha1.Expr getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy