
dev.cel.expr.conformance.ParseRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cel/expr/conformance/conformance_service.proto
// Protobuf Java Version: 3.25.1
package dev.cel.expr.conformance;
/**
*
* Request message for the Parse method.
*
*
* Protobuf type {@code cel.expr.conformance.ParseRequest}
*/
public final class ParseRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cel.expr.conformance.ParseRequest)
ParseRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ParseRequest.newBuilder() to construct.
private ParseRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ParseRequest() {
celSource_ = "";
syntaxVersion_ = "";
sourceLocation_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ParseRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.cel.expr.conformance.ConformanceServiceProto.internal_static_cel_expr_conformance_ParseRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.cel.expr.conformance.ConformanceServiceProto.internal_static_cel_expr_conformance_ParseRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.cel.expr.conformance.ParseRequest.class, dev.cel.expr.conformance.ParseRequest.Builder.class);
}
public static final int CEL_SOURCE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object celSource_ = "";
/**
*
* Required. Source text in CEL syntax.
*
*
* string cel_source = 1;
* @return The celSource.
*/
@java.lang.Override
public java.lang.String getCelSource() {
java.lang.Object ref = celSource_;
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();
celSource_ = s;
return s;
}
}
/**
*
* Required. Source text in CEL syntax.
*
*
* string cel_source = 1;
* @return The bytes for celSource.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCelSourceBytes() {
java.lang.Object ref = celSource_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
celSource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SYNTAX_VERSION_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object syntaxVersion_ = "";
/**
*
* Tag for version of CEL syntax, for future use.
*
*
* string syntax_version = 2;
* @return The syntaxVersion.
*/
@java.lang.Override
public java.lang.String getSyntaxVersion() {
java.lang.Object ref = syntaxVersion_;
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();
syntaxVersion_ = s;
return s;
}
}
/**
*
* Tag for version of CEL syntax, for future use.
*
*
* string syntax_version = 2;
* @return The bytes for syntaxVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSyntaxVersionBytes() {
java.lang.Object ref = syntaxVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
syntaxVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_LOCATION_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object sourceLocation_ = "";
/**
*
* File or resource for source text, used in [SourceInfo][google.api.SourceInfo].
*
*
* string source_location = 3;
* @return The sourceLocation.
*/
@java.lang.Override
public java.lang.String getSourceLocation() {
java.lang.Object ref = sourceLocation_;
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();
sourceLocation_ = s;
return s;
}
}
/**
*
* File or resource for source text, used in [SourceInfo][google.api.SourceInfo].
*
*
* string source_location = 3;
* @return The bytes for sourceLocation.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSourceLocationBytes() {
java.lang.Object ref = sourceLocation_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceLocation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISABLE_MACROS_FIELD_NUMBER = 4;
private boolean disableMacros_ = false;
/**
*
* Prevent macro expansion. See "Macros" in Language Defiinition.
*
*
* bool disable_macros = 4;
* @return The disableMacros.
*/
@java.lang.Override
public boolean getDisableMacros() {
return disableMacros_;
}
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(celSource_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, celSource_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(syntaxVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, syntaxVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLocation_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceLocation_);
}
if (disableMacros_ != false) {
output.writeBool(4, disableMacros_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(celSource_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, celSource_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(syntaxVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, syntaxVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLocation_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceLocation_);
}
if (disableMacros_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, disableMacros_);
}
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 dev.cel.expr.conformance.ParseRequest)) {
return super.equals(obj);
}
dev.cel.expr.conformance.ParseRequest other = (dev.cel.expr.conformance.ParseRequest) obj;
if (!getCelSource()
.equals(other.getCelSource())) return false;
if (!getSyntaxVersion()
.equals(other.getSyntaxVersion())) return false;
if (!getSourceLocation()
.equals(other.getSourceLocation())) return false;
if (getDisableMacros()
!= other.getDisableMacros()) 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) + CEL_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getCelSource().hashCode();
hash = (37 * hash) + SYNTAX_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getSyntaxVersion().hashCode();
hash = (37 * hash) + SOURCE_LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getSourceLocation().hashCode();
hash = (37 * hash) + DISABLE_MACROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDisableMacros());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static dev.cel.expr.conformance.ParseRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.cel.expr.conformance.ParseRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.cel.expr.conformance.ParseRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.cel.expr.conformance.ParseRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.cel.expr.conformance.ParseRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.cel.expr.conformance.ParseRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.cel.expr.conformance.ParseRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static dev.cel.expr.conformance.ParseRequest 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 dev.cel.expr.conformance.ParseRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static dev.cel.expr.conformance.ParseRequest 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 dev.cel.expr.conformance.ParseRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static dev.cel.expr.conformance.ParseRequest 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(dev.cel.expr.conformance.ParseRequest 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;
}
/**
*
* Request message for the Parse method.
*
*
* Protobuf type {@code cel.expr.conformance.ParseRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cel.expr.conformance.ParseRequest)
dev.cel.expr.conformance.ParseRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.cel.expr.conformance.ConformanceServiceProto.internal_static_cel_expr_conformance_ParseRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.cel.expr.conformance.ConformanceServiceProto.internal_static_cel_expr_conformance_ParseRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.cel.expr.conformance.ParseRequest.class, dev.cel.expr.conformance.ParseRequest.Builder.class);
}
// Construct using dev.cel.expr.conformance.ParseRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
celSource_ = "";
syntaxVersion_ = "";
sourceLocation_ = "";
disableMacros_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return dev.cel.expr.conformance.ConformanceServiceProto.internal_static_cel_expr_conformance_ParseRequest_descriptor;
}
@java.lang.Override
public dev.cel.expr.conformance.ParseRequest getDefaultInstanceForType() {
return dev.cel.expr.conformance.ParseRequest.getDefaultInstance();
}
@java.lang.Override
public dev.cel.expr.conformance.ParseRequest build() {
dev.cel.expr.conformance.ParseRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public dev.cel.expr.conformance.ParseRequest buildPartial() {
dev.cel.expr.conformance.ParseRequest result = new dev.cel.expr.conformance.ParseRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(dev.cel.expr.conformance.ParseRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.celSource_ = celSource_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.syntaxVersion_ = syntaxVersion_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.sourceLocation_ = sourceLocation_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.disableMacros_ = disableMacros_;
}
}
@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 dev.cel.expr.conformance.ParseRequest) {
return mergeFrom((dev.cel.expr.conformance.ParseRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(dev.cel.expr.conformance.ParseRequest other) {
if (other == dev.cel.expr.conformance.ParseRequest.getDefaultInstance()) return this;
if (!other.getCelSource().isEmpty()) {
celSource_ = other.celSource_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getSyntaxVersion().isEmpty()) {
syntaxVersion_ = other.syntaxVersion_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getSourceLocation().isEmpty()) {
sourceLocation_ = other.sourceLocation_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.getDisableMacros() != false) {
setDisableMacros(other.getDisableMacros());
}
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: {
celSource_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
syntaxVersion_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
sourceLocation_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
disableMacros_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
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.lang.Object celSource_ = "";
/**
*
* Required. Source text in CEL syntax.
*
*
* string cel_source = 1;
* @return The celSource.
*/
public java.lang.String getCelSource() {
java.lang.Object ref = celSource_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
celSource_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. Source text in CEL syntax.
*
*
* string cel_source = 1;
* @return The bytes for celSource.
*/
public com.google.protobuf.ByteString
getCelSourceBytes() {
java.lang.Object ref = celSource_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
celSource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. Source text in CEL syntax.
*
*
* string cel_source = 1;
* @param value The celSource to set.
* @return This builder for chaining.
*/
public Builder setCelSource(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
celSource_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Required. Source text in CEL syntax.
*
*
* string cel_source = 1;
* @return This builder for chaining.
*/
public Builder clearCelSource() {
celSource_ = getDefaultInstance().getCelSource();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Required. Source text in CEL syntax.
*
*
* string cel_source = 1;
* @param value The bytes for celSource to set.
* @return This builder for chaining.
*/
public Builder setCelSourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
celSource_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object syntaxVersion_ = "";
/**
*
* Tag for version of CEL syntax, for future use.
*
*
* string syntax_version = 2;
* @return The syntaxVersion.
*/
public java.lang.String getSyntaxVersion() {
java.lang.Object ref = syntaxVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
syntaxVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Tag for version of CEL syntax, for future use.
*
*
* string syntax_version = 2;
* @return The bytes for syntaxVersion.
*/
public com.google.protobuf.ByteString
getSyntaxVersionBytes() {
java.lang.Object ref = syntaxVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
syntaxVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Tag for version of CEL syntax, for future use.
*
*
* string syntax_version = 2;
* @param value The syntaxVersion to set.
* @return This builder for chaining.
*/
public Builder setSyntaxVersion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
syntaxVersion_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Tag for version of CEL syntax, for future use.
*
*
* string syntax_version = 2;
* @return This builder for chaining.
*/
public Builder clearSyntaxVersion() {
syntaxVersion_ = getDefaultInstance().getSyntaxVersion();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Tag for version of CEL syntax, for future use.
*
*
* string syntax_version = 2;
* @param value The bytes for syntaxVersion to set.
* @return This builder for chaining.
*/
public Builder setSyntaxVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
syntaxVersion_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object sourceLocation_ = "";
/**
*
* File or resource for source text, used in [SourceInfo][google.api.SourceInfo].
*
*
* string source_location = 3;
* @return The sourceLocation.
*/
public java.lang.String getSourceLocation() {
java.lang.Object ref = sourceLocation_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sourceLocation_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* File or resource for source text, used in [SourceInfo][google.api.SourceInfo].
*
*
* string source_location = 3;
* @return The bytes for sourceLocation.
*/
public com.google.protobuf.ByteString
getSourceLocationBytes() {
java.lang.Object ref = sourceLocation_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceLocation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* File or resource for source text, used in [SourceInfo][google.api.SourceInfo].
*
*
* string source_location = 3;
* @param value The sourceLocation to set.
* @return This builder for chaining.
*/
public Builder setSourceLocation(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sourceLocation_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* File or resource for source text, used in [SourceInfo][google.api.SourceInfo].
*
*
* string source_location = 3;
* @return This builder for chaining.
*/
public Builder clearSourceLocation() {
sourceLocation_ = getDefaultInstance().getSourceLocation();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* File or resource for source text, used in [SourceInfo][google.api.SourceInfo].
*
*
* string source_location = 3;
* @param value The bytes for sourceLocation to set.
* @return This builder for chaining.
*/
public Builder setSourceLocationBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sourceLocation_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private boolean disableMacros_ ;
/**
*
* Prevent macro expansion. See "Macros" in Language Defiinition.
*
*
* bool disable_macros = 4;
* @return The disableMacros.
*/
@java.lang.Override
public boolean getDisableMacros() {
return disableMacros_;
}
/**
*
* Prevent macro expansion. See "Macros" in Language Defiinition.
*
*
* bool disable_macros = 4;
* @param value The disableMacros to set.
* @return This builder for chaining.
*/
public Builder setDisableMacros(boolean value) {
disableMacros_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Prevent macro expansion. See "Macros" in Language Defiinition.
*
*
* bool disable_macros = 4;
* @return This builder for chaining.
*/
public Builder clearDisableMacros() {
bitField0_ = (bitField0_ & ~0x00000008);
disableMacros_ = 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:cel.expr.conformance.ParseRequest)
}
// @@protoc_insertion_point(class_scope:cel.expr.conformance.ParseRequest)
private static final dev.cel.expr.conformance.ParseRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new dev.cel.expr.conformance.ParseRequest();
}
public static dev.cel.expr.conformance.ParseRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ParseRequest 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 dev.cel.expr.conformance.ParseRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy