// Generated by the protocol buffer compiler. DO NOT EDIT! // source: core/file.proto package com.akaxin.proto.core; public final class FileProto { private FileProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } /** * Protobuf enum {@code core.FileType} */ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { /** *
* 未知的文件类型类型 ** *
UNKNOWN_FILE = 0;
*/
UNKNOWN_FILE(0),
/**
* *用户,群头像 ** *
USER_PORTRAIT = 1;
*/
USER_PORTRAIT(1),
/**
* * 个人消息,群图片消息 ** *
MESSAGE_IMAGE = 2;
*/
MESSAGE_IMAGE(2),
/**
* * 个人,群语音消息 ** *
MESSAGE_VOICE = 3;
*/
MESSAGE_VOICE(3),
/**
* *群头像 ** *
GROUP_PORTRAIT = 4;
*/
GROUP_PORTRAIT(4),
/**
* * 站点扩展图片存放位置 ** *
SITE_PLUGIN = 5;
*/
SITE_PLUGIN(5),
/**
* *站点本身相关图片,例如站点logo ** *
SITE_ICON = 6;
*/
SITE_ICON(6),
UNRECOGNIZED(-1),
;
/**
* * 未知的文件类型类型 ** *
UNKNOWN_FILE = 0;
*/
public static final int UNKNOWN_FILE_VALUE = 0;
/**
* *用户,群头像 ** *
USER_PORTRAIT = 1;
*/
public static final int USER_PORTRAIT_VALUE = 1;
/**
* * 个人消息,群图片消息 ** *
MESSAGE_IMAGE = 2;
*/
public static final int MESSAGE_IMAGE_VALUE = 2;
/**
* * 个人,群语音消息 ** *
MESSAGE_VOICE = 3;
*/
public static final int MESSAGE_VOICE_VALUE = 3;
/**
* *群头像 ** *
GROUP_PORTRAIT = 4;
*/
public static final int GROUP_PORTRAIT_VALUE = 4;
/**
* * 站点扩展图片存放位置 ** *
SITE_PLUGIN = 5;
*/
public static final int SITE_PLUGIN_VALUE = 5;
/**
* *站点本身相关图片,例如站点logo ** *
SITE_ICON = 6;
*/
public static final int SITE_ICON_VALUE = 6;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FileType valueOf(int value) {
return forNumber(value);
}
public static FileType forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_FILE;
case 1: return USER_PORTRAIT;
case 2: return MESSAGE_IMAGE;
case 3: return MESSAGE_VOICE;
case 4: return GROUP_PORTRAIT;
case 5: return SITE_PLUGIN;
case 6: return SITE_ICON;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMapstring file_id = 1;
*/
java.lang.String getFileId();
/**
* string file_id = 1;
*/
com.google.protobuf.ByteString
getFileIdBytes();
/**
* bytes file_content = 2;
*/
com.google.protobuf.ByteString getFileContent();
/**
* .core.FileType file_type = 3;
*/
int getFileTypeValue();
/**
* .core.FileType file_type = 3;
*/
com.akaxin.proto.core.FileProto.FileType getFileType();
}
/**
* *上传站点服务端的文件 ** * Protobuf type {@code core.File} */ public static final class File extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:core.File) FileOrBuilder { private static final long serialVersionUID = 0L; // Use File.newBuilder() to construct. private File(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private File() { fileId_ = ""; fileContent_ = com.google.protobuf.ByteString.EMPTY; fileType_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private File( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); 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; } case 18: { fileContent_ = input.readBytes(); break; } case 24: { int rawValue = input.readEnum(); fileType_ = rawValue; 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.core.FileProto.internal_static_core_File_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.akaxin.proto.core.FileProto.internal_static_core_File_fieldAccessorTable .ensureFieldAccessorsInitialized( com.akaxin.proto.core.FileProto.File.class, com.akaxin.proto.core.FileProto.File.Builder.class); } public static final int FILE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object fileId_; /** *
string file_id = 1;
*/
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;
}
}
/**
* string file_id = 1;
*/
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;
}
}
public static final int FILE_CONTENT_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString fileContent_;
/**
* bytes file_content = 2;
*/
public com.google.protobuf.ByteString getFileContent() {
return fileContent_;
}
public static final int FILE_TYPE_FIELD_NUMBER = 3;
private int fileType_;
/**
* .core.FileType file_type = 3;
*/
public int getFileTypeValue() {
return fileType_;
}
/**
* .core.FileType file_type = 3;
*/
public com.akaxin.proto.core.FileProto.FileType getFileType() {
com.akaxin.proto.core.FileProto.FileType result = com.akaxin.proto.core.FileProto.FileType.valueOf(fileType_);
return result == null ? com.akaxin.proto.core.FileProto.FileType.UNRECOGNIZED : result;
}
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_);
}
if (!fileContent_.isEmpty()) {
output.writeBytes(2, fileContent_);
}
if (fileType_ != com.akaxin.proto.core.FileProto.FileType.UNKNOWN_FILE.getNumber()) {
output.writeEnum(3, fileType_);
}
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_);
}
if (!fileContent_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, fileContent_);
}
if (fileType_ != com.akaxin.proto.core.FileProto.FileType.UNKNOWN_FILE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, fileType_);
}
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.core.FileProto.File)) {
return super.equals(obj);
}
com.akaxin.proto.core.FileProto.File other = (com.akaxin.proto.core.FileProto.File) obj;
boolean result = true;
result = result && getFileId()
.equals(other.getFileId());
result = result && getFileContent()
.equals(other.getFileContent());
result = result && fileType_ == other.fileType_;
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 = (37 * hash) + FILE_CONTENT_FIELD_NUMBER;
hash = (53 * hash) + getFileContent().hashCode();
hash = (37 * hash) + FILE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + fileType_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.akaxin.proto.core.FileProto.File parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.FileProto.File 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.core.FileProto.File parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.FileProto.File 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.core.FileProto.File parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.FileProto.File parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.FileProto.File parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.FileProto.File 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.core.FileProto.File parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.FileProto.File 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.core.FileProto.File parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.FileProto.File 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.core.FileProto.File 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 core.File} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
string file_id = 1;
*/
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;
}
}
/**
* string file_id = 1;
*/
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;
}
}
/**
* string file_id = 1;
*/
public Builder setFileId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fileId_ = value;
onChanged();
return this;
}
/**
* string file_id = 1;
*/
public Builder clearFileId() {
fileId_ = getDefaultInstance().getFileId();
onChanged();
return this;
}
/**
* string file_id = 1;
*/
public Builder setFileIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fileId_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString fileContent_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes file_content = 2;
*/
public com.google.protobuf.ByteString getFileContent() {
return fileContent_;
}
/**
* bytes file_content = 2;
*/
public Builder setFileContent(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
fileContent_ = value;
onChanged();
return this;
}
/**
* bytes file_content = 2;
*/
public Builder clearFileContent() {
fileContent_ = getDefaultInstance().getFileContent();
onChanged();
return this;
}
private int fileType_ = 0;
/**
* .core.FileType file_type = 3;
*/
public int getFileTypeValue() {
return fileType_;
}
/**
* .core.FileType file_type = 3;
*/
public Builder setFileTypeValue(int value) {
fileType_ = value;
onChanged();
return this;
}
/**
* .core.FileType file_type = 3;
*/
public com.akaxin.proto.core.FileProto.FileType getFileType() {
com.akaxin.proto.core.FileProto.FileType result = com.akaxin.proto.core.FileProto.FileType.valueOf(fileType_);
return result == null ? com.akaxin.proto.core.FileProto.FileType.UNRECOGNIZED : result;
}
/**
* .core.FileType file_type = 3;
*/
public Builder setFileType(com.akaxin.proto.core.FileProto.FileType value) {
if (value == null) {
throw new NullPointerException();
}
fileType_ = value.getNumber();
onChanged();
return this;
}
/**
* .core.FileType file_type = 3;
*/
public Builder clearFileType() {
fileType_ = 0;
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:core.File)
}
// @@protoc_insertion_point(class_scope:core.File)
private static final com.akaxin.proto.core.FileProto.File DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.akaxin.proto.core.FileProto.File();
}
public static com.akaxin.proto.core.FileProto.File getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser*语音的长度 ** *
int32 length = 1;
*/
int getLength();
/**
* *图片的宽 ** *
int32 width = 2;
*/
int getWidth();
/**
* *图片的高 ** *
int32 height = 3;
*/
int getHeight();
/**
* *视频的大小,单位kb ** *
int32 size = 4;
*/
int getSize();
}
/**
* * 文件信息的描述 ** * Protobuf type {@code core.FileDesc} */ public static final class FileDesc extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:core.FileDesc) FileDescOrBuilder { private static final long serialVersionUID = 0L; // Use FileDesc.newBuilder() to construct. private FileDesc(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private FileDesc() { length_ = 0; width_ = 0; height_ = 0; size_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FileDesc( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); 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 8: { length_ = input.readInt32(); break; } case 16: { width_ = input.readInt32(); break; } case 24: { height_ = input.readInt32(); break; } case 32: { size_ = input.readInt32(); 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.core.FileProto.internal_static_core_FileDesc_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.akaxin.proto.core.FileProto.internal_static_core_FileDesc_fieldAccessorTable .ensureFieldAccessorsInitialized( com.akaxin.proto.core.FileProto.FileDesc.class, com.akaxin.proto.core.FileProto.FileDesc.Builder.class); } public static final int LENGTH_FIELD_NUMBER = 1; private int length_; /** *
*语音的长度 ** *
int32 length = 1;
*/
public int getLength() {
return length_;
}
public static final int WIDTH_FIELD_NUMBER = 2;
private int width_;
/**
* *图片的宽 ** *
int32 width = 2;
*/
public int getWidth() {
return width_;
}
public static final int HEIGHT_FIELD_NUMBER = 3;
private int height_;
/**
* *图片的高 ** *
int32 height = 3;
*/
public int getHeight() {
return height_;
}
public static final int SIZE_FIELD_NUMBER = 4;
private int size_;
/**
* *视频的大小,单位kb ** *
int32 size = 4;
*/
public int getSize() {
return size_;
}
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 (length_ != 0) {
output.writeInt32(1, length_);
}
if (width_ != 0) {
output.writeInt32(2, width_);
}
if (height_ != 0) {
output.writeInt32(3, height_);
}
if (size_ != 0) {
output.writeInt32(4, size_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (length_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, length_);
}
if (width_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, width_);
}
if (height_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, height_);
}
if (size_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, 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.akaxin.proto.core.FileProto.FileDesc)) {
return super.equals(obj);
}
com.akaxin.proto.core.FileProto.FileDesc other = (com.akaxin.proto.core.FileProto.FileDesc) obj;
boolean result = true;
result = result && (getLength()
== other.getLength());
result = result && (getWidth()
== other.getWidth());
result = result && (getHeight()
== other.getHeight());
result = result && (getSize()
== other.getSize());
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) + LENGTH_FIELD_NUMBER;
hash = (53 * hash) + getLength();
hash = (37 * hash) + WIDTH_FIELD_NUMBER;
hash = (53 * hash) + getWidth();
hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getHeight();
hash = (37 * hash) + SIZE_FIELD_NUMBER;
hash = (53 * hash) + getSize();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.akaxin.proto.core.FileProto.FileDesc parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.FileProto.FileDesc 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.core.FileProto.FileDesc parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.FileProto.FileDesc 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.core.FileProto.FileDesc parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.FileProto.FileDesc parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.FileProto.FileDesc parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.FileProto.FileDesc 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.core.FileProto.FileDesc parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.FileProto.FileDesc 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.core.FileProto.FileDesc parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.FileProto.FileDesc 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.core.FileProto.FileDesc 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 core.FileDesc} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
*语音的长度 ** *
int32 length = 1;
*/
public int getLength() {
return length_;
}
/**
* *语音的长度 ** *
int32 length = 1;
*/
public Builder setLength(int value) {
length_ = value;
onChanged();
return this;
}
/**
* *语音的长度 ** *
int32 length = 1;
*/
public Builder clearLength() {
length_ = 0;
onChanged();
return this;
}
private int width_ ;
/**
* *图片的宽 ** *
int32 width = 2;
*/
public int getWidth() {
return width_;
}
/**
* *图片的宽 ** *
int32 width = 2;
*/
public Builder setWidth(int value) {
width_ = value;
onChanged();
return this;
}
/**
* *图片的宽 ** *
int32 width = 2;
*/
public Builder clearWidth() {
width_ = 0;
onChanged();
return this;
}
private int height_ ;
/**
* *图片的高 ** *
int32 height = 3;
*/
public int getHeight() {
return height_;
}
/**
* *图片的高 ** *
int32 height = 3;
*/
public Builder setHeight(int value) {
height_ = value;
onChanged();
return this;
}
/**
* *图片的高 ** *
int32 height = 3;
*/
public Builder clearHeight() {
height_ = 0;
onChanged();
return this;
}
private int size_ ;
/**
* *视频的大小,单位kb ** *
int32 size = 4;
*/
public int getSize() {
return size_;
}
/**
* *视频的大小,单位kb ** *
int32 size = 4;
*/
public Builder setSize(int value) {
size_ = value;
onChanged();
return this;
}
/**
* *视频的大小,单位kb ** *
int32 size = 4;
*/
public Builder clearSize() {
size_ = 0;
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:core.FileDesc)
}
// @@protoc_insertion_point(class_scope:core.FileDesc)
private static final com.akaxin.proto.core.FileProto.FileDesc DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.akaxin.proto.core.FileProto.FileDesc();
}
public static com.akaxin.proto.core.FileProto.FileDesc getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser