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;
/**
*
* GetAppRequest
*
*
* Protobuf type {@code clarifai.api.GetAppRequest}
*/
public final class GetAppRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.GetAppRequest)
GetAppRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetAppRequest.newBuilder() to construct.
private GetAppRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetAppRequest() {
additionalFields_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetAppRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetAppRequest(
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: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
additionalFields_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
additionalFields_.add(s);
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)) {
additionalFields_ = additionalFields_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_GetAppRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Service.internal_static_clarifai_api_GetAppRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.GetAppRequest.class, com.clarifai.grpc.api.GetAppRequest.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 ADDITIONAL_FIELDS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList additionalFields_;
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, counts
*
*
* repeated string additional_fields = 2;
* @return A list containing the additionalFields.
*/
public com.google.protobuf.ProtocolStringList
getAdditionalFieldsList() {
return additionalFields_;
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, counts
*
*
* repeated string additional_fields = 2;
* @return The count of additionalFields.
*/
public int getAdditionalFieldsCount() {
return additionalFields_.size();
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, counts
*
*
* repeated string additional_fields = 2;
* @param index The index of the element to return.
* @return The additionalFields at the given index.
*/
public java.lang.String getAdditionalFields(int index) {
return additionalFields_.get(index);
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, counts
*
*
* repeated string additional_fields = 2;
* @param index The index of the value to return.
* @return The bytes of the additionalFields at the given index.
*/
public com.google.protobuf.ByteString
getAdditionalFieldsBytes(int index) {
return additionalFields_.getByteString(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 (userAppId_ != null) {
output.writeMessage(1, getUserAppId());
}
for (int i = 0; i < additionalFields_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, additionalFields_.getRaw(i));
}
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());
}
{
int dataSize = 0;
for (int i = 0; i < additionalFields_.size(); i++) {
dataSize += computeStringSizeNoTag(additionalFields_.getRaw(i));
}
size += dataSize;
size += 1 * getAdditionalFieldsList().size();
}
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.GetAppRequest)) {
return super.equals(obj);
}
com.clarifai.grpc.api.GetAppRequest other = (com.clarifai.grpc.api.GetAppRequest) obj;
if (hasUserAppId() != other.hasUserAppId()) return false;
if (hasUserAppId()) {
if (!getUserAppId()
.equals(other.getUserAppId())) return false;
}
if (!getAdditionalFieldsList()
.equals(other.getAdditionalFieldsList())) 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();
}
if (getAdditionalFieldsCount() > 0) {
hash = (37 * hash) + ADDITIONAL_FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getAdditionalFieldsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.GetAppRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.GetAppRequest 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.GetAppRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.GetAppRequest 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.GetAppRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.GetAppRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.GetAppRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.GetAppRequest 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.GetAppRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.GetAppRequest 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.GetAppRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.GetAppRequest 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.GetAppRequest 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;
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, counts
*
*
* repeated string additional_fields = 2;
* @return A list containing the additionalFields.
*/
public com.google.protobuf.ProtocolStringList
getAdditionalFieldsList() {
return additionalFields_.getUnmodifiableView();
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, counts
*
*
* repeated string additional_fields = 2;
* @return The count of additionalFields.
*/
public int getAdditionalFieldsCount() {
return additionalFields_.size();
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, counts
*
*
* repeated string additional_fields = 2;
* @param index The index of the element to return.
* @return The additionalFields at the given index.
*/
public java.lang.String getAdditionalFields(int index) {
return additionalFields_.get(index);
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, counts
*
*
* repeated string additional_fields = 2;
* @param index The index of the value to return.
* @return The bytes of the additionalFields at the given index.
*/
public com.google.protobuf.ByteString
getAdditionalFieldsBytes(int index) {
return additionalFields_.getByteString(index);
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, counts
*
*
* repeated string additional_fields = 2;
* @param index The index to set the value at.
* @param value The additionalFields to set.
* @return This builder for chaining.
*/
public Builder setAdditionalFields(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalFieldsIsMutable();
additionalFields_.set(index, value);
onChanged();
return this;
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, counts
*
*
* repeated string additional_fields = 2;
* @param value The additionalFields to add.
* @return This builder for chaining.
*/
public Builder addAdditionalFields(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionalFieldsIsMutable();
additionalFields_.add(value);
onChanged();
return this;
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, counts
*
*
* repeated string additional_fields = 2;
* @param values The additionalFields to add.
* @return This builder for chaining.
*/
public Builder addAllAdditionalFields(
java.lang.Iterable values) {
ensureAdditionalFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, additionalFields_);
onChanged();
return this;
}
/**
*
* (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, counts
*