org.apache.phoenix.coprocessor.generated.PFunctionProtos Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: PFunction.proto
package org.apache.phoenix.coprocessor.generated;
public final class PFunctionProtos {
private PFunctionProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface PFunctionArgOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string argumentType = 1;
/**
* required string argumentType = 1;
*/
boolean hasArgumentType();
/**
* required string argumentType = 1;
*/
java.lang.String getArgumentType();
/**
* required string argumentType = 1;
*/
com.google.protobuf.ByteString
getArgumentTypeBytes();
// optional bool isArrayType = 2;
/**
* optional bool isArrayType = 2;
*/
boolean hasIsArrayType();
/**
* optional bool isArrayType = 2;
*/
boolean getIsArrayType();
// optional bool isConstant = 3;
/**
* optional bool isConstant = 3;
*/
boolean hasIsConstant();
/**
* optional bool isConstant = 3;
*/
boolean getIsConstant();
// optional string defaultValue = 4;
/**
* optional string defaultValue = 4;
*/
boolean hasDefaultValue();
/**
* optional string defaultValue = 4;
*/
java.lang.String getDefaultValue();
/**
* optional string defaultValue = 4;
*/
com.google.protobuf.ByteString
getDefaultValueBytes();
// optional string minValue = 5;
/**
* optional string minValue = 5;
*/
boolean hasMinValue();
/**
* optional string minValue = 5;
*/
java.lang.String getMinValue();
/**
* optional string minValue = 5;
*/
com.google.protobuf.ByteString
getMinValueBytes();
// optional string maxValue = 6;
/**
* optional string maxValue = 6;
*/
boolean hasMaxValue();
/**
* optional string maxValue = 6;
*/
java.lang.String getMaxValue();
/**
* optional string maxValue = 6;
*/
com.google.protobuf.ByteString
getMaxValueBytes();
}
/**
* Protobuf type {@code PFunctionArg}
*/
public static final class PFunctionArg extends
com.google.protobuf.GeneratedMessage
implements PFunctionArgOrBuilder {
// Use PFunctionArg.newBuilder() to construct.
private PFunctionArg(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private PFunctionArg(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final PFunctionArg defaultInstance;
public static PFunctionArg getDefaultInstance() {
return defaultInstance;
}
public PFunctionArg getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PFunctionArg(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
argumentType_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
isArrayType_ = input.readBool();
break;
}
case 24: {
bitField0_ |= 0x00000004;
isConstant_ = input.readBool();
break;
}
case 34: {
bitField0_ |= 0x00000008;
defaultValue_ = input.readBytes();
break;
}
case 42: {
bitField0_ |= 0x00000010;
minValue_ = input.readBytes();
break;
}
case 50: {
bitField0_ |= 0x00000020;
maxValue_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.PFunctionProtos.internal_static_PFunctionArg_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.PFunctionProtos.internal_static_PFunctionArg_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg.class, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public PFunctionArg parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PFunctionArg(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string argumentType = 1;
public static final int ARGUMENTTYPE_FIELD_NUMBER = 1;
private java.lang.Object argumentType_;
/**
* required string argumentType = 1;
*/
public boolean hasArgumentType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string argumentType = 1;
*/
public java.lang.String getArgumentType() {
java.lang.Object ref = argumentType_;
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 (bs.isValidUtf8()) {
argumentType_ = s;
}
return s;
}
}
/**
* required string argumentType = 1;
*/
public com.google.protobuf.ByteString
getArgumentTypeBytes() {
java.lang.Object ref = argumentType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
argumentType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional bool isArrayType = 2;
public static final int ISARRAYTYPE_FIELD_NUMBER = 2;
private boolean isArrayType_;
/**
* optional bool isArrayType = 2;
*/
public boolean hasIsArrayType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bool isArrayType = 2;
*/
public boolean getIsArrayType() {
return isArrayType_;
}
// optional bool isConstant = 3;
public static final int ISCONSTANT_FIELD_NUMBER = 3;
private boolean isConstant_;
/**
* optional bool isConstant = 3;
*/
public boolean hasIsConstant() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bool isConstant = 3;
*/
public boolean getIsConstant() {
return isConstant_;
}
// optional string defaultValue = 4;
public static final int DEFAULTVALUE_FIELD_NUMBER = 4;
private java.lang.Object defaultValue_;
/**
* optional string defaultValue = 4;
*/
public boolean hasDefaultValue() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string defaultValue = 4;
*/
public java.lang.String getDefaultValue() {
java.lang.Object ref = defaultValue_;
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 (bs.isValidUtf8()) {
defaultValue_ = s;
}
return s;
}
}
/**
* optional string defaultValue = 4;
*/
public com.google.protobuf.ByteString
getDefaultValueBytes() {
java.lang.Object ref = defaultValue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string minValue = 5;
public static final int MINVALUE_FIELD_NUMBER = 5;
private java.lang.Object minValue_;
/**
* optional string minValue = 5;
*/
public boolean hasMinValue() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string minValue = 5;
*/
public java.lang.String getMinValue() {
java.lang.Object ref = minValue_;
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 (bs.isValidUtf8()) {
minValue_ = s;
}
return s;
}
}
/**
* optional string minValue = 5;
*/
public com.google.protobuf.ByteString
getMinValueBytes() {
java.lang.Object ref = minValue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
minValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string maxValue = 6;
public static final int MAXVALUE_FIELD_NUMBER = 6;
private java.lang.Object maxValue_;
/**
* optional string maxValue = 6;
*/
public boolean hasMaxValue() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string maxValue = 6;
*/
public java.lang.String getMaxValue() {
java.lang.Object ref = maxValue_;
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 (bs.isValidUtf8()) {
maxValue_ = s;
}
return s;
}
}
/**
* optional string maxValue = 6;
*/
public com.google.protobuf.ByteString
getMaxValueBytes() {
java.lang.Object ref = maxValue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
maxValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
argumentType_ = "";
isArrayType_ = false;
isConstant_ = false;
defaultValue_ = "";
minValue_ = "";
maxValue_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasArgumentType()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getArgumentTypeBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, isArrayType_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, isConstant_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getDefaultValueBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(5, getMinValueBytes());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBytes(6, getMaxValueBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getArgumentTypeBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, isArrayType_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, isConstant_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getDefaultValueBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, getMinValueBytes());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, getMaxValueBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg other = (org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg) obj;
boolean result = true;
result = result && (hasArgumentType() == other.hasArgumentType());
if (hasArgumentType()) {
result = result && getArgumentType()
.equals(other.getArgumentType());
}
result = result && (hasIsArrayType() == other.hasIsArrayType());
if (hasIsArrayType()) {
result = result && (getIsArrayType()
== other.getIsArrayType());
}
result = result && (hasIsConstant() == other.hasIsConstant());
if (hasIsConstant()) {
result = result && (getIsConstant()
== other.getIsConstant());
}
result = result && (hasDefaultValue() == other.hasDefaultValue());
if (hasDefaultValue()) {
result = result && getDefaultValue()
.equals(other.getDefaultValue());
}
result = result && (hasMinValue() == other.hasMinValue());
if (hasMinValue()) {
result = result && getMinValue()
.equals(other.getMinValue());
}
result = result && (hasMaxValue() == other.hasMaxValue());
if (hasMaxValue()) {
result = result && getMaxValue()
.equals(other.getMaxValue());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasArgumentType()) {
hash = (37 * hash) + ARGUMENTTYPE_FIELD_NUMBER;
hash = (53 * hash) + getArgumentType().hashCode();
}
if (hasIsArrayType()) {
hash = (37 * hash) + ISARRAYTYPE_FIELD_NUMBER;
hash = (53 * hash) + hashBoolean(getIsArrayType());
}
if (hasIsConstant()) {
hash = (37 * hash) + ISCONSTANT_FIELD_NUMBER;
hash = (53 * hash) + hashBoolean(getIsConstant());
}
if (hasDefaultValue()) {
hash = (37 * hash) + DEFAULTVALUE_FIELD_NUMBER;
hash = (53 * hash) + getDefaultValue().hashCode();
}
if (hasMinValue()) {
hash = (37 * hash) + MINVALUE_FIELD_NUMBER;
hash = (53 * hash) + getMinValue().hashCode();
}
if (hasMaxValue()) {
hash = (37 * hash) + MAXVALUE_FIELD_NUMBER;
hash = (53 * hash) + getMaxValue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code PFunctionArg}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArgOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.PFunctionProtos.internal_static_PFunctionArg_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.PFunctionProtos.internal_static_PFunctionArg_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg.class, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
argumentType_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
isArrayType_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
isConstant_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
defaultValue_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
minValue_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
maxValue_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.PFunctionProtos.internal_static_PFunctionArg_descriptor;
}
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg build() {
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg buildPartial() {
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg result = new org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.argumentType_ = argumentType_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.isArrayType_ = isArrayType_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.isConstant_ = isConstant_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.defaultValue_ = defaultValue_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.minValue_ = minValue_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.maxValue_ = maxValue_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg other) {
if (other == org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg.getDefaultInstance()) return this;
if (other.hasArgumentType()) {
bitField0_ |= 0x00000001;
argumentType_ = other.argumentType_;
onChanged();
}
if (other.hasIsArrayType()) {
setIsArrayType(other.getIsArrayType());
}
if (other.hasIsConstant()) {
setIsConstant(other.getIsConstant());
}
if (other.hasDefaultValue()) {
bitField0_ |= 0x00000008;
defaultValue_ = other.defaultValue_;
onChanged();
}
if (other.hasMinValue()) {
bitField0_ |= 0x00000010;
minValue_ = other.minValue_;
onChanged();
}
if (other.hasMaxValue()) {
bitField0_ |= 0x00000020;
maxValue_ = other.maxValue_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasArgumentType()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string argumentType = 1;
private java.lang.Object argumentType_ = "";
/**
* required string argumentType = 1;
*/
public boolean hasArgumentType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string argumentType = 1;
*/
public java.lang.String getArgumentType() {
java.lang.Object ref = argumentType_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
argumentType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string argumentType = 1;
*/
public com.google.protobuf.ByteString
getArgumentTypeBytes() {
java.lang.Object ref = argumentType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
argumentType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string argumentType = 1;
*/
public Builder setArgumentType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
argumentType_ = value;
onChanged();
return this;
}
/**
* required string argumentType = 1;
*/
public Builder clearArgumentType() {
bitField0_ = (bitField0_ & ~0x00000001);
argumentType_ = getDefaultInstance().getArgumentType();
onChanged();
return this;
}
/**
* required string argumentType = 1;
*/
public Builder setArgumentTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
argumentType_ = value;
onChanged();
return this;
}
// optional bool isArrayType = 2;
private boolean isArrayType_ ;
/**
* optional bool isArrayType = 2;
*/
public boolean hasIsArrayType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bool isArrayType = 2;
*/
public boolean getIsArrayType() {
return isArrayType_;
}
/**
* optional bool isArrayType = 2;
*/
public Builder setIsArrayType(boolean value) {
bitField0_ |= 0x00000002;
isArrayType_ = value;
onChanged();
return this;
}
/**
* optional bool isArrayType = 2;
*/
public Builder clearIsArrayType() {
bitField0_ = (bitField0_ & ~0x00000002);
isArrayType_ = false;
onChanged();
return this;
}
// optional bool isConstant = 3;
private boolean isConstant_ ;
/**
* optional bool isConstant = 3;
*/
public boolean hasIsConstant() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bool isConstant = 3;
*/
public boolean getIsConstant() {
return isConstant_;
}
/**
* optional bool isConstant = 3;
*/
public Builder setIsConstant(boolean value) {
bitField0_ |= 0x00000004;
isConstant_ = value;
onChanged();
return this;
}
/**
* optional bool isConstant = 3;
*/
public Builder clearIsConstant() {
bitField0_ = (bitField0_ & ~0x00000004);
isConstant_ = false;
onChanged();
return this;
}
// optional string defaultValue = 4;
private java.lang.Object defaultValue_ = "";
/**
* optional string defaultValue = 4;
*/
public boolean hasDefaultValue() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string defaultValue = 4;
*/
public java.lang.String getDefaultValue() {
java.lang.Object ref = defaultValue_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
defaultValue_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string defaultValue = 4;
*/
public com.google.protobuf.ByteString
getDefaultValueBytes() {
java.lang.Object ref = defaultValue_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string defaultValue = 4;
*/
public Builder setDefaultValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
defaultValue_ = value;
onChanged();
return this;
}
/**
* optional string defaultValue = 4;
*/
public Builder clearDefaultValue() {
bitField0_ = (bitField0_ & ~0x00000008);
defaultValue_ = getDefaultInstance().getDefaultValue();
onChanged();
return this;
}
/**
* optional string defaultValue = 4;
*/
public Builder setDefaultValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
defaultValue_ = value;
onChanged();
return this;
}
// optional string minValue = 5;
private java.lang.Object minValue_ = "";
/**
* optional string minValue = 5;
*/
public boolean hasMinValue() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string minValue = 5;
*/
public java.lang.String getMinValue() {
java.lang.Object ref = minValue_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
minValue_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string minValue = 5;
*/
public com.google.protobuf.ByteString
getMinValueBytes() {
java.lang.Object ref = minValue_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
minValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string minValue = 5;
*/
public Builder setMinValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
minValue_ = value;
onChanged();
return this;
}
/**
* optional string minValue = 5;
*/
public Builder clearMinValue() {
bitField0_ = (bitField0_ & ~0x00000010);
minValue_ = getDefaultInstance().getMinValue();
onChanged();
return this;
}
/**
* optional string minValue = 5;
*/
public Builder setMinValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
minValue_ = value;
onChanged();
return this;
}
// optional string maxValue = 6;
private java.lang.Object maxValue_ = "";
/**
* optional string maxValue = 6;
*/
public boolean hasMaxValue() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string maxValue = 6;
*/
public java.lang.String getMaxValue() {
java.lang.Object ref = maxValue_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
maxValue_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string maxValue = 6;
*/
public com.google.protobuf.ByteString
getMaxValueBytes() {
java.lang.Object ref = maxValue_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
maxValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string maxValue = 6;
*/
public Builder setMaxValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
maxValue_ = value;
onChanged();
return this;
}
/**
* optional string maxValue = 6;
*/
public Builder clearMaxValue() {
bitField0_ = (bitField0_ & ~0x00000020);
maxValue_ = getDefaultInstance().getMaxValue();
onChanged();
return this;
}
/**
* optional string maxValue = 6;
*/
public Builder setMaxValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
maxValue_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:PFunctionArg)
}
static {
defaultInstance = new PFunctionArg(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:PFunctionArg)
}
public interface PFunctionOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string functionName = 1;
/**
* required string functionName = 1;
*/
boolean hasFunctionName();
/**
* required string functionName = 1;
*/
java.lang.String getFunctionName();
/**
* required string functionName = 1;
*/
com.google.protobuf.ByteString
getFunctionNameBytes();
// repeated .PFunctionArg arguments = 2;
/**
* repeated .PFunctionArg arguments = 2;
*/
java.util.List
getArgumentsList();
/**
* repeated .PFunctionArg arguments = 2;
*/
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg getArguments(int index);
/**
* repeated .PFunctionArg arguments = 2;
*/
int getArgumentsCount();
/**
* repeated .PFunctionArg arguments = 2;
*/
java.util.List extends org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArgOrBuilder>
getArgumentsOrBuilderList();
/**
* repeated .PFunctionArg arguments = 2;
*/
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArgOrBuilder getArgumentsOrBuilder(
int index);
// required string classname = 3;
/**
* required string classname = 3;
*/
boolean hasClassname();
/**
* required string classname = 3;
*/
java.lang.String getClassname();
/**
* required string classname = 3;
*/
com.google.protobuf.ByteString
getClassnameBytes();
// required int64 timeStamp = 4;
/**
* required int64 timeStamp = 4;
*/
boolean hasTimeStamp();
/**
* required int64 timeStamp = 4;
*/
long getTimeStamp();
// optional string jarPath = 5;
/**
* optional string jarPath = 5;
*/
boolean hasJarPath();
/**
* optional string jarPath = 5;
*/
java.lang.String getJarPath();
/**
* optional string jarPath = 5;
*/
com.google.protobuf.ByteString
getJarPathBytes();
// optional bytes tenantId = 6;
/**
* optional bytes tenantId = 6;
*/
boolean hasTenantId();
/**
* optional bytes tenantId = 6;
*/
com.google.protobuf.ByteString getTenantId();
// optional string returnType = 7;
/**
* optional string returnType = 7;
*/
boolean hasReturnType();
/**
* optional string returnType = 7;
*/
java.lang.String getReturnType();
/**
* optional string returnType = 7;
*/
com.google.protobuf.ByteString
getReturnTypeBytes();
// optional bool isArrayReturnType = 8;
/**
* optional bool isArrayReturnType = 8;
*/
boolean hasIsArrayReturnType();
/**
* optional bool isArrayReturnType = 8;
*/
boolean getIsArrayReturnType();
// optional bool isReplace = 9;
/**
* optional bool isReplace = 9;
*/
boolean hasIsReplace();
/**
* optional bool isReplace = 9;
*/
boolean getIsReplace();
}
/**
* Protobuf type {@code PFunction}
*/
public static final class PFunction extends
com.google.protobuf.GeneratedMessage
implements PFunctionOrBuilder {
// Use PFunction.newBuilder() to construct.
private PFunction(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private PFunction(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final PFunction defaultInstance;
public static PFunction getDefaultInstance() {
return defaultInstance;
}
public PFunction getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PFunction(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
functionName_ = input.readBytes();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
arguments_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
arguments_.add(input.readMessage(org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg.PARSER, extensionRegistry));
break;
}
case 26: {
bitField0_ |= 0x00000002;
classname_ = input.readBytes();
break;
}
case 32: {
bitField0_ |= 0x00000004;
timeStamp_ = input.readInt64();
break;
}
case 42: {
bitField0_ |= 0x00000008;
jarPath_ = input.readBytes();
break;
}
case 50: {
bitField0_ |= 0x00000010;
tenantId_ = input.readBytes();
break;
}
case 58: {
bitField0_ |= 0x00000020;
returnType_ = input.readBytes();
break;
}
case 64: {
bitField0_ |= 0x00000040;
isArrayReturnType_ = input.readBool();
break;
}
case 72: {
bitField0_ |= 0x00000080;
isReplace_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
arguments_ = java.util.Collections.unmodifiableList(arguments_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.PFunctionProtos.internal_static_PFunction_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.PFunctionProtos.internal_static_PFunction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.class, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public PFunction parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PFunction(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string functionName = 1;
public static final int FUNCTIONNAME_FIELD_NUMBER = 1;
private java.lang.Object functionName_;
/**
* required string functionName = 1;
*/
public boolean hasFunctionName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string functionName = 1;
*/
public java.lang.String getFunctionName() {
java.lang.Object ref = functionName_;
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 (bs.isValidUtf8()) {
functionName_ = s;
}
return s;
}
}
/**
* required string functionName = 1;
*/
public com.google.protobuf.ByteString
getFunctionNameBytes() {
java.lang.Object ref = functionName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
functionName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// repeated .PFunctionArg arguments = 2;
public static final int ARGUMENTS_FIELD_NUMBER = 2;
private java.util.List arguments_;
/**
* repeated .PFunctionArg arguments = 2;
*/
public java.util.List getArgumentsList() {
return arguments_;
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public java.util.List extends org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArgOrBuilder>
getArgumentsOrBuilderList() {
return arguments_;
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public int getArgumentsCount() {
return arguments_.size();
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg getArguments(int index) {
return arguments_.get(index);
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArgOrBuilder getArgumentsOrBuilder(
int index) {
return arguments_.get(index);
}
// required string classname = 3;
public static final int CLASSNAME_FIELD_NUMBER = 3;
private java.lang.Object classname_;
/**
* required string classname = 3;
*/
public boolean hasClassname() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string classname = 3;
*/
public java.lang.String getClassname() {
java.lang.Object ref = classname_;
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 (bs.isValidUtf8()) {
classname_ = s;
}
return s;
}
}
/**
* required string classname = 3;
*/
public com.google.protobuf.ByteString
getClassnameBytes() {
java.lang.Object ref = classname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
classname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int64 timeStamp = 4;
public static final int TIMESTAMP_FIELD_NUMBER = 4;
private long timeStamp_;
/**
* required int64 timeStamp = 4;
*/
public boolean hasTimeStamp() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int64 timeStamp = 4;
*/
public long getTimeStamp() {
return timeStamp_;
}
// optional string jarPath = 5;
public static final int JARPATH_FIELD_NUMBER = 5;
private java.lang.Object jarPath_;
/**
* optional string jarPath = 5;
*/
public boolean hasJarPath() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string jarPath = 5;
*/
public java.lang.String getJarPath() {
java.lang.Object ref = jarPath_;
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 (bs.isValidUtf8()) {
jarPath_ = s;
}
return s;
}
}
/**
* optional string jarPath = 5;
*/
public com.google.protobuf.ByteString
getJarPathBytes() {
java.lang.Object ref = jarPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
jarPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional bytes tenantId = 6;
public static final int TENANTID_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString tenantId_;
/**
* optional bytes tenantId = 6;
*/
public boolean hasTenantId() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional bytes tenantId = 6;
*/
public com.google.protobuf.ByteString getTenantId() {
return tenantId_;
}
// optional string returnType = 7;
public static final int RETURNTYPE_FIELD_NUMBER = 7;
private java.lang.Object returnType_;
/**
* optional string returnType = 7;
*/
public boolean hasReturnType() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string returnType = 7;
*/
public java.lang.String getReturnType() {
java.lang.Object ref = returnType_;
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 (bs.isValidUtf8()) {
returnType_ = s;
}
return s;
}
}
/**
* optional string returnType = 7;
*/
public com.google.protobuf.ByteString
getReturnTypeBytes() {
java.lang.Object ref = returnType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
returnType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional bool isArrayReturnType = 8;
public static final int ISARRAYRETURNTYPE_FIELD_NUMBER = 8;
private boolean isArrayReturnType_;
/**
* optional bool isArrayReturnType = 8;
*/
public boolean hasIsArrayReturnType() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional bool isArrayReturnType = 8;
*/
public boolean getIsArrayReturnType() {
return isArrayReturnType_;
}
// optional bool isReplace = 9;
public static final int ISREPLACE_FIELD_NUMBER = 9;
private boolean isReplace_;
/**
* optional bool isReplace = 9;
*/
public boolean hasIsReplace() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional bool isReplace = 9;
*/
public boolean getIsReplace() {
return isReplace_;
}
private void initFields() {
functionName_ = "";
arguments_ = java.util.Collections.emptyList();
classname_ = "";
timeStamp_ = 0L;
jarPath_ = "";
tenantId_ = com.google.protobuf.ByteString.EMPTY;
returnType_ = "";
isArrayReturnType_ = false;
isReplace_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasFunctionName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasClassname()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasTimeStamp()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getArgumentsCount(); i++) {
if (!getArguments(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getFunctionNameBytes());
}
for (int i = 0; i < arguments_.size(); i++) {
output.writeMessage(2, arguments_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(3, getClassnameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(4, timeStamp_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(5, getJarPathBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(6, tenantId_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBytes(7, getReturnTypeBytes());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBool(8, isArrayReturnType_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeBool(9, isReplace_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getFunctionNameBytes());
}
for (int i = 0; i < arguments_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, arguments_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getClassnameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, timeStamp_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, getJarPathBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, tenantId_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, getReturnTypeBytes());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, isArrayReturnType_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, isReplace_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction)) {
return super.equals(obj);
}
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction other = (org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction) obj;
boolean result = true;
result = result && (hasFunctionName() == other.hasFunctionName());
if (hasFunctionName()) {
result = result && getFunctionName()
.equals(other.getFunctionName());
}
result = result && getArgumentsList()
.equals(other.getArgumentsList());
result = result && (hasClassname() == other.hasClassname());
if (hasClassname()) {
result = result && getClassname()
.equals(other.getClassname());
}
result = result && (hasTimeStamp() == other.hasTimeStamp());
if (hasTimeStamp()) {
result = result && (getTimeStamp()
== other.getTimeStamp());
}
result = result && (hasJarPath() == other.hasJarPath());
if (hasJarPath()) {
result = result && getJarPath()
.equals(other.getJarPath());
}
result = result && (hasTenantId() == other.hasTenantId());
if (hasTenantId()) {
result = result && getTenantId()
.equals(other.getTenantId());
}
result = result && (hasReturnType() == other.hasReturnType());
if (hasReturnType()) {
result = result && getReturnType()
.equals(other.getReturnType());
}
result = result && (hasIsArrayReturnType() == other.hasIsArrayReturnType());
if (hasIsArrayReturnType()) {
result = result && (getIsArrayReturnType()
== other.getIsArrayReturnType());
}
result = result && (hasIsReplace() == other.hasIsReplace());
if (hasIsReplace()) {
result = result && (getIsReplace()
== other.getIsReplace());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasFunctionName()) {
hash = (37 * hash) + FUNCTIONNAME_FIELD_NUMBER;
hash = (53 * hash) + getFunctionName().hashCode();
}
if (getArgumentsCount() > 0) {
hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER;
hash = (53 * hash) + getArgumentsList().hashCode();
}
if (hasClassname()) {
hash = (37 * hash) + CLASSNAME_FIELD_NUMBER;
hash = (53 * hash) + getClassname().hashCode();
}
if (hasTimeStamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getTimeStamp());
}
if (hasJarPath()) {
hash = (37 * hash) + JARPATH_FIELD_NUMBER;
hash = (53 * hash) + getJarPath().hashCode();
}
if (hasTenantId()) {
hash = (37 * hash) + TENANTID_FIELD_NUMBER;
hash = (53 * hash) + getTenantId().hashCode();
}
if (hasReturnType()) {
hash = (37 * hash) + RETURNTYPE_FIELD_NUMBER;
hash = (53 * hash) + getReturnType().hashCode();
}
if (hasIsArrayReturnType()) {
hash = (37 * hash) + ISARRAYRETURNTYPE_FIELD_NUMBER;
hash = (53 * hash) + hashBoolean(getIsArrayReturnType());
}
if (hasIsReplace()) {
hash = (37 * hash) + ISREPLACE_FIELD_NUMBER;
hash = (53 * hash) + hashBoolean(getIsReplace());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code PFunction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.phoenix.coprocessor.generated.PFunctionProtos.internal_static_PFunction_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.phoenix.coprocessor.generated.PFunctionProtos.internal_static_PFunction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.class, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.Builder.class);
}
// Construct using org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getArgumentsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
functionName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (argumentsBuilder_ == null) {
arguments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
argumentsBuilder_.clear();
}
classname_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
timeStamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
jarPath_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
tenantId_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
returnType_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
isArrayReturnType_ = false;
bitField0_ = (bitField0_ & ~0x00000080);
isReplace_ = false;
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.phoenix.coprocessor.generated.PFunctionProtos.internal_static_PFunction_descriptor;
}
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction getDefaultInstanceForType() {
return org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.getDefaultInstance();
}
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction build() {
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction buildPartial() {
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction result = new org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.functionName_ = functionName_;
if (argumentsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
arguments_ = java.util.Collections.unmodifiableList(arguments_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.arguments_ = arguments_;
} else {
result.arguments_ = argumentsBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.classname_ = classname_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
result.timeStamp_ = timeStamp_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000008;
}
result.jarPath_ = jarPath_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000010;
}
result.tenantId_ = tenantId_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000020;
}
result.returnType_ = returnType_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000040;
}
result.isArrayReturnType_ = isArrayReturnType_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000080;
}
result.isReplace_ = isReplace_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction) {
return mergeFrom((org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction other) {
if (other == org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction.getDefaultInstance()) return this;
if (other.hasFunctionName()) {
bitField0_ |= 0x00000001;
functionName_ = other.functionName_;
onChanged();
}
if (argumentsBuilder_ == null) {
if (!other.arguments_.isEmpty()) {
if (arguments_.isEmpty()) {
arguments_ = other.arguments_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureArgumentsIsMutable();
arguments_.addAll(other.arguments_);
}
onChanged();
}
} else {
if (!other.arguments_.isEmpty()) {
if (argumentsBuilder_.isEmpty()) {
argumentsBuilder_.dispose();
argumentsBuilder_ = null;
arguments_ = other.arguments_;
bitField0_ = (bitField0_ & ~0x00000002);
argumentsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getArgumentsFieldBuilder() : null;
} else {
argumentsBuilder_.addAllMessages(other.arguments_);
}
}
}
if (other.hasClassname()) {
bitField0_ |= 0x00000004;
classname_ = other.classname_;
onChanged();
}
if (other.hasTimeStamp()) {
setTimeStamp(other.getTimeStamp());
}
if (other.hasJarPath()) {
bitField0_ |= 0x00000010;
jarPath_ = other.jarPath_;
onChanged();
}
if (other.hasTenantId()) {
setTenantId(other.getTenantId());
}
if (other.hasReturnType()) {
bitField0_ |= 0x00000040;
returnType_ = other.returnType_;
onChanged();
}
if (other.hasIsArrayReturnType()) {
setIsArrayReturnType(other.getIsArrayReturnType());
}
if (other.hasIsReplace()) {
setIsReplace(other.getIsReplace());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasFunctionName()) {
return false;
}
if (!hasClassname()) {
return false;
}
if (!hasTimeStamp()) {
return false;
}
for (int i = 0; i < getArgumentsCount(); i++) {
if (!getArguments(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunction) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string functionName = 1;
private java.lang.Object functionName_ = "";
/**
* required string functionName = 1;
*/
public boolean hasFunctionName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string functionName = 1;
*/
public java.lang.String getFunctionName() {
java.lang.Object ref = functionName_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
functionName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string functionName = 1;
*/
public com.google.protobuf.ByteString
getFunctionNameBytes() {
java.lang.Object ref = functionName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
functionName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string functionName = 1;
*/
public Builder setFunctionName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
functionName_ = value;
onChanged();
return this;
}
/**
* required string functionName = 1;
*/
public Builder clearFunctionName() {
bitField0_ = (bitField0_ & ~0x00000001);
functionName_ = getDefaultInstance().getFunctionName();
onChanged();
return this;
}
/**
* required string functionName = 1;
*/
public Builder setFunctionNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
functionName_ = value;
onChanged();
return this;
}
// repeated .PFunctionArg arguments = 2;
private java.util.List arguments_ =
java.util.Collections.emptyList();
private void ensureArgumentsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
arguments_ = new java.util.ArrayList(arguments_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg.Builder, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArgOrBuilder> argumentsBuilder_;
/**
* repeated .PFunctionArg arguments = 2;
*/
public java.util.List getArgumentsList() {
if (argumentsBuilder_ == null) {
return java.util.Collections.unmodifiableList(arguments_);
} else {
return argumentsBuilder_.getMessageList();
}
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public int getArgumentsCount() {
if (argumentsBuilder_ == null) {
return arguments_.size();
} else {
return argumentsBuilder_.getCount();
}
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg getArguments(int index) {
if (argumentsBuilder_ == null) {
return arguments_.get(index);
} else {
return argumentsBuilder_.getMessage(index);
}
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public Builder setArguments(
int index, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg value) {
if (argumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.set(index, value);
onChanged();
} else {
argumentsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public Builder setArguments(
int index, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg.Builder builderForValue) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.set(index, builderForValue.build());
onChanged();
} else {
argumentsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public Builder addArguments(org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg value) {
if (argumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.add(value);
onChanged();
} else {
argumentsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public Builder addArguments(
int index, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg value) {
if (argumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.add(index, value);
onChanged();
} else {
argumentsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public Builder addArguments(
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg.Builder builderForValue) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.add(builderForValue.build());
onChanged();
} else {
argumentsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public Builder addArguments(
int index, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg.Builder builderForValue) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.add(index, builderForValue.build());
onChanged();
} else {
argumentsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public Builder addAllArguments(
java.lang.Iterable extends org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg> values) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
super.addAll(values, arguments_);
onChanged();
} else {
argumentsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public Builder clearArguments() {
if (argumentsBuilder_ == null) {
arguments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
argumentsBuilder_.clear();
}
return this;
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public Builder removeArguments(int index) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.remove(index);
onChanged();
} else {
argumentsBuilder_.remove(index);
}
return this;
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg.Builder getArgumentsBuilder(
int index) {
return getArgumentsFieldBuilder().getBuilder(index);
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArgOrBuilder getArgumentsOrBuilder(
int index) {
if (argumentsBuilder_ == null) {
return arguments_.get(index); } else {
return argumentsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public java.util.List extends org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArgOrBuilder>
getArgumentsOrBuilderList() {
if (argumentsBuilder_ != null) {
return argumentsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(arguments_);
}
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg.Builder addArgumentsBuilder() {
return getArgumentsFieldBuilder().addBuilder(
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg.getDefaultInstance());
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg.Builder addArgumentsBuilder(
int index) {
return getArgumentsFieldBuilder().addBuilder(
index, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg.getDefaultInstance());
}
/**
* repeated .PFunctionArg arguments = 2;
*/
public java.util.List
getArgumentsBuilderList() {
return getArgumentsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg.Builder, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArgOrBuilder>
getArgumentsFieldBuilder() {
if (argumentsBuilder_ == null) {
argumentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArg.Builder, org.apache.phoenix.coprocessor.generated.PFunctionProtos.PFunctionArgOrBuilder>(
arguments_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
arguments_ = null;
}
return argumentsBuilder_;
}
// required string classname = 3;
private java.lang.Object classname_ = "";
/**
* required string classname = 3;
*/
public boolean hasClassname() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required string classname = 3;
*/
public java.lang.String getClassname() {
java.lang.Object ref = classname_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
classname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string classname = 3;
*/
public com.google.protobuf.ByteString
getClassnameBytes() {
java.lang.Object ref = classname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
classname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string classname = 3;
*/
public Builder setClassname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
classname_ = value;
onChanged();
return this;
}
/**
* required string classname = 3;
*/
public Builder clearClassname() {
bitField0_ = (bitField0_ & ~0x00000004);
classname_ = getDefaultInstance().getClassname();
onChanged();
return this;
}
/**
* required string classname = 3;
*/
public Builder setClassnameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
classname_ = value;
onChanged();
return this;
}
// required int64 timeStamp = 4;
private long timeStamp_ ;
/**
* required int64 timeStamp = 4;
*/
public boolean hasTimeStamp() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required int64 timeStamp = 4;
*/
public long getTimeStamp() {
return timeStamp_;
}
/**
* required int64 timeStamp = 4;
*/
public Builder setTimeStamp(long value) {
bitField0_ |= 0x00000008;
timeStamp_ = value;
onChanged();
return this;
}
/**
* required int64 timeStamp = 4;
*/
public Builder clearTimeStamp() {
bitField0_ = (bitField0_ & ~0x00000008);
timeStamp_ = 0L;
onChanged();
return this;
}
// optional string jarPath = 5;
private java.lang.Object jarPath_ = "";
/**
* optional string jarPath = 5;
*/
public boolean hasJarPath() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string jarPath = 5;
*/
public java.lang.String getJarPath() {
java.lang.Object ref = jarPath_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
jarPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string jarPath = 5;
*/
public com.google.protobuf.ByteString
getJarPathBytes() {
java.lang.Object ref = jarPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
jarPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string jarPath = 5;
*/
public Builder setJarPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
jarPath_ = value;
onChanged();
return this;
}
/**
* optional string jarPath = 5;
*/
public Builder clearJarPath() {
bitField0_ = (bitField0_ & ~0x00000010);
jarPath_ = getDefaultInstance().getJarPath();
onChanged();
return this;
}
/**
* optional string jarPath = 5;
*/
public Builder setJarPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
jarPath_ = value;
onChanged();
return this;
}
// optional bytes tenantId = 6;
private com.google.protobuf.ByteString tenantId_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes tenantId = 6;
*/
public boolean hasTenantId() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional bytes tenantId = 6;
*/
public com.google.protobuf.ByteString getTenantId() {
return tenantId_;
}
/**
* optional bytes tenantId = 6;
*/
public Builder setTenantId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
tenantId_ = value;
onChanged();
return this;
}
/**
* optional bytes tenantId = 6;
*/
public Builder clearTenantId() {
bitField0_ = (bitField0_ & ~0x00000020);
tenantId_ = getDefaultInstance().getTenantId();
onChanged();
return this;
}
// optional string returnType = 7;
private java.lang.Object returnType_ = "";
/**
* optional string returnType = 7;
*/
public boolean hasReturnType() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string returnType = 7;
*/
public java.lang.String getReturnType() {
java.lang.Object ref = returnType_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
returnType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string returnType = 7;
*/
public com.google.protobuf.ByteString
getReturnTypeBytes() {
java.lang.Object ref = returnType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
returnType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string returnType = 7;
*/
public Builder setReturnType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
returnType_ = value;
onChanged();
return this;
}
/**
* optional string returnType = 7;
*/
public Builder clearReturnType() {
bitField0_ = (bitField0_ & ~0x00000040);
returnType_ = getDefaultInstance().getReturnType();
onChanged();
return this;
}
/**
* optional string returnType = 7;
*/
public Builder setReturnTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
returnType_ = value;
onChanged();
return this;
}
// optional bool isArrayReturnType = 8;
private boolean isArrayReturnType_ ;
/**
* optional bool isArrayReturnType = 8;
*/
public boolean hasIsArrayReturnType() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional bool isArrayReturnType = 8;
*/
public boolean getIsArrayReturnType() {
return isArrayReturnType_;
}
/**
* optional bool isArrayReturnType = 8;
*/
public Builder setIsArrayReturnType(boolean value) {
bitField0_ |= 0x00000080;
isArrayReturnType_ = value;
onChanged();
return this;
}
/**
* optional bool isArrayReturnType = 8;
*/
public Builder clearIsArrayReturnType() {
bitField0_ = (bitField0_ & ~0x00000080);
isArrayReturnType_ = false;
onChanged();
return this;
}
// optional bool isReplace = 9;
private boolean isReplace_ ;
/**
* optional bool isReplace = 9;
*/
public boolean hasIsReplace() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional bool isReplace = 9;
*/
public boolean getIsReplace() {
return isReplace_;
}
/**
* optional bool isReplace = 9;
*/
public Builder setIsReplace(boolean value) {
bitField0_ |= 0x00000100;
isReplace_ = value;
onChanged();
return this;
}
/**
* optional bool isReplace = 9;
*/
public Builder clearIsReplace() {
bitField0_ = (bitField0_ & ~0x00000100);
isReplace_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:PFunction)
}
static {
defaultInstance = new PFunction(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:PFunction)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_PFunctionArg_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_PFunctionArg_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_PFunction_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_PFunction_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\017PFunction.proto\"\207\001\n\014PFunctionArg\022\024\n\014ar" +
"gumentType\030\001 \002(\t\022\023\n\013isArrayType\030\002 \001(\010\022\022\n" +
"\nisConstant\030\003 \001(\010\022\024\n\014defaultValue\030\004 \001(\t\022" +
"\020\n\010minValue\030\005 \001(\t\022\020\n\010maxValue\030\006 \001(\t\"\316\001\n\t" +
"PFunction\022\024\n\014functionName\030\001 \002(\t\022 \n\targum" +
"ents\030\002 \003(\0132\r.PFunctionArg\022\021\n\tclassname\030\003" +
" \002(\t\022\021\n\ttimeStamp\030\004 \002(\003\022\017\n\007jarPath\030\005 \001(\t" +
"\022\020\n\010tenantId\030\006 \001(\014\022\022\n\nreturnType\030\007 \001(\t\022\031" +
"\n\021isArrayReturnType\030\010 \001(\010\022\021\n\tisReplace\030\t" +
" \001(\010BC\n(org.apache.phoenix.coprocessor.g",
"eneratedB\017PFunctionProtosH\001\210\001\001\240\001\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_PFunctionArg_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_PFunctionArg_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_PFunctionArg_descriptor,
new java.lang.String[] { "ArgumentType", "IsArrayType", "IsConstant", "DefaultValue", "MinValue", "MaxValue", });
internal_static_PFunction_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_PFunction_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_PFunction_descriptor,
new java.lang.String[] { "FunctionName", "Arguments", "Classname", "TimeStamp", "JarPath", "TenantId", "ReturnType", "IsArrayReturnType", "IsReplace", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy