Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*
* .clarifai.api.Polygon polygon = 5;
*/
@java.lang.Override
public com.clarifai.grpc.api.PolygonOrBuilder getPolygonOrBuilder() {
return getPolygon();
}
public static final int POINT_FIELD_NUMBER = 6;
private com.clarifai.grpc.api.Point point_;
/**
*
* A landmark point location.
*
*
* .clarifai.api.Point point = 6;
* @return Whether the point field is set.
*/
@java.lang.Override
public boolean hasPoint() {
return point_ != null;
}
/**
*
* A landmark point location.
*
*
* .clarifai.api.Point point = 6;
* @return The point.
*/
@java.lang.Override
public com.clarifai.grpc.api.Point getPoint() {
return point_ == null ? com.clarifai.grpc.api.Point.getDefaultInstance() : point_;
}
/**
*
* A landmark point location.
*
*
* .clarifai.api.Point point = 6;
*/
@java.lang.Override
public com.clarifai.grpc.api.PointOrBuilder getPointOrBuilder() {
return getPoint();
}
public static final int SPAN_FIELD_NUMBER = 7;
private com.clarifai.grpc.api.Span span_;
/**
*
* Span char sequence for NLP.
*
*
* .clarifai.api.Span span = 7;
* @return Whether the span field is set.
*/
@java.lang.Override
public boolean hasSpan() {
return span_ != null;
}
/**
*
*
* .clarifai.api.Token token = 8;
*/
@java.lang.Override
public com.clarifai.grpc.api.TokenOrBuilder getTokenOrBuilder() {
return getToken();
}
public static final int KEYPOINT_LOCATIONS_FIELD_NUMBER = 9;
private java.util.List keypointLocations_;
/**
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
*
* repeated .clarifai.api.Point keypoint_locations = 9;
*/
@java.lang.Override
public int getKeypointLocationsCount() {
return keypointLocations_.size();
}
/**
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
*
* repeated .clarifai.api.Point keypoint_locations = 9;
*/
@java.lang.Override
public com.clarifai.grpc.api.PointOrBuilder getKeypointLocationsOrBuilder(
int index) {
return keypointLocations_.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 (boundingBox_ != null) {
output.writeMessage(1, getBoundingBox());
}
if (mask_ != null) {
output.writeMessage(4, getMask());
}
if (polygon_ != null) {
output.writeMessage(5, getPolygon());
}
if (point_ != null) {
output.writeMessage(6, getPoint());
}
if (span_ != null) {
output.writeMessage(7, getSpan());
}
if (token_ != null) {
output.writeMessage(8, getToken());
}
for (int i = 0; i < keypointLocations_.size(); i++) {
output.writeMessage(9, keypointLocations_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (boundingBox_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBoundingBox());
}
if (mask_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getMask());
}
if (polygon_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getPolygon());
}
if (point_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getPoint());
}
if (span_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getSpan());
}
if (token_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getToken());
}
for (int i = 0; i < keypointLocations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, keypointLocations_.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.RegionInfo)) {
return super.equals(obj);
}
com.clarifai.grpc.api.RegionInfo other = (com.clarifai.grpc.api.RegionInfo) obj;
if (hasBoundingBox() != other.hasBoundingBox()) return false;
if (hasBoundingBox()) {
if (!getBoundingBox()
.equals(other.getBoundingBox())) return false;
}
if (hasMask() != other.hasMask()) return false;
if (hasMask()) {
if (!getMask()
.equals(other.getMask())) return false;
}
if (hasPolygon() != other.hasPolygon()) return false;
if (hasPolygon()) {
if (!getPolygon()
.equals(other.getPolygon())) return false;
}
if (hasPoint() != other.hasPoint()) return false;
if (hasPoint()) {
if (!getPoint()
.equals(other.getPoint())) return false;
}
if (hasSpan() != other.hasSpan()) return false;
if (hasSpan()) {
if (!getSpan()
.equals(other.getSpan())) return false;
}
if (hasToken() != other.hasToken()) return false;
if (hasToken()) {
if (!getToken()
.equals(other.getToken())) return false;
}
if (!getKeypointLocationsList()
.equals(other.getKeypointLocationsList())) 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 (hasBoundingBox()) {
hash = (37 * hash) + BOUNDING_BOX_FIELD_NUMBER;
hash = (53 * hash) + getBoundingBox().hashCode();
}
if (hasMask()) {
hash = (37 * hash) + MASK_FIELD_NUMBER;
hash = (53 * hash) + getMask().hashCode();
}
if (hasPolygon()) {
hash = (37 * hash) + POLYGON_FIELD_NUMBER;
hash = (53 * hash) + getPolygon().hashCode();
}
if (hasPoint()) {
hash = (37 * hash) + POINT_FIELD_NUMBER;
hash = (53 * hash) + getPoint().hashCode();
}
if (hasSpan()) {
hash = (37 * hash) + SPAN_FIELD_NUMBER;
hash = (53 * hash) + getSpan().hashCode();
}
if (hasToken()) {
hash = (37 * hash) + TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getToken().hashCode();
}
if (getKeypointLocationsCount() > 0) {
hash = (37 * hash) + KEYPOINT_LOCATIONS_FIELD_NUMBER;
hash = (53 * hash) + getKeypointLocationsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.RegionInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.RegionInfo 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.RegionInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.RegionInfo 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.RegionInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.RegionInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.RegionInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.RegionInfo 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.RegionInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.RegionInfo 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.RegionInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.RegionInfo 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.RegionInfo 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;
}
/**
*
* The information of the location of the Region.
*
*
* .clarifai.api.Point point = 6;
* @return Whether the point field is set.
*/
public boolean hasPoint() {
return pointBuilder_ != null || point_ != null;
}
/**
*
* A landmark point location.
*
*
* .clarifai.api.Point point = 6;
* @return The point.
*/
public com.clarifai.grpc.api.Point getPoint() {
if (pointBuilder_ == null) {
return point_ == null ? com.clarifai.grpc.api.Point.getDefaultInstance() : point_;
} else {
return pointBuilder_.getMessage();
}
}
/**
*
* A landmark point location.
*
*
* .clarifai.api.Point point = 6;
*/
public Builder setPoint(com.clarifai.grpc.api.Point value) {
if (pointBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
point_ = value;
onChanged();
} else {
pointBuilder_.setMessage(value);
}
return this;
}
/**
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
*
* repeated .clarifai.api.Point keypoint_locations = 9;
*/
public int getKeypointLocationsCount() {
if (keypointLocationsBuilder_ == null) {
return keypointLocations_.size();
} else {
return keypointLocationsBuilder_.getCount();
}
}
/**
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
*
* repeated .clarifai.api.Point keypoint_locations = 9;
*/
public Builder setKeypointLocations(
int index, com.clarifai.grpc.api.Point value) {
if (keypointLocationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeypointLocationsIsMutable();
keypointLocations_.set(index, value);
onChanged();
} else {
keypointLocationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
*
* repeated .clarifai.api.Point keypoint_locations = 9;
*/
public Builder addKeypointLocations(com.clarifai.grpc.api.Point value) {
if (keypointLocationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeypointLocationsIsMutable();
keypointLocations_.add(value);
onChanged();
} else {
keypointLocationsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
*
* repeated .clarifai.api.Point keypoint_locations = 9;
*/
public Builder addKeypointLocations(
int index, com.clarifai.grpc.api.Point value) {
if (keypointLocationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeypointLocationsIsMutable();
keypointLocations_.add(index, value);
onChanged();
} else {
keypointLocationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
*
* repeated .clarifai.api.Point keypoint_locations = 9;
*/
public com.clarifai.grpc.api.Point.Builder getKeypointLocationsBuilder(
int index) {
return getKeypointLocationsFieldBuilder().getBuilder(index);
}
/**
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
*
* repeated .clarifai.api.Point keypoint_locations = 9;
*/
public com.clarifai.grpc.api.PointOrBuilder getKeypointLocationsOrBuilder(
int index) {
if (keypointLocationsBuilder_ == null) {
return keypointLocations_.get(index); } else {
return keypointLocationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
* The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations.
* These will be in the same order as the respective keypoint_names inside the concept.
*
*
* repeated .clarifai.api.Point keypoint_locations = 9;
*/
public java.util.List
getKeypointLocationsBuilderList() {
return getKeypointLocationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.Point, com.clarifai.grpc.api.Point.Builder, com.clarifai.grpc.api.PointOrBuilder>
getKeypointLocationsFieldBuilder() {
if (keypointLocationsBuilder_ == null) {
keypointLocationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.clarifai.grpc.api.Point, com.clarifai.grpc.api.Point.Builder, com.clarifai.grpc.api.PointOrBuilder>(
keypointLocations_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
keypointLocations_ = null;
}
return keypointLocationsBuilder_;
}
@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.RegionInfo)
}
// @@protoc_insertion_point(class_scope:clarifai.api.RegionInfo)
private static final com.clarifai.grpc.api.RegionInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.RegionInfo();
}
public static com.clarifai.grpc.api.RegionInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RegionInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RegionInfo(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.RegionInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}