WindChat/windchat-protobuf/src/main/java/com/akaxin/proto/site/ApiFileDownloadProto.java

1278 lines
46 KiB
Java
Executable File

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: site/api_file_download.proto
package com.akaxin.proto.site;
public final class ApiFileDownloadProto {
private ApiFileDownloadProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface ApiFileDownloadRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:site.ApiFileDownloadRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*下载资源标识ID
* </pre>
*
* <code>string file_id = 1;</code>
*/
java.lang.String getFileId();
/**
* <pre>
*下载资源标识ID
* </pre>
*
* <code>string file_id = 1;</code>
*/
com.google.protobuf.ByteString
getFileIdBytes();
}
/**
* Protobuf type {@code site.ApiFileDownloadRequest}
*/
public static final class ApiFileDownloadRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:site.ApiFileDownloadRequest)
ApiFileDownloadRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApiFileDownloadRequest.newBuilder() to construct.
private ApiFileDownloadRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ApiFileDownloadRequest() {
fileId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ApiFileDownloadRequest(
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;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
fileId_ = s;
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.akaxin.proto.site.ApiFileDownloadProto.internal_static_site_ApiFileDownloadRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.site.ApiFileDownloadProto.internal_static_site_ApiFileDownloadRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest.class, com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest.Builder.class);
}
public static final int FILE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object fileId_;
/**
* <pre>
*下载资源标识ID
* </pre>
*
* <code>string file_id = 1;</code>
*/
public java.lang.String getFileId() {
java.lang.Object ref = fileId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fileId_ = s;
return s;
}
}
/**
* <pre>
*下载资源标识ID
* </pre>
*
* <code>string file_id = 1;</code>
*/
public com.google.protobuf.ByteString
getFileIdBytes() {
java.lang.Object ref = fileId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fileId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getFileIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fileId_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getFileIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fileId_);
}
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.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest)) {
return super.equals(obj);
}
com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest other = (com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest) obj;
boolean result = true;
result = result && getFileId()
.equals(other.getFileId());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FILE_ID_FIELD_NUMBER;
hash = (53 * hash) + getFileId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest 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.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest 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.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 site.ApiFileDownloadRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:site.ApiFileDownloadRequest)
com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.akaxin.proto.site.ApiFileDownloadProto.internal_static_site_ApiFileDownloadRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.site.ApiFileDownloadProto.internal_static_site_ApiFileDownloadRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest.class, com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest.Builder.class);
}
// Construct using com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
fileId_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.akaxin.proto.site.ApiFileDownloadProto.internal_static_site_ApiFileDownloadRequest_descriptor;
}
public com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest getDefaultInstanceForType() {
return com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest.getDefaultInstance();
}
public com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest build() {
com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest buildPartial() {
com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest result = new com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest(this);
result.fileId_ = fileId_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest) {
return mergeFrom((com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest other) {
if (other == com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest.getDefaultInstance()) return this;
if (!other.getFileId().isEmpty()) {
fileId_ = other.fileId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object fileId_ = "";
/**
* <pre>
*下载资源标识ID
* </pre>
*
* <code>string file_id = 1;</code>
*/
public java.lang.String getFileId() {
java.lang.Object ref = fileId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fileId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*下载资源标识ID
* </pre>
*
* <code>string file_id = 1;</code>
*/
public com.google.protobuf.ByteString
getFileIdBytes() {
java.lang.Object ref = fileId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fileId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*下载资源标识ID
* </pre>
*
* <code>string file_id = 1;</code>
*/
public Builder setFileId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fileId_ = value;
onChanged();
return this;
}
/**
* <pre>
*下载资源标识ID
* </pre>
*
* <code>string file_id = 1;</code>
*/
public Builder clearFileId() {
fileId_ = getDefaultInstance().getFileId();
onChanged();
return this;
}
/**
* <pre>
*下载资源标识ID
* </pre>
*
* <code>string file_id = 1;</code>
*/
public Builder setFileIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fileId_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:site.ApiFileDownloadRequest)
}
// @@protoc_insertion_point(class_scope:site.ApiFileDownloadRequest)
private static final com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest();
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ApiFileDownloadRequest>
PARSER = new com.google.protobuf.AbstractParser<ApiFileDownloadRequest>() {
public ApiFileDownloadRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ApiFileDownloadRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ApiFileDownloadRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ApiFileDownloadRequest> getParserForType() {
return PARSER;
}
public com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ApiFileDownloadResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:site.ApiFileDownloadResponse)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*通过资源标示ID下载的资源文件
* </pre>
*
* <code>.core.File file = 1;</code>
*/
boolean hasFile();
/**
* <pre>
*通过资源标示ID下载的资源文件
* </pre>
*
* <code>.core.File file = 1;</code>
*/
com.akaxin.proto.core.FileProto.File getFile();
/**
* <pre>
*通过资源标示ID下载的资源文件
* </pre>
*
* <code>.core.File file = 1;</code>
*/
com.akaxin.proto.core.FileProto.FileOrBuilder getFileOrBuilder();
}
/**
* Protobuf type {@code site.ApiFileDownloadResponse}
*/
public static final class ApiFileDownloadResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:site.ApiFileDownloadResponse)
ApiFileDownloadResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApiFileDownloadResponse.newBuilder() to construct.
private ApiFileDownloadResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ApiFileDownloadResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ApiFileDownloadResponse(
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;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.akaxin.proto.core.FileProto.File.Builder subBuilder = null;
if (file_ != null) {
subBuilder = file_.toBuilder();
}
file_ = input.readMessage(com.akaxin.proto.core.FileProto.File.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(file_);
file_ = subBuilder.buildPartial();
}
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.akaxin.proto.site.ApiFileDownloadProto.internal_static_site_ApiFileDownloadResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.site.ApiFileDownloadProto.internal_static_site_ApiFileDownloadResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse.class, com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse.Builder.class);
}
public static final int FILE_FIELD_NUMBER = 1;
private com.akaxin.proto.core.FileProto.File file_;
/**
* <pre>
*通过资源标示ID下载的资源文件
* </pre>
*
* <code>.core.File file = 1;</code>
*/
public boolean hasFile() {
return file_ != null;
}
/**
* <pre>
*通过资源标示ID下载的资源文件
* </pre>
*
* <code>.core.File file = 1;</code>
*/
public com.akaxin.proto.core.FileProto.File getFile() {
return file_ == null ? com.akaxin.proto.core.FileProto.File.getDefaultInstance() : file_;
}
/**
* <pre>
*通过资源标示ID下载的资源文件
* </pre>
*
* <code>.core.File file = 1;</code>
*/
public com.akaxin.proto.core.FileProto.FileOrBuilder getFileOrBuilder() {
return getFile();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (file_ != null) {
output.writeMessage(1, getFile());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (file_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getFile());
}
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.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse)) {
return super.equals(obj);
}
com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse other = (com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse) obj;
boolean result = true;
result = result && (hasFile() == other.hasFile());
if (hasFile()) {
result = result && getFile()
.equals(other.getFile());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasFile()) {
hash = (37 * hash) + FILE_FIELD_NUMBER;
hash = (53 * hash) + getFile().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse 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.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse 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.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 site.ApiFileDownloadResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:site.ApiFileDownloadResponse)
com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.akaxin.proto.site.ApiFileDownloadProto.internal_static_site_ApiFileDownloadResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.site.ApiFileDownloadProto.internal_static_site_ApiFileDownloadResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse.class, com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse.Builder.class);
}
// Construct using com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (fileBuilder_ == null) {
file_ = null;
} else {
file_ = null;
fileBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.akaxin.proto.site.ApiFileDownloadProto.internal_static_site_ApiFileDownloadResponse_descriptor;
}
public com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse getDefaultInstanceForType() {
return com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse.getDefaultInstance();
}
public com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse build() {
com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse buildPartial() {
com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse result = new com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse(this);
if (fileBuilder_ == null) {
result.file_ = file_;
} else {
result.file_ = fileBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse) {
return mergeFrom((com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse other) {
if (other == com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse.getDefaultInstance()) return this;
if (other.hasFile()) {
mergeFile(other.getFile());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.akaxin.proto.core.FileProto.File file_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.akaxin.proto.core.FileProto.File, com.akaxin.proto.core.FileProto.File.Builder, com.akaxin.proto.core.FileProto.FileOrBuilder> fileBuilder_;
/**
* <pre>
*通过资源标示ID下载的资源文件
* </pre>
*
* <code>.core.File file = 1;</code>
*/
public boolean hasFile() {
return fileBuilder_ != null || file_ != null;
}
/**
* <pre>
*通过资源标示ID下载的资源文件
* </pre>
*
* <code>.core.File file = 1;</code>
*/
public com.akaxin.proto.core.FileProto.File getFile() {
if (fileBuilder_ == null) {
return file_ == null ? com.akaxin.proto.core.FileProto.File.getDefaultInstance() : file_;
} else {
return fileBuilder_.getMessage();
}
}
/**
* <pre>
*通过资源标示ID下载的资源文件
* </pre>
*
* <code>.core.File file = 1;</code>
*/
public Builder setFile(com.akaxin.proto.core.FileProto.File value) {
if (fileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
file_ = value;
onChanged();
} else {
fileBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
*通过资源标示ID下载的资源文件
* </pre>
*
* <code>.core.File file = 1;</code>
*/
public Builder setFile(
com.akaxin.proto.core.FileProto.File.Builder builderForValue) {
if (fileBuilder_ == null) {
file_ = builderForValue.build();
onChanged();
} else {
fileBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*通过资源标示ID下载的资源文件
* </pre>
*
* <code>.core.File file = 1;</code>
*/
public Builder mergeFile(com.akaxin.proto.core.FileProto.File value) {
if (fileBuilder_ == null) {
if (file_ != null) {
file_ =
com.akaxin.proto.core.FileProto.File.newBuilder(file_).mergeFrom(value).buildPartial();
} else {
file_ = value;
}
onChanged();
} else {
fileBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
*通过资源标示ID下载的资源文件
* </pre>
*
* <code>.core.File file = 1;</code>
*/
public Builder clearFile() {
if (fileBuilder_ == null) {
file_ = null;
onChanged();
} else {
file_ = null;
fileBuilder_ = null;
}
return this;
}
/**
* <pre>
*通过资源标示ID下载的资源文件
* </pre>
*
* <code>.core.File file = 1;</code>
*/
public com.akaxin.proto.core.FileProto.File.Builder getFileBuilder() {
onChanged();
return getFileFieldBuilder().getBuilder();
}
/**
* <pre>
*通过资源标示ID下载的资源文件
* </pre>
*
* <code>.core.File file = 1;</code>
*/
public com.akaxin.proto.core.FileProto.FileOrBuilder getFileOrBuilder() {
if (fileBuilder_ != null) {
return fileBuilder_.getMessageOrBuilder();
} else {
return file_ == null ?
com.akaxin.proto.core.FileProto.File.getDefaultInstance() : file_;
}
}
/**
* <pre>
*通过资源标示ID下载的资源文件
* </pre>
*
* <code>.core.File file = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.akaxin.proto.core.FileProto.File, com.akaxin.proto.core.FileProto.File.Builder, com.akaxin.proto.core.FileProto.FileOrBuilder>
getFileFieldBuilder() {
if (fileBuilder_ == null) {
fileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.akaxin.proto.core.FileProto.File, com.akaxin.proto.core.FileProto.File.Builder, com.akaxin.proto.core.FileProto.FileOrBuilder>(
getFile(),
getParentForChildren(),
isClean());
file_ = null;
}
return fileBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:site.ApiFileDownloadResponse)
}
// @@protoc_insertion_point(class_scope:site.ApiFileDownloadResponse)
private static final com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse();
}
public static com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ApiFileDownloadResponse>
PARSER = new com.google.protobuf.AbstractParser<ApiFileDownloadResponse>() {
public ApiFileDownloadResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ApiFileDownloadResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ApiFileDownloadResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ApiFileDownloadResponse> getParserForType() {
return PARSER;
}
public com.akaxin.proto.site.ApiFileDownloadProto.ApiFileDownloadResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_site_ApiFileDownloadRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_site_ApiFileDownloadRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_site_ApiFileDownloadResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_site_ApiFileDownloadResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\034site/api_file_download.proto\022\004site\032\017co" +
"re/file.proto\")\n\026ApiFileDownloadRequest\022" +
"\017\n\007file_id\030\001 \001(\t\"3\n\027ApiFileDownloadRespo" +
"nse\022\030\n\004file\030\001 \001(\0132\n.core.File2a\n\026ApiFile" +
"DownloadService\022G\n\010download\022\034.site.ApiFi" +
"leDownloadRequest\032\035.site.ApiFileDownload" +
"ResponseB-\n\025com.akaxin.proto.siteB\024ApiFi" +
"leDownloadProtob\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.akaxin.proto.core.FileProto.getDescriptor(),
}, assigner);
internal_static_site_ApiFileDownloadRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_site_ApiFileDownloadRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_site_ApiFileDownloadRequest_descriptor,
new java.lang.String[] { "FileId", });
internal_static_site_ApiFileDownloadResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_site_ApiFileDownloadResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_site_ApiFileDownloadResponse_descriptor,
new java.lang.String[] { "File", });
com.akaxin.proto.core.FileProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}