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.
*
* string model_version_id = 3;
* @return The bytes for modelVersionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getModelVersionIdBytes() {
java.lang.Object ref = modelVersionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
modelVersionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAGE_FIELD_NUMBER = 4;
private int page_;
/**
*
* Optional, defaults to 1.
*
*
* uint32 page = 4;
* @return The page.
*/
@java.lang.Override
public int getPage() {
return page_;
}
public static final int PER_PAGE_FIELD_NUMBER = 5;
private int perPage_;
/**
*
* Optional, defaults to 128 references per page.
*
*
* uint32 per_page = 5;
* @return The perPage.
*/
@java.lang.Override
public int getPerPage() {
return perPage_;
}
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 (userAppId_ != null) {
output.writeMessage(1, getUserAppId());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, modelId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, modelVersionId_);
}
if (page_ != 0) {
output.writeUInt32(4, page_);
}
if (perPage_ != 0) {
output.writeUInt32(5, perPage_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (userAppId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getUserAppId());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, modelId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, modelVersionId_);
}
if (page_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, page_);
}
if (perPage_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, perPage_);
}
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.ListModelVersionInputExamplesRequest)) {
return super.equals(obj);
}
com.clarifai.grpc.api.ListModelVersionInputExamplesRequest other = (com.clarifai.grpc.api.ListModelVersionInputExamplesRequest) obj;
if (hasUserAppId() != other.hasUserAppId()) return false;
if (hasUserAppId()) {
if (!getUserAppId()
.equals(other.getUserAppId())) return false;
}
if (!getModelId()
.equals(other.getModelId())) return false;
if (!getModelVersionId()
.equals(other.getModelVersionId())) return false;
if (getPage()
!= other.getPage()) return false;
if (getPerPage()
!= other.getPerPage()) 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 (hasUserAppId()) {
hash = (37 * hash) + USER_APP_ID_FIELD_NUMBER;
hash = (53 * hash) + getUserAppId().hashCode();
}
hash = (37 * hash) + MODEL_ID_FIELD_NUMBER;
hash = (53 * hash) + getModelId().hashCode();
hash = (37 * hash) + MODEL_VERSION_ID_FIELD_NUMBER;
hash = (53 * hash) + getModelVersionId().hashCode();
hash = (37 * hash) + PAGE_FIELD_NUMBER;
hash = (53 * hash) + getPage();
hash = (37 * hash) + PER_PAGE_FIELD_NUMBER;
hash = (53 * hash) + getPerPage();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.ListModelVersionInputExamplesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.ListModelVersionInputExamplesRequest 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.ListModelVersionInputExamplesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.ListModelVersionInputExamplesRequest 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.ListModelVersionInputExamplesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.ListModelVersionInputExamplesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.ListModelVersionInputExamplesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.ListModelVersionInputExamplesRequest 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.ListModelVersionInputExamplesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.ListModelVersionInputExamplesRequest 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.ListModelVersionInputExamplesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.ListModelVersionInputExamplesRequest 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.ListModelVersionInputExamplesRequest 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;
}
/**
*
* ListModelVersionInputExamplesRequest
*
*
* Protobuf type {@code clarifai.api.ListModelVersionInputExamplesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.ListModelVersionInputExamplesRequest)
com.clarifai.grpc.api.ListModelVersionInputExamplesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_ListModelVersionInputExamplesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_ListModelVersionInputExamplesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.ListModelVersionInputExamplesRequest.class, com.clarifai.grpc.api.ListModelVersionInputExamplesRequest.Builder.class);
}
// Construct using com.clarifai.grpc.api.ListModelVersionInputExamplesRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (userAppIdBuilder_ == null) {
userAppId_ = null;
} else {
userAppId_ = null;
userAppIdBuilder_ = null;
}
modelId_ = "";
modelVersionId_ = "";
page_ = 0;
perPage_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_ListModelVersionInputExamplesRequest_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.ListModelVersionInputExamplesRequest getDefaultInstanceForType() {
return com.clarifai.grpc.api.ListModelVersionInputExamplesRequest.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.ListModelVersionInputExamplesRequest build() {
com.clarifai.grpc.api.ListModelVersionInputExamplesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.ListModelVersionInputExamplesRequest buildPartial() {
com.clarifai.grpc.api.ListModelVersionInputExamplesRequest result = new com.clarifai.grpc.api.ListModelVersionInputExamplesRequest(this);
if (userAppIdBuilder_ == null) {
result.userAppId_ = userAppId_;
} else {
result.userAppId_ = userAppIdBuilder_.build();
}
result.modelId_ = modelId_;
result.modelVersionId_ = modelVersionId_;
result.page_ = page_;
result.perPage_ = perPage_;
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.ListModelVersionInputExamplesRequest) {
return mergeFrom((com.clarifai.grpc.api.ListModelVersionInputExamplesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.ListModelVersionInputExamplesRequest other) {
if (other == com.clarifai.grpc.api.ListModelVersionInputExamplesRequest.getDefaultInstance()) return this;
if (other.hasUserAppId()) {
mergeUserAppId(other.getUserAppId());
}
if (!other.getModelId().isEmpty()) {
modelId_ = other.modelId_;
onChanged();
}
if (!other.getModelVersionId().isEmpty()) {
modelVersionId_ = other.modelVersionId_;
onChanged();
}
if (other.getPage() != 0) {
setPage(other.getPage());
}
if (other.getPerPage() != 0) {
setPerPage(other.getPerPage());
}
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.ListModelVersionInputExamplesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.ListModelVersionInputExamplesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.clarifai.grpc.api.UserAppIDSet userAppId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.UserAppIDSet, com.clarifai.grpc.api.UserAppIDSet.Builder, com.clarifai.grpc.api.UserAppIDSetOrBuilder> userAppIdBuilder_;
/**
*
* authorization field (contains app/user id info)
*
*
* .clarifai.api.UserAppIDSet user_app_id = 1;
* @return Whether the userAppId field is set.
*/
public boolean hasUserAppId() {
return userAppIdBuilder_ != null || userAppId_ != null;
}
/**
*
* authorization field (contains app/user id info)
*