All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
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.
com.github.tjake.jlama.net.GenerateRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: JlamaService.proto
package com.github.tjake.jlama.net;
/**
* Protobuf type {@code com.github.tjake.jlama.net.GenerateRequest}
*/
public final class GenerateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.github.tjake.jlama.net.GenerateRequest)
GenerateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GenerateRequest.newBuilder() to construct.
private GenerateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GenerateRequest() {
workerid_ = com.google.protobuf.ByteString.EMPTY;
session_ = com.google.protobuf.ByteString.EMPTY;
tensor_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GenerateRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GenerateRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
workerid_ = input.readBytes();
break;
}
case 18: {
session_ = input.readBytes();
break;
}
case 26: {
tensor_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.tjake.jlama.net.JlamaServiceOuterClass.internal_static_com_github_tjake_jlama_net_GenerateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.tjake.jlama.net.JlamaServiceOuterClass.internal_static_com_github_tjake_jlama_net_GenerateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.tjake.jlama.net.GenerateRequest.class, com.github.tjake.jlama.net.GenerateRequest.Builder.class);
}
public static final int WORKERID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString workerid_;
/**
* bytes workerid = 1;
* @return The workerid.
*/
@java.lang.Override
public com.google.protobuf.ByteString getWorkerid() {
return workerid_;
}
public static final int SESSION_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString session_;
/**
* bytes session = 2;
* @return The session.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSession() {
return session_;
}
public static final int TENSOR_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString tensor_;
/**
* bytes tensor = 3;
* @return The tensor.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTensor() {
return tensor_;
}
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 (!workerid_.isEmpty()) {
output.writeBytes(1, workerid_);
}
if (!session_.isEmpty()) {
output.writeBytes(2, session_);
}
if (!tensor_.isEmpty()) {
output.writeBytes(3, tensor_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!workerid_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, workerid_);
}
if (!session_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, session_);
}
if (!tensor_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, tensor_);
}
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.github.tjake.jlama.net.GenerateRequest)) {
return super.equals(obj);
}
com.github.tjake.jlama.net.GenerateRequest other = (com.github.tjake.jlama.net.GenerateRequest) obj;
if (!getWorkerid()
.equals(other.getWorkerid())) return false;
if (!getSession()
.equals(other.getSession())) return false;
if (!getTensor()
.equals(other.getTensor())) 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();
hash = (37 * hash) + WORKERID_FIELD_NUMBER;
hash = (53 * hash) + getWorkerid().hashCode();
hash = (37 * hash) + SESSION_FIELD_NUMBER;
hash = (53 * hash) + getSession().hashCode();
hash = (37 * hash) + TENSOR_FIELD_NUMBER;
hash = (53 * hash) + getTensor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.github.tjake.jlama.net.GenerateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.tjake.jlama.net.GenerateRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.tjake.jlama.net.GenerateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.tjake.jlama.net.GenerateRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.tjake.jlama.net.GenerateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.tjake.jlama.net.GenerateRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.tjake.jlama.net.GenerateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.tjake.jlama.net.GenerateRequest 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.github.tjake.jlama.net.GenerateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.github.tjake.jlama.net.GenerateRequest 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.github.tjake.jlama.net.GenerateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.tjake.jlama.net.GenerateRequest 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.github.tjake.jlama.net.GenerateRequest 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;
}
/**
* Protobuf type {@code com.github.tjake.jlama.net.GenerateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.github.tjake.jlama.net.GenerateRequest)
com.github.tjake.jlama.net.GenerateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.tjake.jlama.net.JlamaServiceOuterClass.internal_static_com_github_tjake_jlama_net_GenerateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.tjake.jlama.net.JlamaServiceOuterClass.internal_static_com_github_tjake_jlama_net_GenerateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.tjake.jlama.net.GenerateRequest.class, com.github.tjake.jlama.net.GenerateRequest.Builder.class);
}
// Construct using com.github.tjake.jlama.net.GenerateRequest.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();
workerid_ = com.google.protobuf.ByteString.EMPTY;
session_ = com.google.protobuf.ByteString.EMPTY;
tensor_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.github.tjake.jlama.net.JlamaServiceOuterClass.internal_static_com_github_tjake_jlama_net_GenerateRequest_descriptor;
}
@java.lang.Override
public com.github.tjake.jlama.net.GenerateRequest getDefaultInstanceForType() {
return com.github.tjake.jlama.net.GenerateRequest.getDefaultInstance();
}
@java.lang.Override
public com.github.tjake.jlama.net.GenerateRequest build() {
com.github.tjake.jlama.net.GenerateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.github.tjake.jlama.net.GenerateRequest buildPartial() {
com.github.tjake.jlama.net.GenerateRequest result = new com.github.tjake.jlama.net.GenerateRequest(this);
result.workerid_ = workerid_;
result.session_ = session_;
result.tensor_ = tensor_;
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.github.tjake.jlama.net.GenerateRequest) {
return mergeFrom((com.github.tjake.jlama.net.GenerateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.github.tjake.jlama.net.GenerateRequest other) {
if (other == com.github.tjake.jlama.net.GenerateRequest.getDefaultInstance()) return this;
if (other.getWorkerid() != com.google.protobuf.ByteString.EMPTY) {
setWorkerid(other.getWorkerid());
}
if (other.getSession() != com.google.protobuf.ByteString.EMPTY) {
setSession(other.getSession());
}
if (other.getTensor() != com.google.protobuf.ByteString.EMPTY) {
setTensor(other.getTensor());
}
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.github.tjake.jlama.net.GenerateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.github.tjake.jlama.net.GenerateRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString workerid_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes workerid = 1;
* @return The workerid.
*/
@java.lang.Override
public com.google.protobuf.ByteString getWorkerid() {
return workerid_;
}
/**
* bytes workerid = 1;
* @param value The workerid to set.
* @return This builder for chaining.
*/
public Builder setWorkerid(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
workerid_ = value;
onChanged();
return this;
}
/**
* bytes workerid = 1;
* @return This builder for chaining.
*/
public Builder clearWorkerid() {
workerid_ = getDefaultInstance().getWorkerid();
onChanged();
return this;
}
private com.google.protobuf.ByteString session_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes session = 2;
* @return The session.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSession() {
return session_;
}
/**
* bytes session = 2;
* @param value The session to set.
* @return This builder for chaining.
*/
public Builder setSession(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
session_ = value;
onChanged();
return this;
}
/**
* bytes session = 2;
* @return This builder for chaining.
*/
public Builder clearSession() {
session_ = getDefaultInstance().getSession();
onChanged();
return this;
}
private com.google.protobuf.ByteString tensor_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes tensor = 3;
* @return The tensor.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTensor() {
return tensor_;
}
/**
* bytes tensor = 3;
* @param value The tensor to set.
* @return This builder for chaining.
*/
public Builder setTensor(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
tensor_ = value;
onChanged();
return this;
}
/**
* bytes tensor = 3;
* @return This builder for chaining.
*/
public Builder clearTensor() {
tensor_ = getDefaultInstance().getTensor();
onChanged();
return this;
}
@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:com.github.tjake.jlama.net.GenerateRequest)
}
// @@protoc_insertion_point(class_scope:com.github.tjake.jlama.net.GenerateRequest)
private static final com.github.tjake.jlama.net.GenerateRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.github.tjake.jlama.net.GenerateRequest();
}
public static com.github.tjake.jlama.net.GenerateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GenerateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GenerateRequest(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.github.tjake.jlama.net.GenerateRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}