com.google.api.expr.v1alpha1.Explain Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: google/api/expr/v1alpha1/explain.proto
// Protobuf Java Version: 4.28.1
package com.google.api.expr.v1alpha1;
/**
*
* Values of intermediate expressions produced when evaluating expression.
* Deprecated, use `EvalState` instead.
*
*
* Protobuf type {@code google.api.expr.v1alpha1.Explain}
*/
@java.lang.Deprecated public final class Explain extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:google.api.expr.v1alpha1.Explain)
ExplainOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 1,
/* suffix= */ "",
Explain.class.getName());
}
// Use Explain.newBuilder() to construct.
private Explain(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Explain() {
values_ = java.util.Collections.emptyList();
exprSteps_ = java.util.Collections.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.api.expr.v1alpha1.ExplainProto.internal_static_google_api_expr_v1alpha1_Explain_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.api.expr.v1alpha1.ExplainProto.internal_static_google_api_expr_v1alpha1_Explain_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.api.expr.v1alpha1.Explain.class, com.google.api.expr.v1alpha1.Explain.Builder.class);
}
public interface ExprStepOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.api.expr.v1alpha1.Explain.ExprStep)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of corresponding Expr node.
*
*
* int64 id = 1;
* @return The id.
*/
long getId();
/**
*
* Index of the value in the values list.
*
*
* int32 value_index = 2;
* @return The valueIndex.
*/
int getValueIndex();
}
/**
*
* ID and value index of one step.
*
*
* Protobuf type {@code google.api.expr.v1alpha1.Explain.ExprStep}
*/
public static final class ExprStep extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:google.api.expr.v1alpha1.Explain.ExprStep)
ExprStepOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 1,
/* suffix= */ "",
ExprStep.class.getName());
}
// Use ExprStep.newBuilder() to construct.
private ExprStep(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ExprStep() {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.api.expr.v1alpha1.ExplainProto.internal_static_google_api_expr_v1alpha1_Explain_ExprStep_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.api.expr.v1alpha1.ExplainProto.internal_static_google_api_expr_v1alpha1_Explain_ExprStep_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.api.expr.v1alpha1.Explain.ExprStep.class, com.google.api.expr.v1alpha1.Explain.ExprStep.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private long id_ = 0L;
/**
*
* ID of corresponding Expr node.
*
*
* int64 id = 1;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int VALUE_INDEX_FIELD_NUMBER = 2;
private int valueIndex_ = 0;
/**
*
* Index of the value in the values list.
*
*
* int32 value_index = 2;
* @return The valueIndex.
*/
@java.lang.Override
public int getValueIndex() {
return valueIndex_;
}
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 (valueIndex_ != 0) {
output.writeInt32(2, valueIndex_);
}
getUnknownFields().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 (valueIndex_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, valueIndex_);
}
size += getUnknownFields().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.Explain.ExprStep)) {
return super.equals(obj);
}
com.google.api.expr.v1alpha1.Explain.ExprStep other = (com.google.api.expr.v1alpha1.Explain.ExprStep) obj;
if (getId()
!= other.getId()) return false;
if (getValueIndex()
!= other.getValueIndex()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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());
hash = (37 * hash) + VALUE_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getValueIndex();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.api.expr.v1alpha1.Explain.ExprStep parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.api.expr.v1alpha1.Explain.ExprStep 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.Explain.ExprStep parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.api.expr.v1alpha1.Explain.ExprStep 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.Explain.ExprStep parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.api.expr.v1alpha1.Explain.ExprStep 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.Explain.ExprStep parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static com.google.api.expr.v1alpha1.Explain.ExprStep parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.api.expr.v1alpha1.Explain.ExprStep parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.api.expr.v1alpha1.Explain.ExprStep parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.api.expr.v1alpha1.Explain.ExprStep parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static com.google.api.expr.v1alpha1.Explain.ExprStep parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.Explain.ExprStep 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ID and value index of one step.
*
*
* Protobuf type {@code google.api.expr.v1alpha1.Explain.ExprStep}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:google.api.expr.v1alpha1.Explain.ExprStep)
com.google.api.expr.v1alpha1.Explain.ExprStepOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.api.expr.v1alpha1.ExplainProto.internal_static_google_api_expr_v1alpha1_Explain_ExprStep_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.api.expr.v1alpha1.ExplainProto.internal_static_google_api_expr_v1alpha1_Explain_ExprStep_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.api.expr.v1alpha1.Explain.ExprStep.class, com.google.api.expr.v1alpha1.Explain.ExprStep.Builder.class);
}
// Construct using com.google.api.expr.v1alpha1.Explain.ExprStep.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = 0L;
valueIndex_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.api.expr.v1alpha1.ExplainProto.internal_static_google_api_expr_v1alpha1_Explain_ExprStep_descriptor;
}
@java.lang.Override
public com.google.api.expr.v1alpha1.Explain.ExprStep getDefaultInstanceForType() {
return com.google.api.expr.v1alpha1.Explain.ExprStep.getDefaultInstance();
}
@java.lang.Override
public com.google.api.expr.v1alpha1.Explain.ExprStep build() {
com.google.api.expr.v1alpha1.Explain.ExprStep result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.api.expr.v1alpha1.Explain.ExprStep buildPartial() {
com.google.api.expr.v1alpha1.Explain.ExprStep result = new com.google.api.expr.v1alpha1.Explain.ExprStep(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.api.expr.v1alpha1.Explain.ExprStep result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.valueIndex_ = valueIndex_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.api.expr.v1alpha1.Explain.ExprStep) {
return mergeFrom((com.google.api.expr.v1alpha1.Explain.ExprStep)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.api.expr.v1alpha1.Explain.ExprStep other) {
if (other == com.google.api.expr.v1alpha1.Explain.ExprStep.getDefaultInstance()) return this;
if (other.getId() != 0L) {
setId(other.getId());
}
if (other.getValueIndex() != 0) {
setValueIndex(other.getValueIndex());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
id_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
valueIndex_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long id_ ;
/**
*
* ID of corresponding Expr node.
*
*
* int64 id = 1;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
*
* ID of corresponding Expr node.
*
*
* int64 id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* ID of corresponding Expr node.
*
*
* int64 id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
onChanged();
return this;
}
private int valueIndex_ ;
/**
*
* Index of the value in the values list.
*
*
* int32 value_index = 2;
* @return The valueIndex.
*/
@java.lang.Override
public int getValueIndex() {
return valueIndex_;
}
/**
*
* Index of the value in the values list.
*
*
* int32 value_index = 2;
* @param value The valueIndex to set.
* @return This builder for chaining.
*/
public Builder setValueIndex(int value) {
valueIndex_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Index of the value in the values list.
*
*
* int32 value_index = 2;
* @return This builder for chaining.
*/
public Builder clearValueIndex() {
bitField0_ = (bitField0_ & ~0x00000002);
valueIndex_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:google.api.expr.v1alpha1.Explain.ExprStep)
}
// @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Explain.ExprStep)
private static final com.google.api.expr.v1alpha1.Explain.ExprStep DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.api.expr.v1alpha1.Explain.ExprStep();
}
public static com.google.api.expr.v1alpha1.Explain.ExprStep getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExprStep parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.Explain.ExprStep getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int VALUES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List values_;
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
@java.lang.Override
public java.util.List getValuesList() {
return values_;
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
@java.lang.Override
public java.util.List extends com.google.api.expr.v1alpha1.ValueOrBuilder>
getValuesOrBuilderList() {
return values_;
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
@java.lang.Override
public int getValuesCount() {
return values_.size();
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
@java.lang.Override
public com.google.api.expr.v1alpha1.Value getValues(int index) {
return values_.get(index);
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
@java.lang.Override
public com.google.api.expr.v1alpha1.ValueOrBuilder getValuesOrBuilder(
int index) {
return values_.get(index);
}
public static final int EXPR_STEPS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List exprSteps_;
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
@java.lang.Override
public java.util.List getExprStepsList() {
return exprSteps_;
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
@java.lang.Override
public java.util.List extends com.google.api.expr.v1alpha1.Explain.ExprStepOrBuilder>
getExprStepsOrBuilderList() {
return exprSteps_;
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
@java.lang.Override
public int getExprStepsCount() {
return exprSteps_.size();
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
@java.lang.Override
public com.google.api.expr.v1alpha1.Explain.ExprStep getExprSteps(int index) {
return exprSteps_.get(index);
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
@java.lang.Override
public com.google.api.expr.v1alpha1.Explain.ExprStepOrBuilder getExprStepsOrBuilder(
int index) {
return exprSteps_.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 {
for (int i = 0; i < values_.size(); i++) {
output.writeMessage(1, values_.get(i));
}
for (int i = 0; i < exprSteps_.size(); i++) {
output.writeMessage(2, exprSteps_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < values_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, values_.get(i));
}
for (int i = 0; i < exprSteps_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, exprSteps_.get(i));
}
size += getUnknownFields().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.Explain)) {
return super.equals(obj);
}
com.google.api.expr.v1alpha1.Explain other = (com.google.api.expr.v1alpha1.Explain) obj;
if (!getValuesList()
.equals(other.getValuesList())) return false;
if (!getExprStepsList()
.equals(other.getExprStepsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
if (getExprStepsCount() > 0) {
hash = (37 * hash) + EXPR_STEPS_FIELD_NUMBER;
hash = (53 * hash) + getExprStepsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.api.expr.v1alpha1.Explain parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.api.expr.v1alpha1.Explain 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.Explain parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.api.expr.v1alpha1.Explain 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.Explain parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.api.expr.v1alpha1.Explain 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.Explain parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static com.google.api.expr.v1alpha1.Explain parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.api.expr.v1alpha1.Explain parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.api.expr.v1alpha1.Explain parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.api.expr.v1alpha1.Explain parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static com.google.api.expr.v1alpha1.Explain parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.Explain 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Values of intermediate expressions produced when evaluating expression.
* Deprecated, use `EvalState` instead.
*
*
* Protobuf type {@code google.api.expr.v1alpha1.Explain}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:google.api.expr.v1alpha1.Explain)
com.google.api.expr.v1alpha1.ExplainOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.api.expr.v1alpha1.ExplainProto.internal_static_google_api_expr_v1alpha1_Explain_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.api.expr.v1alpha1.ExplainProto.internal_static_google_api_expr_v1alpha1_Explain_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.api.expr.v1alpha1.Explain.class, com.google.api.expr.v1alpha1.Explain.Builder.class);
}
// Construct using com.google.api.expr.v1alpha1.Explain.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
} else {
values_ = null;
valuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (exprStepsBuilder_ == null) {
exprSteps_ = java.util.Collections.emptyList();
} else {
exprSteps_ = null;
exprStepsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.api.expr.v1alpha1.ExplainProto.internal_static_google_api_expr_v1alpha1_Explain_descriptor;
}
@java.lang.Override
public com.google.api.expr.v1alpha1.Explain getDefaultInstanceForType() {
return com.google.api.expr.v1alpha1.Explain.getDefaultInstance();
}
@java.lang.Override
public com.google.api.expr.v1alpha1.Explain build() {
com.google.api.expr.v1alpha1.Explain result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.api.expr.v1alpha1.Explain buildPartial() {
com.google.api.expr.v1alpha1.Explain result = new com.google.api.expr.v1alpha1.Explain(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.api.expr.v1alpha1.Explain result) {
if (valuesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
values_ = java.util.Collections.unmodifiableList(values_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.values_ = values_;
} else {
result.values_ = valuesBuilder_.build();
}
if (exprStepsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
exprSteps_ = java.util.Collections.unmodifiableList(exprSteps_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.exprSteps_ = exprSteps_;
} else {
result.exprSteps_ = exprStepsBuilder_.build();
}
}
private void buildPartial0(com.google.api.expr.v1alpha1.Explain result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.api.expr.v1alpha1.Explain) {
return mergeFrom((com.google.api.expr.v1alpha1.Explain)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.api.expr.v1alpha1.Explain other) {
if (other == com.google.api.expr.v1alpha1.Explain.getDefaultInstance()) return this;
if (valuesBuilder_ == null) {
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
} else {
if (!other.values_.isEmpty()) {
if (valuesBuilder_.isEmpty()) {
valuesBuilder_.dispose();
valuesBuilder_ = null;
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
valuesBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getValuesFieldBuilder() : null;
} else {
valuesBuilder_.addAllMessages(other.values_);
}
}
}
if (exprStepsBuilder_ == null) {
if (!other.exprSteps_.isEmpty()) {
if (exprSteps_.isEmpty()) {
exprSteps_ = other.exprSteps_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureExprStepsIsMutable();
exprSteps_.addAll(other.exprSteps_);
}
onChanged();
}
} else {
if (!other.exprSteps_.isEmpty()) {
if (exprStepsBuilder_.isEmpty()) {
exprStepsBuilder_.dispose();
exprStepsBuilder_ = null;
exprSteps_ = other.exprSteps_;
bitField0_ = (bitField0_ & ~0x00000002);
exprStepsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getExprStepsFieldBuilder() : null;
} else {
exprStepsBuilder_.addAllMessages(other.exprSteps_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.api.expr.v1alpha1.Value m =
input.readMessage(
com.google.api.expr.v1alpha1.Value.parser(),
extensionRegistry);
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(m);
} else {
valuesBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
com.google.api.expr.v1alpha1.Explain.ExprStep m =
input.readMessage(
com.google.api.expr.v1alpha1.Explain.ExprStep.parser(),
extensionRegistry);
if (exprStepsBuilder_ == null) {
ensureExprStepsIsMutable();
exprSteps_.add(m);
} else {
exprStepsBuilder_.addMessage(m);
}
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List values_ =
java.util.Collections.emptyList();
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
values_ = new java.util.ArrayList(values_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.google.api.expr.v1alpha1.Value, com.google.api.expr.v1alpha1.Value.Builder, com.google.api.expr.v1alpha1.ValueOrBuilder> valuesBuilder_;
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
public java.util.List getValuesList() {
if (valuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(values_);
} else {
return valuesBuilder_.getMessageList();
}
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
public int getValuesCount() {
if (valuesBuilder_ == null) {
return values_.size();
} else {
return valuesBuilder_.getCount();
}
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
public com.google.api.expr.v1alpha1.Value getValues(int index) {
if (valuesBuilder_ == null) {
return values_.get(index);
} else {
return valuesBuilder_.getMessage(index);
}
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
public Builder setValues(
int index, com.google.api.expr.v1alpha1.Value value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.set(index, value);
onChanged();
} else {
valuesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
public Builder setValues(
int index, com.google.api.expr.v1alpha1.Value.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.set(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
public Builder addValues(com.google.api.expr.v1alpha1.Value value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(value);
onChanged();
} else {
valuesBuilder_.addMessage(value);
}
return this;
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
public Builder addValues(
int index, com.google.api.expr.v1alpha1.Value value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(index, value);
onChanged();
} else {
valuesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
public Builder addValues(
com.google.api.expr.v1alpha1.Value.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
public Builder addValues(
int index, com.google.api.expr.v1alpha1.Value.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
public Builder addAllValues(
java.lang.Iterable extends com.google.api.expr.v1alpha1.Value> values) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
} else {
valuesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
public Builder clearValues() {
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
valuesBuilder_.clear();
}
return this;
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
public Builder removeValues(int index) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.remove(index);
onChanged();
} else {
valuesBuilder_.remove(index);
}
return this;
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
public com.google.api.expr.v1alpha1.Value.Builder getValuesBuilder(
int index) {
return getValuesFieldBuilder().getBuilder(index);
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
public com.google.api.expr.v1alpha1.ValueOrBuilder getValuesOrBuilder(
int index) {
if (valuesBuilder_ == null) {
return values_.get(index); } else {
return valuesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
public java.util.List extends com.google.api.expr.v1alpha1.ValueOrBuilder>
getValuesOrBuilderList() {
if (valuesBuilder_ != null) {
return valuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(values_);
}
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
public com.google.api.expr.v1alpha1.Value.Builder addValuesBuilder() {
return getValuesFieldBuilder().addBuilder(
com.google.api.expr.v1alpha1.Value.getDefaultInstance());
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
public com.google.api.expr.v1alpha1.Value.Builder addValuesBuilder(
int index) {
return getValuesFieldBuilder().addBuilder(
index, com.google.api.expr.v1alpha1.Value.getDefaultInstance());
}
/**
*
* All of the observed values.
*
* The field value_index is an index in the values list.
* Separating values from steps is needed to remove redundant values.
*
*
* repeated .google.api.expr.v1alpha1.Value values = 1;
*/
public java.util.List
getValuesBuilderList() {
return getValuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.google.api.expr.v1alpha1.Value, com.google.api.expr.v1alpha1.Value.Builder, com.google.api.expr.v1alpha1.ValueOrBuilder>
getValuesFieldBuilder() {
if (valuesBuilder_ == null) {
valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.google.api.expr.v1alpha1.Value, com.google.api.expr.v1alpha1.Value.Builder, com.google.api.expr.v1alpha1.ValueOrBuilder>(
values_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
values_ = null;
}
return valuesBuilder_;
}
private java.util.List exprSteps_ =
java.util.Collections.emptyList();
private void ensureExprStepsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
exprSteps_ = new java.util.ArrayList(exprSteps_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.google.api.expr.v1alpha1.Explain.ExprStep, com.google.api.expr.v1alpha1.Explain.ExprStep.Builder, com.google.api.expr.v1alpha1.Explain.ExprStepOrBuilder> exprStepsBuilder_;
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
public java.util.List getExprStepsList() {
if (exprStepsBuilder_ == null) {
return java.util.Collections.unmodifiableList(exprSteps_);
} else {
return exprStepsBuilder_.getMessageList();
}
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
public int getExprStepsCount() {
if (exprStepsBuilder_ == null) {
return exprSteps_.size();
} else {
return exprStepsBuilder_.getCount();
}
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
public com.google.api.expr.v1alpha1.Explain.ExprStep getExprSteps(int index) {
if (exprStepsBuilder_ == null) {
return exprSteps_.get(index);
} else {
return exprStepsBuilder_.getMessage(index);
}
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
public Builder setExprSteps(
int index, com.google.api.expr.v1alpha1.Explain.ExprStep value) {
if (exprStepsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExprStepsIsMutable();
exprSteps_.set(index, value);
onChanged();
} else {
exprStepsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
public Builder setExprSteps(
int index, com.google.api.expr.v1alpha1.Explain.ExprStep.Builder builderForValue) {
if (exprStepsBuilder_ == null) {
ensureExprStepsIsMutable();
exprSteps_.set(index, builderForValue.build());
onChanged();
} else {
exprStepsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
public Builder addExprSteps(com.google.api.expr.v1alpha1.Explain.ExprStep value) {
if (exprStepsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExprStepsIsMutable();
exprSteps_.add(value);
onChanged();
} else {
exprStepsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
public Builder addExprSteps(
int index, com.google.api.expr.v1alpha1.Explain.ExprStep value) {
if (exprStepsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExprStepsIsMutable();
exprSteps_.add(index, value);
onChanged();
} else {
exprStepsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
public Builder addExprSteps(
com.google.api.expr.v1alpha1.Explain.ExprStep.Builder builderForValue) {
if (exprStepsBuilder_ == null) {
ensureExprStepsIsMutable();
exprSteps_.add(builderForValue.build());
onChanged();
} else {
exprStepsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
public Builder addExprSteps(
int index, com.google.api.expr.v1alpha1.Explain.ExprStep.Builder builderForValue) {
if (exprStepsBuilder_ == null) {
ensureExprStepsIsMutable();
exprSteps_.add(index, builderForValue.build());
onChanged();
} else {
exprStepsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
public Builder addAllExprSteps(
java.lang.Iterable extends com.google.api.expr.v1alpha1.Explain.ExprStep> values) {
if (exprStepsBuilder_ == null) {
ensureExprStepsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, exprSteps_);
onChanged();
} else {
exprStepsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
public Builder clearExprSteps() {
if (exprStepsBuilder_ == null) {
exprSteps_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
exprStepsBuilder_.clear();
}
return this;
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
public Builder removeExprSteps(int index) {
if (exprStepsBuilder_ == null) {
ensureExprStepsIsMutable();
exprSteps_.remove(index);
onChanged();
} else {
exprStepsBuilder_.remove(index);
}
return this;
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
public com.google.api.expr.v1alpha1.Explain.ExprStep.Builder getExprStepsBuilder(
int index) {
return getExprStepsFieldBuilder().getBuilder(index);
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
public com.google.api.expr.v1alpha1.Explain.ExprStepOrBuilder getExprStepsOrBuilder(
int index) {
if (exprStepsBuilder_ == null) {
return exprSteps_.get(index); } else {
return exprStepsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
public java.util.List extends com.google.api.expr.v1alpha1.Explain.ExprStepOrBuilder>
getExprStepsOrBuilderList() {
if (exprStepsBuilder_ != null) {
return exprStepsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(exprSteps_);
}
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
public com.google.api.expr.v1alpha1.Explain.ExprStep.Builder addExprStepsBuilder() {
return getExprStepsFieldBuilder().addBuilder(
com.google.api.expr.v1alpha1.Explain.ExprStep.getDefaultInstance());
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
public com.google.api.expr.v1alpha1.Explain.ExprStep.Builder addExprStepsBuilder(
int index) {
return getExprStepsFieldBuilder().addBuilder(
index, com.google.api.expr.v1alpha1.Explain.ExprStep.getDefaultInstance());
}
/**
*
* List of steps.
*
* Repeated evaluations of the same expression generate new ExprStep
* instances. The order of such ExprStep instances matches the order of
* elements returned by Comprehension.iter_range.
*
*
* repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2;
*/
public java.util.List
getExprStepsBuilderList() {
return getExprStepsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.google.api.expr.v1alpha1.Explain.ExprStep, com.google.api.expr.v1alpha1.Explain.ExprStep.Builder, com.google.api.expr.v1alpha1.Explain.ExprStepOrBuilder>
getExprStepsFieldBuilder() {
if (exprStepsBuilder_ == null) {
exprStepsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.google.api.expr.v1alpha1.Explain.ExprStep, com.google.api.expr.v1alpha1.Explain.ExprStep.Builder, com.google.api.expr.v1alpha1.Explain.ExprStepOrBuilder>(
exprSteps_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
exprSteps_ = null;
}
return exprStepsBuilder_;
}
// @@protoc_insertion_point(builder_scope:google.api.expr.v1alpha1.Explain)
}
// @@protoc_insertion_point(class_scope:google.api.expr.v1alpha1.Explain)
private static final com.google.api.expr.v1alpha1.Explain DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.api.expr.v1alpha1.Explain();
}
public static com.google.api.expr.v1alpha1.Explain getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Explain parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.Explain getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}