com.clarifai.grpc.api.Geo Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/clarifai/api/resources.proto
package com.clarifai.grpc.api;
/**
*
* Geo
*
*
* Protobuf type {@code clarifai.api.Geo}
*/
public final class Geo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.Geo)
GeoOrBuilder {
private static final long serialVersionUID = 0L;
// Use Geo.newBuilder() to construct.
private Geo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Geo() {
geoBox_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Geo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Geo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.clarifai.grpc.api.GeoPoint.Builder subBuilder = null;
if (geoPoint_ != null) {
subBuilder = geoPoint_.toBuilder();
}
geoPoint_ = input.readMessage(com.clarifai.grpc.api.GeoPoint.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(geoPoint_);
geoPoint_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.clarifai.grpc.api.GeoLimit.Builder subBuilder = null;
if (geoLimit_ != null) {
subBuilder = geoLimit_.toBuilder();
}
geoLimit_ = input.readMessage(com.clarifai.grpc.api.GeoLimit.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(geoLimit_);
geoLimit_ = subBuilder.buildPartial();
}
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
geoBox_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
geoBox_.add(
input.readMessage(com.clarifai.grpc.api.GeoBoxedPoint.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
geoBox_ = java.util.Collections.unmodifiableList(geoBox_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Geo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Geo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.Geo.class, com.clarifai.grpc.api.Geo.Builder.class);
}
public static final int GEO_POINT_FIELD_NUMBER = 1;
private com.clarifai.grpc.api.GeoPoint geoPoint_;
/**
* .clarifai.api.GeoPoint geo_point = 1;
* @return Whether the geoPoint field is set.
*/
@java.lang.Override
public boolean hasGeoPoint() {
return geoPoint_ != null;
}
/**
* .clarifai.api.GeoPoint geo_point = 1;
* @return The geoPoint.
*/
@java.lang.Override
public com.clarifai.grpc.api.GeoPoint getGeoPoint() {
return geoPoint_ == null ? com.clarifai.grpc.api.GeoPoint.getDefaultInstance() : geoPoint_;
}
/**
* .clarifai.api.GeoPoint geo_point = 1;
*/
@java.lang.Override
public com.clarifai.grpc.api.GeoPointOrBuilder getGeoPointOrBuilder() {
return getGeoPoint();
}
public static final int GEO_LIMIT_FIELD_NUMBER = 2;
private com.clarifai.grpc.api.GeoLimit geoLimit_;
/**
* .clarifai.api.GeoLimit geo_limit = 2;
* @return Whether the geoLimit field is set.
*/
@java.lang.Override
public boolean hasGeoLimit() {
return geoLimit_ != null;
}
/**
* .clarifai.api.GeoLimit geo_limit = 2;
* @return The geoLimit.
*/
@java.lang.Override
public com.clarifai.grpc.api.GeoLimit getGeoLimit() {
return geoLimit_ == null ? com.clarifai.grpc.api.GeoLimit.getDefaultInstance() : geoLimit_;
}
/**
* .clarifai.api.GeoLimit geo_limit = 2;
*/
@java.lang.Override
public com.clarifai.grpc.api.GeoLimitOrBuilder getGeoLimitOrBuilder() {
return getGeoLimit();
}
public static final int GEO_BOX_FIELD_NUMBER = 3;
private java.util.List geoBox_;
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
@java.lang.Override
public java.util.List getGeoBoxList() {
return geoBox_;
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
@java.lang.Override
public java.util.List extends com.clarifai.grpc.api.GeoBoxedPointOrBuilder>
getGeoBoxOrBuilderList() {
return geoBox_;
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
@java.lang.Override
public int getGeoBoxCount() {
return geoBox_.size();
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
@java.lang.Override
public com.clarifai.grpc.api.GeoBoxedPoint getGeoBox(int index) {
return geoBox_.get(index);
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
@java.lang.Override
public com.clarifai.grpc.api.GeoBoxedPointOrBuilder getGeoBoxOrBuilder(
int index) {
return geoBox_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (geoPoint_ != null) {
output.writeMessage(1, getGeoPoint());
}
if (geoLimit_ != null) {
output.writeMessage(2, getGeoLimit());
}
for (int i = 0; i < geoBox_.size(); i++) {
output.writeMessage(3, geoBox_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (geoPoint_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getGeoPoint());
}
if (geoLimit_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getGeoLimit());
}
for (int i = 0; i < geoBox_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, geoBox_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.clarifai.grpc.api.Geo)) {
return super.equals(obj);
}
com.clarifai.grpc.api.Geo other = (com.clarifai.grpc.api.Geo) obj;
if (hasGeoPoint() != other.hasGeoPoint()) return false;
if (hasGeoPoint()) {
if (!getGeoPoint()
.equals(other.getGeoPoint())) return false;
}
if (hasGeoLimit() != other.hasGeoLimit()) return false;
if (hasGeoLimit()) {
if (!getGeoLimit()
.equals(other.getGeoLimit())) return false;
}
if (!getGeoBoxList()
.equals(other.getGeoBoxList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasGeoPoint()) {
hash = (37 * hash) + GEO_POINT_FIELD_NUMBER;
hash = (53 * hash) + getGeoPoint().hashCode();
}
if (hasGeoLimit()) {
hash = (37 * hash) + GEO_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getGeoLimit().hashCode();
}
if (getGeoBoxCount() > 0) {
hash = (37 * hash) + GEO_BOX_FIELD_NUMBER;
hash = (53 * hash) + getGeoBoxList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.Geo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.Geo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.Geo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.Geo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.Geo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.Geo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.Geo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.Geo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.clarifai.grpc.api.Geo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.Geo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.clarifai.grpc.api.Geo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.Geo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.clarifai.grpc.api.Geo 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;
}
/**
*
* Geo
*
*
* Protobuf type {@code clarifai.api.Geo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.Geo)
com.clarifai.grpc.api.GeoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Geo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Geo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.Geo.class, com.clarifai.grpc.api.Geo.Builder.class);
}
// Construct using com.clarifai.grpc.api.Geo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getGeoBoxFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (geoPointBuilder_ == null) {
geoPoint_ = null;
} else {
geoPoint_ = null;
geoPointBuilder_ = null;
}
if (geoLimitBuilder_ == null) {
geoLimit_ = null;
} else {
geoLimit_ = null;
geoLimitBuilder_ = null;
}
if (geoBoxBuilder_ == null) {
geoBox_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
geoBoxBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Geo_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.Geo getDefaultInstanceForType() {
return com.clarifai.grpc.api.Geo.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.Geo build() {
com.clarifai.grpc.api.Geo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.Geo buildPartial() {
com.clarifai.grpc.api.Geo result = new com.clarifai.grpc.api.Geo(this);
int from_bitField0_ = bitField0_;
if (geoPointBuilder_ == null) {
result.geoPoint_ = geoPoint_;
} else {
result.geoPoint_ = geoPointBuilder_.build();
}
if (geoLimitBuilder_ == null) {
result.geoLimit_ = geoLimit_;
} else {
result.geoLimit_ = geoLimitBuilder_.build();
}
if (geoBoxBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
geoBox_ = java.util.Collections.unmodifiableList(geoBox_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.geoBox_ = geoBox_;
} else {
result.geoBox_ = geoBoxBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.clarifai.grpc.api.Geo) {
return mergeFrom((com.clarifai.grpc.api.Geo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.Geo other) {
if (other == com.clarifai.grpc.api.Geo.getDefaultInstance()) return this;
if (other.hasGeoPoint()) {
mergeGeoPoint(other.getGeoPoint());
}
if (other.hasGeoLimit()) {
mergeGeoLimit(other.getGeoLimit());
}
if (geoBoxBuilder_ == null) {
if (!other.geoBox_.isEmpty()) {
if (geoBox_.isEmpty()) {
geoBox_ = other.geoBox_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureGeoBoxIsMutable();
geoBox_.addAll(other.geoBox_);
}
onChanged();
}
} else {
if (!other.geoBox_.isEmpty()) {
if (geoBoxBuilder_.isEmpty()) {
geoBoxBuilder_.dispose();
geoBoxBuilder_ = null;
geoBox_ = other.geoBox_;
bitField0_ = (bitField0_ & ~0x00000001);
geoBoxBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGeoBoxFieldBuilder() : null;
} else {
geoBoxBuilder_.addAllMessages(other.geoBox_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.clarifai.grpc.api.Geo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.Geo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.clarifai.grpc.api.GeoPoint geoPoint_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.GeoPoint, com.clarifai.grpc.api.GeoPoint.Builder, com.clarifai.grpc.api.GeoPointOrBuilder> geoPointBuilder_;
/**
* .clarifai.api.GeoPoint geo_point = 1;
* @return Whether the geoPoint field is set.
*/
public boolean hasGeoPoint() {
return geoPointBuilder_ != null || geoPoint_ != null;
}
/**
* .clarifai.api.GeoPoint geo_point = 1;
* @return The geoPoint.
*/
public com.clarifai.grpc.api.GeoPoint getGeoPoint() {
if (geoPointBuilder_ == null) {
return geoPoint_ == null ? com.clarifai.grpc.api.GeoPoint.getDefaultInstance() : geoPoint_;
} else {
return geoPointBuilder_.getMessage();
}
}
/**
* .clarifai.api.GeoPoint geo_point = 1;
*/
public Builder setGeoPoint(com.clarifai.grpc.api.GeoPoint value) {
if (geoPointBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
geoPoint_ = value;
onChanged();
} else {
geoPointBuilder_.setMessage(value);
}
return this;
}
/**
* .clarifai.api.GeoPoint geo_point = 1;
*/
public Builder setGeoPoint(
com.clarifai.grpc.api.GeoPoint.Builder builderForValue) {
if (geoPointBuilder_ == null) {
geoPoint_ = builderForValue.build();
onChanged();
} else {
geoPointBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .clarifai.api.GeoPoint geo_point = 1;
*/
public Builder mergeGeoPoint(com.clarifai.grpc.api.GeoPoint value) {
if (geoPointBuilder_ == null) {
if (geoPoint_ != null) {
geoPoint_ =
com.clarifai.grpc.api.GeoPoint.newBuilder(geoPoint_).mergeFrom(value).buildPartial();
} else {
geoPoint_ = value;
}
onChanged();
} else {
geoPointBuilder_.mergeFrom(value);
}
return this;
}
/**
* .clarifai.api.GeoPoint geo_point = 1;
*/
public Builder clearGeoPoint() {
if (geoPointBuilder_ == null) {
geoPoint_ = null;
onChanged();
} else {
geoPoint_ = null;
geoPointBuilder_ = null;
}
return this;
}
/**
* .clarifai.api.GeoPoint geo_point = 1;
*/
public com.clarifai.grpc.api.GeoPoint.Builder getGeoPointBuilder() {
onChanged();
return getGeoPointFieldBuilder().getBuilder();
}
/**
* .clarifai.api.GeoPoint geo_point = 1;
*/
public com.clarifai.grpc.api.GeoPointOrBuilder getGeoPointOrBuilder() {
if (geoPointBuilder_ != null) {
return geoPointBuilder_.getMessageOrBuilder();
} else {
return geoPoint_ == null ?
com.clarifai.grpc.api.GeoPoint.getDefaultInstance() : geoPoint_;
}
}
/**
* .clarifai.api.GeoPoint geo_point = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.GeoPoint, com.clarifai.grpc.api.GeoPoint.Builder, com.clarifai.grpc.api.GeoPointOrBuilder>
getGeoPointFieldBuilder() {
if (geoPointBuilder_ == null) {
geoPointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.GeoPoint, com.clarifai.grpc.api.GeoPoint.Builder, com.clarifai.grpc.api.GeoPointOrBuilder>(
getGeoPoint(),
getParentForChildren(),
isClean());
geoPoint_ = null;
}
return geoPointBuilder_;
}
private com.clarifai.grpc.api.GeoLimit geoLimit_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.GeoLimit, com.clarifai.grpc.api.GeoLimit.Builder, com.clarifai.grpc.api.GeoLimitOrBuilder> geoLimitBuilder_;
/**
* .clarifai.api.GeoLimit geo_limit = 2;
* @return Whether the geoLimit field is set.
*/
public boolean hasGeoLimit() {
return geoLimitBuilder_ != null || geoLimit_ != null;
}
/**
* .clarifai.api.GeoLimit geo_limit = 2;
* @return The geoLimit.
*/
public com.clarifai.grpc.api.GeoLimit getGeoLimit() {
if (geoLimitBuilder_ == null) {
return geoLimit_ == null ? com.clarifai.grpc.api.GeoLimit.getDefaultInstance() : geoLimit_;
} else {
return geoLimitBuilder_.getMessage();
}
}
/**
* .clarifai.api.GeoLimit geo_limit = 2;
*/
public Builder setGeoLimit(com.clarifai.grpc.api.GeoLimit value) {
if (geoLimitBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
geoLimit_ = value;
onChanged();
} else {
geoLimitBuilder_.setMessage(value);
}
return this;
}
/**
* .clarifai.api.GeoLimit geo_limit = 2;
*/
public Builder setGeoLimit(
com.clarifai.grpc.api.GeoLimit.Builder builderForValue) {
if (geoLimitBuilder_ == null) {
geoLimit_ = builderForValue.build();
onChanged();
} else {
geoLimitBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .clarifai.api.GeoLimit geo_limit = 2;
*/
public Builder mergeGeoLimit(com.clarifai.grpc.api.GeoLimit value) {
if (geoLimitBuilder_ == null) {
if (geoLimit_ != null) {
geoLimit_ =
com.clarifai.grpc.api.GeoLimit.newBuilder(geoLimit_).mergeFrom(value).buildPartial();
} else {
geoLimit_ = value;
}
onChanged();
} else {
geoLimitBuilder_.mergeFrom(value);
}
return this;
}
/**
* .clarifai.api.GeoLimit geo_limit = 2;
*/
public Builder clearGeoLimit() {
if (geoLimitBuilder_ == null) {
geoLimit_ = null;
onChanged();
} else {
geoLimit_ = null;
geoLimitBuilder_ = null;
}
return this;
}
/**
* .clarifai.api.GeoLimit geo_limit = 2;
*/
public com.clarifai.grpc.api.GeoLimit.Builder getGeoLimitBuilder() {
onChanged();
return getGeoLimitFieldBuilder().getBuilder();
}
/**
* .clarifai.api.GeoLimit geo_limit = 2;
*/
public com.clarifai.grpc.api.GeoLimitOrBuilder getGeoLimitOrBuilder() {
if (geoLimitBuilder_ != null) {
return geoLimitBuilder_.getMessageOrBuilder();
} else {
return geoLimit_ == null ?
com.clarifai.grpc.api.GeoLimit.getDefaultInstance() : geoLimit_;
}
}
/**
* .clarifai.api.GeoLimit geo_limit = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.GeoLimit, com.clarifai.grpc.api.GeoLimit.Builder, com.clarifai.grpc.api.GeoLimitOrBuilder>
getGeoLimitFieldBuilder() {
if (geoLimitBuilder_ == null) {
geoLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.GeoLimit, com.clarifai.grpc.api.GeoLimit.Builder, com.clarifai.grpc.api.GeoLimitOrBuilder>(
getGeoLimit(),
getParentForChildren(),
isClean());
geoLimit_ = null;
}
return geoLimitBuilder_;
}
private java.util.List geoBox_ =
java.util.Collections.emptyList();
private void ensureGeoBoxIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
geoBox_ = new java.util.ArrayList(geoBox_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.GeoBoxedPoint, com.clarifai.grpc.api.GeoBoxedPoint.Builder, com.clarifai.grpc.api.GeoBoxedPointOrBuilder> geoBoxBuilder_;
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
public java.util.List getGeoBoxList() {
if (geoBoxBuilder_ == null) {
return java.util.Collections.unmodifiableList(geoBox_);
} else {
return geoBoxBuilder_.getMessageList();
}
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
public int getGeoBoxCount() {
if (geoBoxBuilder_ == null) {
return geoBox_.size();
} else {
return geoBoxBuilder_.getCount();
}
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
public com.clarifai.grpc.api.GeoBoxedPoint getGeoBox(int index) {
if (geoBoxBuilder_ == null) {
return geoBox_.get(index);
} else {
return geoBoxBuilder_.getMessage(index);
}
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
public Builder setGeoBox(
int index, com.clarifai.grpc.api.GeoBoxedPoint value) {
if (geoBoxBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGeoBoxIsMutable();
geoBox_.set(index, value);
onChanged();
} else {
geoBoxBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
public Builder setGeoBox(
int index, com.clarifai.grpc.api.GeoBoxedPoint.Builder builderForValue) {
if (geoBoxBuilder_ == null) {
ensureGeoBoxIsMutable();
geoBox_.set(index, builderForValue.build());
onChanged();
} else {
geoBoxBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
public Builder addGeoBox(com.clarifai.grpc.api.GeoBoxedPoint value) {
if (geoBoxBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGeoBoxIsMutable();
geoBox_.add(value);
onChanged();
} else {
geoBoxBuilder_.addMessage(value);
}
return this;
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
public Builder addGeoBox(
int index, com.clarifai.grpc.api.GeoBoxedPoint value) {
if (geoBoxBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGeoBoxIsMutable();
geoBox_.add(index, value);
onChanged();
} else {
geoBoxBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
public Builder addGeoBox(
com.clarifai.grpc.api.GeoBoxedPoint.Builder builderForValue) {
if (geoBoxBuilder_ == null) {
ensureGeoBoxIsMutable();
geoBox_.add(builderForValue.build());
onChanged();
} else {
geoBoxBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
public Builder addGeoBox(
int index, com.clarifai.grpc.api.GeoBoxedPoint.Builder builderForValue) {
if (geoBoxBuilder_ == null) {
ensureGeoBoxIsMutable();
geoBox_.add(index, builderForValue.build());
onChanged();
} else {
geoBoxBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
public Builder addAllGeoBox(
java.lang.Iterable extends com.clarifai.grpc.api.GeoBoxedPoint> values) {
if (geoBoxBuilder_ == null) {
ensureGeoBoxIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, geoBox_);
onChanged();
} else {
geoBoxBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
public Builder clearGeoBox() {
if (geoBoxBuilder_ == null) {
geoBox_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
geoBoxBuilder_.clear();
}
return this;
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
public Builder removeGeoBox(int index) {
if (geoBoxBuilder_ == null) {
ensureGeoBoxIsMutable();
geoBox_.remove(index);
onChanged();
} else {
geoBoxBuilder_.remove(index);
}
return this;
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
public com.clarifai.grpc.api.GeoBoxedPoint.Builder getGeoBoxBuilder(
int index) {
return getGeoBoxFieldBuilder().getBuilder(index);
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
public com.clarifai.grpc.api.GeoBoxedPointOrBuilder getGeoBoxOrBuilder(
int index) {
if (geoBoxBuilder_ == null) {
return geoBox_.get(index); } else {
return geoBoxBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
public java.util.List extends com.clarifai.grpc.api.GeoBoxedPointOrBuilder>
getGeoBoxOrBuilderList() {
if (geoBoxBuilder_ != null) {
return geoBoxBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(geoBox_);
}
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
public com.clarifai.grpc.api.GeoBoxedPoint.Builder addGeoBoxBuilder() {
return getGeoBoxFieldBuilder().addBuilder(
com.clarifai.grpc.api.GeoBoxedPoint.getDefaultInstance());
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
public com.clarifai.grpc.api.GeoBoxedPoint.Builder addGeoBoxBuilder(
int index) {
return getGeoBoxFieldBuilder().addBuilder(
index, com.clarifai.grpc.api.GeoBoxedPoint.getDefaultInstance());
}
/**
*
* NOTE: inconsistency: should have been geo_boxed_points
*
*
* repeated .clarifai.api.GeoBoxedPoint geo_box = 3;
*/
public java.util.List
getGeoBoxBuilderList() {
return getGeoBoxFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.GeoBoxedPoint, com.clarifai.grpc.api.GeoBoxedPoint.Builder, com.clarifai.grpc.api.GeoBoxedPointOrBuilder>
getGeoBoxFieldBuilder() {
if (geoBoxBuilder_ == null) {
geoBoxBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.GeoBoxedPoint, com.clarifai.grpc.api.GeoBoxedPoint.Builder, com.clarifai.grpc.api.GeoBoxedPointOrBuilder>(
geoBox_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
geoBox_ = null;
}
return geoBoxBuilder_;
}
@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:clarifai.api.Geo)
}
// @@protoc_insertion_point(class_scope:clarifai.api.Geo)
private static final com.clarifai.grpc.api.Geo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.Geo();
}
public static com.clarifai.grpc.api.Geo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Geo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Geo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.clarifai.grpc.api.Geo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}