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.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/clarifai/api/service.proto
package com.clarifai.grpc.api;
/**
*
* PostModelsRequest
*
*
* Protobuf type {@code clarifai.api.PostModelsRequest}
*/
public final class PostModelsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.PostModelsRequest)
PostModelsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use PostModelsRequest.newBuilder() to construct.
private PostModelsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PostModelsRequest() {
models_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PostModelsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PostModelsRequest(
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.UserAppIDSet.Builder subBuilder = null;
if (userAppId_ != null) {
subBuilder = userAppId_.toBuilder();
}
userAppId_ = input.readMessage(com.clarifai.grpc.api.UserAppIDSet.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(userAppId_);
userAppId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.clarifai.grpc.api.Model.Builder subBuilder = null;
if (model_ != null) {
subBuilder = model_.toBuilder();
}
model_ = input.readMessage(com.clarifai.grpc.api.Model.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(model_);
model_ = subBuilder.buildPartial();
}
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
models_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
models_.add(
input.readMessage(com.clarifai.grpc.api.Model.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)) {
models_ = java.util.Collections.unmodifiableList(models_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostModelsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_PostModelsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.PostModelsRequest.class, com.clarifai.grpc.api.PostModelsRequest.Builder.class);
}
public static final int USER_APP_ID_FIELD_NUMBER = 1;
private com.clarifai.grpc.api.UserAppIDSet userAppId_;
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
* @return Whether the userAppId field is set.
*/
@java.lang.Override
public boolean hasUserAppId() {
return userAppId_ != null;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
* @return The userAppId.
*/
@java.lang.Override
public com.clarifai.grpc.api.UserAppIDSet getUserAppId() {
return userAppId_ == null ? com.clarifai.grpc.api.UserAppIDSet.getDefaultInstance() : userAppId_;
}
/**
* .clarifai.api.UserAppIDSet user_app_id = 1;
*/
@java.lang.Override
public com.clarifai.grpc.api.UserAppIDSetOrBuilder getUserAppIdOrBuilder() {
return getUserAppId();
}
public static final int MODEL_FIELD_NUMBER = 2;
private com.clarifai.grpc.api.Model model_;
/**
*
* NOTE: inconsistent since "model" is not plural, please use "models" below.
* Previously you could only create one model at a time.
* We still support this but you should pass it as models=[model] so
* that this endpoint is consistent with the rest of our API.
*
*
* .clarifai.api.Model model = 2 [deprecated = true];
* @deprecated clarifai.api.PostModelsRequest.model is deprecated.
* See proto/clarifai/api/service.proto;l=5135
* @return Whether the model field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasModel() {
return model_ != null;
}
/**
*
* NOTE: inconsistent since "model" is not plural, please use "models" below.
* Previously you could only create one model at a time.
* We still support this but you should pass it as models=[model] so
* that this endpoint is consistent with the rest of our API.
*
*
* .clarifai.api.Model model = 2 [deprecated = true];
* @deprecated clarifai.api.PostModelsRequest.model is deprecated.
* See proto/clarifai/api/service.proto;l=5135
* @return The model.
*/
@java.lang.Override
@java.lang.Deprecated public com.clarifai.grpc.api.Model getModel() {
return model_ == null ? com.clarifai.grpc.api.Model.getDefaultInstance() : model_;
}
/**
*
* NOTE: inconsistent since "model" is not plural, please use "models" below.
* Previously you could only create one model at a time.
* We still support this but you should pass it as models=[model] so
* that this endpoint is consistent with the rest of our API.
*
*
* .clarifai.api.Model model = 2 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.clarifai.grpc.api.ModelOrBuilder getModelOrBuilder() {
return getModel();
}
public static final int MODELS_FIELD_NUMBER = 3;
private java.util.List models_;
/**
*
* This allows you to create one or more model by posting it to the API.
*
* NOTE: inconsistent since "model" is not plural, please use "models" below.
* Previously you could only create one model at a time.
* We still support this but you should pass it as models=[model] so
* that this endpoint is consistent with the rest of our API.
*
*
* .clarifai.api.Model model = 2 [deprecated = true];
* @deprecated clarifai.api.PostModelsRequest.model is deprecated.
* See proto/clarifai/api/service.proto;l=5135
* @return Whether the model field is set.
*/
@java.lang.Deprecated public boolean hasModel() {
return modelBuilder_ != null || model_ != null;
}
/**
*
* NOTE: inconsistent since "model" is not plural, please use "models" below.
* Previously you could only create one model at a time.
* We still support this but you should pass it as models=[model] so
* that this endpoint is consistent with the rest of our API.
*
*
* .clarifai.api.Model model = 2 [deprecated = true];
* @deprecated clarifai.api.PostModelsRequest.model is deprecated.
* See proto/clarifai/api/service.proto;l=5135
* @return The model.
*/
@java.lang.Deprecated public com.clarifai.grpc.api.Model getModel() {
if (modelBuilder_ == null) {
return model_ == null ? com.clarifai.grpc.api.Model.getDefaultInstance() : model_;
} else {
return modelBuilder_.getMessage();
}
}
/**
*
* NOTE: inconsistent since "model" is not plural, please use "models" below.
* Previously you could only create one model at a time.
* We still support this but you should pass it as models=[model] so
* that this endpoint is consistent with the rest of our API.
*
*
* .clarifai.api.Model model = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder setModel(com.clarifai.grpc.api.Model value) {
if (modelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
model_ = value;
onChanged();
} else {
modelBuilder_.setMessage(value);
}
return this;
}
/**
*
* NOTE: inconsistent since "model" is not plural, please use "models" below.
* Previously you could only create one model at a time.
* We still support this but you should pass it as models=[model] so
* that this endpoint is consistent with the rest of our API.
*
* NOTE: inconsistent since "model" is not plural, please use "models" below.
* Previously you could only create one model at a time.
* We still support this but you should pass it as models=[model] so
* that this endpoint is consistent with the rest of our API.
*
* NOTE: inconsistent since "model" is not plural, please use "models" below.
* Previously you could only create one model at a time.
* We still support this but you should pass it as models=[model] so
* that this endpoint is consistent with the rest of our API.
*
* NOTE: inconsistent since "model" is not plural, please use "models" below.
* Previously you could only create one model at a time.
* We still support this but you should pass it as models=[model] so
* that this endpoint is consistent with the rest of our API.
*
* NOTE: inconsistent since "model" is not plural, please use "models" below.
* Previously you could only create one model at a time.
* We still support this but you should pass it as models=[model] so
* that this endpoint is consistent with the rest of our API.
*
* NOTE: inconsistent since "model" is not plural, please use "models" below.
* Previously you could only create one model at a time.
* We still support this but you should pass it as models=[model] so
* that this endpoint is consistent with the rest of our API.
*