All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jmash.file.protobuf.JmashFileModel Maven / Gradle / Ivy

There is a newer version: 0.0.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: jmash/file/protobuf/file_message.proto

// Protobuf Java Version: 3.25.1
package jmash.file.protobuf;

/**
 * 
 * 实体
 * 
* * Protobuf type {@code jmash.file.JmashFileModel} */ public final class JmashFileModel extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:jmash.file.JmashFileModel) JmashFileModelOrBuilder { private static final long serialVersionUID = 0L; // Use JmashFileModel.newBuilder() to construct. private JmashFileModel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private JmashFileModel() { fileId_ = ""; fileSrc_ = ""; contentType_ = ""; fileExt_ = ""; hashSm3_ = com.google.protobuf.ByteString.EMPTY; hashSha256_ = com.google.protobuf.ByteString.EMPTY; fileLocation_ = ""; geoLongitude_ = ""; geoLatitude_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new JmashFileModel(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return jmash.file.protobuf.JmashFileProto.internal_static_jmash_file_JmashFileModel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return jmash.file.protobuf.JmashFileProto.internal_static_jmash_file_JmashFileModel_fieldAccessorTable .ensureFieldAccessorsInitialized( jmash.file.protobuf.JmashFileModel.class, jmash.file.protobuf.JmashFileModel.Builder.class); } private int bitField0_; public static final int FILE_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object fileId_ = ""; /** *
   *文件ID
   * 
* * string file_id = 1; * @return The fileId. */ @java.lang.Override 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; } } /** *
   *文件ID
   * 
* * string file_id = 1; * @return The bytes for fileId. */ @java.lang.Override 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_SRC_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object fileSrc_ = ""; /** *
   *文件存储路径
   * 
* * string file_src = 2; * @return The fileSrc. */ @java.lang.Override public java.lang.String getFileSrc() { java.lang.Object ref = fileSrc_; 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(); fileSrc_ = s; return s; } } /** *
   *文件存储路径
   * 
* * string file_src = 2; * @return The bytes for fileSrc. */ @java.lang.Override public com.google.protobuf.ByteString getFileSrcBytes() { java.lang.Object ref = fileSrc_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fileSrc_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTENT_TYPE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object contentType_ = ""; /** *
   *文件内容类型
   * 
* * string content_type = 3; * @return The contentType. */ @java.lang.Override public java.lang.String getContentType() { java.lang.Object ref = contentType_; 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(); contentType_ = s; return s; } } /** *
   *文件内容类型
   * 
* * string content_type = 3; * @return The bytes for contentType. */ @java.lang.Override public com.google.protobuf.ByteString getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contentType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FILE_EXT_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object fileExt_ = ""; /** *
   *文件后缀
   * 
* * string file_ext = 4; * @return The fileExt. */ @java.lang.Override public java.lang.String getFileExt() { java.lang.Object ref = fileExt_; 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(); fileExt_ = s; return s; } } /** *
   *文件后缀
   * 
* * string file_ext = 4; * @return The bytes for fileExt. */ @java.lang.Override public com.google.protobuf.ByteString getFileExtBytes() { java.lang.Object ref = fileExt_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fileExt_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FILE_SIZE_FIELD_NUMBER = 5; private long fileSize_ = 0L; /** *
   *文件大小
   * 
* * int64 file_size = 5; * @return The fileSize. */ @java.lang.Override public long getFileSize() { return fileSize_; } public static final int HASH_SM3_FIELD_NUMBER = 6; private com.google.protobuf.ByteString hashSm3_ = com.google.protobuf.ByteString.EMPTY; /** *
   *文件Hash SM3值
   * 
* * bytes hash_sm3 = 6; * @return The hashSm3. */ @java.lang.Override public com.google.protobuf.ByteString getHashSm3() { return hashSm3_; } public static final int HASH_SHA256_FIELD_NUMBER = 7; private com.google.protobuf.ByteString hashSha256_ = com.google.protobuf.ByteString.EMPTY; /** *
   *文件Hash SHA256值
   * 
* * bytes hash_sha256 = 7; * @return The hashSha256. */ @java.lang.Override public com.google.protobuf.ByteString getHashSha256() { return hashSha256_; } public static final int FILE_WIDTH_FIELD_NUMBER = 8; private int fileWidth_ = 0; /** *
   *图片/视频宽度
   * 
* * int32 file_width = 8; * @return The fileWidth. */ @java.lang.Override public int getFileWidth() { return fileWidth_; } public static final int FILE_HEIGHT_FIELD_NUMBER = 9; private int fileHeight_ = 0; /** *
   *图片/视频高度
   * 
* * int32 file_height = 9; * @return The fileHeight. */ @java.lang.Override public int getFileHeight() { return fileHeight_; } public static final int FILE_TIME_FIELD_NUMBER = 10; private int fileTime_ = 0; /** *
   *音频/视频时长
   * 
* * int32 file_time = 10; * @return The fileTime. */ @java.lang.Override public int getFileTime() { return fileTime_; } public static final int FILE_LOCATION_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object fileLocation_ = ""; /** *
   *图片/视频/音频拍摄位置
   * 
* * string file_location = 11; * @return The fileLocation. */ @java.lang.Override public java.lang.String getFileLocation() { java.lang.Object ref = fileLocation_; 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(); fileLocation_ = s; return s; } } /** *
   *图片/视频/音频拍摄位置
   * 
* * string file_location = 11; * @return The bytes for fileLocation. */ @java.lang.Override public com.google.protobuf.ByteString getFileLocationBytes() { java.lang.Object ref = fileLocation_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fileLocation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GEO_LONGITUDE_FIELD_NUMBER = 12; @SuppressWarnings("serial") private volatile java.lang.Object geoLongitude_ = ""; /** *
   *经度
   * 
* * string geo_longitude = 12; * @return The geoLongitude. */ @java.lang.Override public java.lang.String getGeoLongitude() { java.lang.Object ref = geoLongitude_; 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(); geoLongitude_ = s; return s; } } /** *
   *经度
   * 
* * string geo_longitude = 12; * @return The bytes for geoLongitude. */ @java.lang.Override public com.google.protobuf.ByteString getGeoLongitudeBytes() { java.lang.Object ref = geoLongitude_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); geoLongitude_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GEO_LATITUDE_FIELD_NUMBER = 13; @SuppressWarnings("serial") private volatile java.lang.Object geoLatitude_ = ""; /** *
   *纬度
   * 
* * string geo_latitude = 13; * @return The geoLatitude. */ @java.lang.Override public java.lang.String getGeoLatitude() { java.lang.Object ref = geoLatitude_; 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(); geoLatitude_ = s; return s; } } /** *
   *纬度
   * 
* * string geo_latitude = 13; * @return The bytes for geoLatitude. */ @java.lang.Override public com.google.protobuf.ByteString getGeoLatitudeBytes() { java.lang.Object ref = geoLatitude_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); geoLatitude_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GEO_ACCURACY_FIELD_NUMBER = 14; private int geoAccuracy_ = 0; /** *
   *精度
   * 
* * int32 geo_accuracy = 14; * @return The geoAccuracy. */ @java.lang.Override public int getGeoAccuracy() { return geoAccuracy_; } public static final int GEO_ALTITUDE_FIELD_NUMBER = 15; private long geoAltitude_ = 0L; /** *
   *海拔高度
   * 
* * int64 geo_altitude = 15; * @return The geoAltitude. */ @java.lang.Override public long getGeoAltitude() { return geoAltitude_; } public static final int GEO_ALTITUDE_ACCRACY_FIELD_NUMBER = 16; private int geoAltitudeAccracy_ = 0; /** *
   *海拔高度精度
   * 
* * int32 geo_altitude_accracy = 16; * @return The geoAltitudeAccracy. */ @java.lang.Override public int getGeoAltitudeAccracy() { return geoAltitudeAccracy_; } public static final int CREATE_DATE_FIELD_NUMBER = 17; private com.google.protobuf.Timestamp createDate_; /** *
   *创建时间
   * 
* * .google.protobuf.Timestamp create_date = 17; * @return Whether the createDate field is set. */ @java.lang.Override public boolean hasCreateDate() { return ((bitField0_ & 0x00000001) != 0); } /** *
   *创建时间
   * 
* * .google.protobuf.Timestamp create_date = 17; * @return The createDate. */ @java.lang.Override public com.google.protobuf.Timestamp getCreateDate() { return createDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createDate_; } /** *
   *创建时间
   * 
* * .google.protobuf.Timestamp create_date = 17; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateDateOrBuilder() { return createDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createDate_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fileId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileSrc_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fileSrc_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, contentType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileExt_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, fileExt_); } if (fileSize_ != 0L) { output.writeInt64(5, fileSize_); } if (!hashSm3_.isEmpty()) { output.writeBytes(6, hashSm3_); } if (!hashSha256_.isEmpty()) { output.writeBytes(7, hashSha256_); } if (fileWidth_ != 0) { output.writeInt32(8, fileWidth_); } if (fileHeight_ != 0) { output.writeInt32(9, fileHeight_); } if (fileTime_ != 0) { output.writeInt32(10, fileTime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileLocation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, fileLocation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(geoLongitude_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, geoLongitude_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(geoLatitude_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, geoLatitude_); } if (geoAccuracy_ != 0) { output.writeInt32(14, geoAccuracy_); } if (geoAltitude_ != 0L) { output.writeInt64(15, geoAltitude_); } if (geoAltitudeAccracy_ != 0) { output.writeInt32(16, geoAltitudeAccracy_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(17, getCreateDate()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fileId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileSrc_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fileSrc_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, contentType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileExt_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, fileExt_); } if (fileSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, fileSize_); } if (!hashSm3_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, hashSm3_); } if (!hashSha256_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, hashSha256_); } if (fileWidth_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, fileWidth_); } if (fileHeight_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, fileHeight_); } if (fileTime_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, fileTime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileLocation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, fileLocation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(geoLongitude_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, geoLongitude_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(geoLatitude_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, geoLatitude_); } if (geoAccuracy_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(14, geoAccuracy_); } if (geoAltitude_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(15, geoAltitude_); } if (geoAltitudeAccracy_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(16, geoAltitudeAccracy_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, getCreateDate()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof jmash.file.protobuf.JmashFileModel)) { return super.equals(obj); } jmash.file.protobuf.JmashFileModel other = (jmash.file.protobuf.JmashFileModel) obj; if (!getFileId() .equals(other.getFileId())) return false; if (!getFileSrc() .equals(other.getFileSrc())) return false; if (!getContentType() .equals(other.getContentType())) return false; if (!getFileExt() .equals(other.getFileExt())) return false; if (getFileSize() != other.getFileSize()) return false; if (!getHashSm3() .equals(other.getHashSm3())) return false; if (!getHashSha256() .equals(other.getHashSha256())) return false; if (getFileWidth() != other.getFileWidth()) return false; if (getFileHeight() != other.getFileHeight()) return false; if (getFileTime() != other.getFileTime()) return false; if (!getFileLocation() .equals(other.getFileLocation())) return false; if (!getGeoLongitude() .equals(other.getGeoLongitude())) return false; if (!getGeoLatitude() .equals(other.getGeoLatitude())) return false; if (getGeoAccuracy() != other.getGeoAccuracy()) return false; if (getGeoAltitude() != other.getGeoAltitude()) return false; if (getGeoAltitudeAccracy() != other.getGeoAltitudeAccracy()) return false; if (hasCreateDate() != other.hasCreateDate()) return false; if (hasCreateDate()) { if (!getCreateDate() .equals(other.getCreateDate())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) 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) + FILE_ID_FIELD_NUMBER; hash = (53 * hash) + getFileId().hashCode(); hash = (37 * hash) + FILE_SRC_FIELD_NUMBER; hash = (53 * hash) + getFileSrc().hashCode(); hash = (37 * hash) + CONTENT_TYPE_FIELD_NUMBER; hash = (53 * hash) + getContentType().hashCode(); hash = (37 * hash) + FILE_EXT_FIELD_NUMBER; hash = (53 * hash) + getFileExt().hashCode(); hash = (37 * hash) + FILE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFileSize()); hash = (37 * hash) + HASH_SM3_FIELD_NUMBER; hash = (53 * hash) + getHashSm3().hashCode(); hash = (37 * hash) + HASH_SHA256_FIELD_NUMBER; hash = (53 * hash) + getHashSha256().hashCode(); hash = (37 * hash) + FILE_WIDTH_FIELD_NUMBER; hash = (53 * hash) + getFileWidth(); hash = (37 * hash) + FILE_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + getFileHeight(); hash = (37 * hash) + FILE_TIME_FIELD_NUMBER; hash = (53 * hash) + getFileTime(); hash = (37 * hash) + FILE_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getFileLocation().hashCode(); hash = (37 * hash) + GEO_LONGITUDE_FIELD_NUMBER; hash = (53 * hash) + getGeoLongitude().hashCode(); hash = (37 * hash) + GEO_LATITUDE_FIELD_NUMBER; hash = (53 * hash) + getGeoLatitude().hashCode(); hash = (37 * hash) + GEO_ACCURACY_FIELD_NUMBER; hash = (53 * hash) + getGeoAccuracy(); hash = (37 * hash) + GEO_ALTITUDE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getGeoAltitude()); hash = (37 * hash) + GEO_ALTITUDE_ACCRACY_FIELD_NUMBER; hash = (53 * hash) + getGeoAltitudeAccracy(); if (hasCreateDate()) { hash = (37 * hash) + CREATE_DATE_FIELD_NUMBER; hash = (53 * hash) + getCreateDate().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static jmash.file.protobuf.JmashFileModel parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static jmash.file.protobuf.JmashFileModel parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static jmash.file.protobuf.JmashFileModel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static jmash.file.protobuf.JmashFileModel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static jmash.file.protobuf.JmashFileModel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static jmash.file.protobuf.JmashFileModel parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static jmash.file.protobuf.JmashFileModel parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static jmash.file.protobuf.JmashFileModel 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 jmash.file.protobuf.JmashFileModel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static jmash.file.protobuf.JmashFileModel 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 jmash.file.protobuf.JmashFileModel parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static jmash.file.protobuf.JmashFileModel 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(jmash.file.protobuf.JmashFileModel 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 jmash.file.JmashFileModel} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:jmash.file.JmashFileModel) jmash.file.protobuf.JmashFileModelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return jmash.file.protobuf.JmashFileProto.internal_static_jmash_file_JmashFileModel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return jmash.file.protobuf.JmashFileProto.internal_static_jmash_file_JmashFileModel_fieldAccessorTable .ensureFieldAccessorsInitialized( jmash.file.protobuf.JmashFileModel.class, jmash.file.protobuf.JmashFileModel.Builder.class); } // Construct using jmash.file.protobuf.JmashFileModel.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCreateDateFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; fileId_ = ""; fileSrc_ = ""; contentType_ = ""; fileExt_ = ""; fileSize_ = 0L; hashSm3_ = com.google.protobuf.ByteString.EMPTY; hashSha256_ = com.google.protobuf.ByteString.EMPTY; fileWidth_ = 0; fileHeight_ = 0; fileTime_ = 0; fileLocation_ = ""; geoLongitude_ = ""; geoLatitude_ = ""; geoAccuracy_ = 0; geoAltitude_ = 0L; geoAltitudeAccracy_ = 0; createDate_ = null; if (createDateBuilder_ != null) { createDateBuilder_.dispose(); createDateBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return jmash.file.protobuf.JmashFileProto.internal_static_jmash_file_JmashFileModel_descriptor; } @java.lang.Override public jmash.file.protobuf.JmashFileModel getDefaultInstanceForType() { return jmash.file.protobuf.JmashFileModel.getDefaultInstance(); } @java.lang.Override public jmash.file.protobuf.JmashFileModel build() { jmash.file.protobuf.JmashFileModel result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public jmash.file.protobuf.JmashFileModel buildPartial() { jmash.file.protobuf.JmashFileModel result = new jmash.file.protobuf.JmashFileModel(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(jmash.file.protobuf.JmashFileModel result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.fileId_ = fileId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.fileSrc_ = fileSrc_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.contentType_ = contentType_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.fileExt_ = fileExt_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.fileSize_ = fileSize_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.hashSm3_ = hashSm3_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.hashSha256_ = hashSha256_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.fileWidth_ = fileWidth_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.fileHeight_ = fileHeight_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.fileTime_ = fileTime_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.fileLocation_ = fileLocation_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.geoLongitude_ = geoLongitude_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.geoLatitude_ = geoLatitude_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.geoAccuracy_ = geoAccuracy_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.geoAltitude_ = geoAltitude_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.geoAltitudeAccracy_ = geoAltitudeAccracy_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00010000) != 0)) { result.createDate_ = createDateBuilder_ == null ? createDate_ : createDateBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 jmash.file.protobuf.JmashFileModel) { return mergeFrom((jmash.file.protobuf.JmashFileModel)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(jmash.file.protobuf.JmashFileModel other) { if (other == jmash.file.protobuf.JmashFileModel.getDefaultInstance()) return this; if (!other.getFileId().isEmpty()) { fileId_ = other.fileId_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getFileSrc().isEmpty()) { fileSrc_ = other.fileSrc_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getContentType().isEmpty()) { contentType_ = other.contentType_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getFileExt().isEmpty()) { fileExt_ = other.fileExt_; bitField0_ |= 0x00000008; onChanged(); } if (other.getFileSize() != 0L) { setFileSize(other.getFileSize()); } if (other.getHashSm3() != com.google.protobuf.ByteString.EMPTY) { setHashSm3(other.getHashSm3()); } if (other.getHashSha256() != com.google.protobuf.ByteString.EMPTY) { setHashSha256(other.getHashSha256()); } if (other.getFileWidth() != 0) { setFileWidth(other.getFileWidth()); } if (other.getFileHeight() != 0) { setFileHeight(other.getFileHeight()); } if (other.getFileTime() != 0) { setFileTime(other.getFileTime()); } if (!other.getFileLocation().isEmpty()) { fileLocation_ = other.fileLocation_; bitField0_ |= 0x00000400; onChanged(); } if (!other.getGeoLongitude().isEmpty()) { geoLongitude_ = other.geoLongitude_; bitField0_ |= 0x00000800; onChanged(); } if (!other.getGeoLatitude().isEmpty()) { geoLatitude_ = other.geoLatitude_; bitField0_ |= 0x00001000; onChanged(); } if (other.getGeoAccuracy() != 0) { setGeoAccuracy(other.getGeoAccuracy()); } if (other.getGeoAltitude() != 0L) { setGeoAltitude(other.getGeoAltitude()); } if (other.getGeoAltitudeAccracy() != 0) { setGeoAltitudeAccracy(other.getGeoAltitudeAccracy()); } if (other.hasCreateDate()) { mergeCreateDate(other.getCreateDate()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { fileId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { fileSrc_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { contentType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { fileExt_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { fileSize_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { hashSm3_ = input.readBytes(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { hashSha256_ = input.readBytes(); bitField0_ |= 0x00000040; break; } // case 58 case 64: { fileWidth_ = input.readInt32(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { fileHeight_ = input.readInt32(); bitField0_ |= 0x00000100; break; } // case 72 case 80: { fileTime_ = input.readInt32(); bitField0_ |= 0x00000200; break; } // case 80 case 90: { fileLocation_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 90 case 98: { geoLongitude_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000800; break; } // case 98 case 106: { geoLatitude_ = input.readStringRequireUtf8(); bitField0_ |= 0x00001000; break; } // case 106 case 112: { geoAccuracy_ = input.readInt32(); bitField0_ |= 0x00002000; break; } // case 112 case 120: { geoAltitude_ = input.readInt64(); bitField0_ |= 0x00004000; break; } // case 120 case 128: { geoAltitudeAccracy_ = input.readInt32(); bitField0_ |= 0x00008000; break; } // case 128 case 138: { input.readMessage( getCreateDateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00010000; break; } // case 138 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object fileId_ = ""; /** *
     *文件ID
     * 
* * string file_id = 1; * @return The fileId. */ 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; } } /** *
     *文件ID
     * 
* * string file_id = 1; * @return The bytes for fileId. */ 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; } } /** *
     *文件ID
     * 
* * string file_id = 1; * @param value The fileId to set. * @return This builder for chaining. */ public Builder setFileId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fileId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *文件ID
     * 
* * string file_id = 1; * @return This builder for chaining. */ public Builder clearFileId() { fileId_ = getDefaultInstance().getFileId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     *文件ID
     * 
* * string file_id = 1; * @param value The bytes for fileId to set. * @return This builder for chaining. */ public Builder setFileIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fileId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object fileSrc_ = ""; /** *
     *文件存储路径
     * 
* * string file_src = 2; * @return The fileSrc. */ public java.lang.String getFileSrc() { java.lang.Object ref = fileSrc_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fileSrc_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *文件存储路径
     * 
* * string file_src = 2; * @return The bytes for fileSrc. */ public com.google.protobuf.ByteString getFileSrcBytes() { java.lang.Object ref = fileSrc_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fileSrc_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *文件存储路径
     * 
* * string file_src = 2; * @param value The fileSrc to set. * @return This builder for chaining. */ public Builder setFileSrc( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fileSrc_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *文件存储路径
     * 
* * string file_src = 2; * @return This builder for chaining. */ public Builder clearFileSrc() { fileSrc_ = getDefaultInstance().getFileSrc(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     *文件存储路径
     * 
* * string file_src = 2; * @param value The bytes for fileSrc to set. * @return This builder for chaining. */ public Builder setFileSrcBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fileSrc_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object contentType_ = ""; /** *
     *文件内容类型
     * 
* * string content_type = 3; * @return The contentType. */ public java.lang.String getContentType() { java.lang.Object ref = contentType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *文件内容类型
     * 
* * string content_type = 3; * @return The bytes for contentType. */ public com.google.protobuf.ByteString getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contentType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *文件内容类型
     * 
* * string content_type = 3; * @param value The contentType to set. * @return This builder for chaining. */ public Builder setContentType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } contentType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *文件内容类型
     * 
* * string content_type = 3; * @return This builder for chaining. */ public Builder clearContentType() { contentType_ = getDefaultInstance().getContentType(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     *文件内容类型
     * 
* * string content_type = 3; * @param value The bytes for contentType to set. * @return This builder for chaining. */ public Builder setContentTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contentType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object fileExt_ = ""; /** *
     *文件后缀
     * 
* * string file_ext = 4; * @return The fileExt. */ public java.lang.String getFileExt() { java.lang.Object ref = fileExt_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fileExt_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *文件后缀
     * 
* * string file_ext = 4; * @return The bytes for fileExt. */ public com.google.protobuf.ByteString getFileExtBytes() { java.lang.Object ref = fileExt_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fileExt_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *文件后缀
     * 
* * string file_ext = 4; * @param value The fileExt to set. * @return This builder for chaining. */ public Builder setFileExt( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fileExt_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *文件后缀
     * 
* * string file_ext = 4; * @return This builder for chaining. */ public Builder clearFileExt() { fileExt_ = getDefaultInstance().getFileExt(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     *文件后缀
     * 
* * string file_ext = 4; * @param value The bytes for fileExt to set. * @return This builder for chaining. */ public Builder setFileExtBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fileExt_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private long fileSize_ ; /** *
     *文件大小
     * 
* * int64 file_size = 5; * @return The fileSize. */ @java.lang.Override public long getFileSize() { return fileSize_; } /** *
     *文件大小
     * 
* * int64 file_size = 5; * @param value The fileSize to set. * @return This builder for chaining. */ public Builder setFileSize(long value) { fileSize_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     *文件大小
     * 
* * int64 file_size = 5; * @return This builder for chaining. */ public Builder clearFileSize() { bitField0_ = (bitField0_ & ~0x00000010); fileSize_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString hashSm3_ = com.google.protobuf.ByteString.EMPTY; /** *
     *文件Hash SM3值
     * 
* * bytes hash_sm3 = 6; * @return The hashSm3. */ @java.lang.Override public com.google.protobuf.ByteString getHashSm3() { return hashSm3_; } /** *
     *文件Hash SM3值
     * 
* * bytes hash_sm3 = 6; * @param value The hashSm3 to set. * @return This builder for chaining. */ public Builder setHashSm3(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } hashSm3_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     *文件Hash SM3值
     * 
* * bytes hash_sm3 = 6; * @return This builder for chaining. */ public Builder clearHashSm3() { bitField0_ = (bitField0_ & ~0x00000020); hashSm3_ = getDefaultInstance().getHashSm3(); onChanged(); return this; } private com.google.protobuf.ByteString hashSha256_ = com.google.protobuf.ByteString.EMPTY; /** *
     *文件Hash SHA256值
     * 
* * bytes hash_sha256 = 7; * @return The hashSha256. */ @java.lang.Override public com.google.protobuf.ByteString getHashSha256() { return hashSha256_; } /** *
     *文件Hash SHA256值
     * 
* * bytes hash_sha256 = 7; * @param value The hashSha256 to set. * @return This builder for chaining. */ public Builder setHashSha256(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } hashSha256_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     *文件Hash SHA256值
     * 
* * bytes hash_sha256 = 7; * @return This builder for chaining. */ public Builder clearHashSha256() { bitField0_ = (bitField0_ & ~0x00000040); hashSha256_ = getDefaultInstance().getHashSha256(); onChanged(); return this; } private int fileWidth_ ; /** *
     *图片/视频宽度
     * 
* * int32 file_width = 8; * @return The fileWidth. */ @java.lang.Override public int getFileWidth() { return fileWidth_; } /** *
     *图片/视频宽度
     * 
* * int32 file_width = 8; * @param value The fileWidth to set. * @return This builder for chaining. */ public Builder setFileWidth(int value) { fileWidth_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     *图片/视频宽度
     * 
* * int32 file_width = 8; * @return This builder for chaining. */ public Builder clearFileWidth() { bitField0_ = (bitField0_ & ~0x00000080); fileWidth_ = 0; onChanged(); return this; } private int fileHeight_ ; /** *
     *图片/视频高度
     * 
* * int32 file_height = 9; * @return The fileHeight. */ @java.lang.Override public int getFileHeight() { return fileHeight_; } /** *
     *图片/视频高度
     * 
* * int32 file_height = 9; * @param value The fileHeight to set. * @return This builder for chaining. */ public Builder setFileHeight(int value) { fileHeight_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     *图片/视频高度
     * 
* * int32 file_height = 9; * @return This builder for chaining. */ public Builder clearFileHeight() { bitField0_ = (bitField0_ & ~0x00000100); fileHeight_ = 0; onChanged(); return this; } private int fileTime_ ; /** *
     *音频/视频时长
     * 
* * int32 file_time = 10; * @return The fileTime. */ @java.lang.Override public int getFileTime() { return fileTime_; } /** *
     *音频/视频时长
     * 
* * int32 file_time = 10; * @param value The fileTime to set. * @return This builder for chaining. */ public Builder setFileTime(int value) { fileTime_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     *音频/视频时长
     * 
* * int32 file_time = 10; * @return This builder for chaining. */ public Builder clearFileTime() { bitField0_ = (bitField0_ & ~0x00000200); fileTime_ = 0; onChanged(); return this; } private java.lang.Object fileLocation_ = ""; /** *
     *图片/视频/音频拍摄位置
     * 
* * string file_location = 11; * @return The fileLocation. */ public java.lang.String getFileLocation() { java.lang.Object ref = fileLocation_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fileLocation_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *图片/视频/音频拍摄位置
     * 
* * string file_location = 11; * @return The bytes for fileLocation. */ public com.google.protobuf.ByteString getFileLocationBytes() { java.lang.Object ref = fileLocation_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fileLocation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *图片/视频/音频拍摄位置
     * 
* * string file_location = 11; * @param value The fileLocation to set. * @return This builder for chaining. */ public Builder setFileLocation( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fileLocation_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     *图片/视频/音频拍摄位置
     * 
* * string file_location = 11; * @return This builder for chaining. */ public Builder clearFileLocation() { fileLocation_ = getDefaultInstance().getFileLocation(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** *
     *图片/视频/音频拍摄位置
     * 
* * string file_location = 11; * @param value The bytes for fileLocation to set. * @return This builder for chaining. */ public Builder setFileLocationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fileLocation_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } private java.lang.Object geoLongitude_ = ""; /** *
     *经度
     * 
* * string geo_longitude = 12; * @return The geoLongitude. */ public java.lang.String getGeoLongitude() { java.lang.Object ref = geoLongitude_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); geoLongitude_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *经度
     * 
* * string geo_longitude = 12; * @return The bytes for geoLongitude. */ public com.google.protobuf.ByteString getGeoLongitudeBytes() { java.lang.Object ref = geoLongitude_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); geoLongitude_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *经度
     * 
* * string geo_longitude = 12; * @param value The geoLongitude to set. * @return This builder for chaining. */ public Builder setGeoLongitude( java.lang.String value) { if (value == null) { throw new NullPointerException(); } geoLongitude_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
     *经度
     * 
* * string geo_longitude = 12; * @return This builder for chaining. */ public Builder clearGeoLongitude() { geoLongitude_ = getDefaultInstance().getGeoLongitude(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** *
     *经度
     * 
* * string geo_longitude = 12; * @param value The bytes for geoLongitude to set. * @return This builder for chaining. */ public Builder setGeoLongitudeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); geoLongitude_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } private java.lang.Object geoLatitude_ = ""; /** *
     *纬度
     * 
* * string geo_latitude = 13; * @return The geoLatitude. */ public java.lang.String getGeoLatitude() { java.lang.Object ref = geoLatitude_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); geoLatitude_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *纬度
     * 
* * string geo_latitude = 13; * @return The bytes for geoLatitude. */ public com.google.protobuf.ByteString getGeoLatitudeBytes() { java.lang.Object ref = geoLatitude_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); geoLatitude_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *纬度
     * 
* * string geo_latitude = 13; * @param value The geoLatitude to set. * @return This builder for chaining. */ public Builder setGeoLatitude( java.lang.String value) { if (value == null) { throw new NullPointerException(); } geoLatitude_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     *纬度
     * 
* * string geo_latitude = 13; * @return This builder for chaining. */ public Builder clearGeoLatitude() { geoLatitude_ = getDefaultInstance().getGeoLatitude(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** *
     *纬度
     * 
* * string geo_latitude = 13; * @param value The bytes for geoLatitude to set. * @return This builder for chaining. */ public Builder setGeoLatitudeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); geoLatitude_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } private int geoAccuracy_ ; /** *
     *精度
     * 
* * int32 geo_accuracy = 14; * @return The geoAccuracy. */ @java.lang.Override public int getGeoAccuracy() { return geoAccuracy_; } /** *
     *精度
     * 
* * int32 geo_accuracy = 14; * @param value The geoAccuracy to set. * @return This builder for chaining. */ public Builder setGeoAccuracy(int value) { geoAccuracy_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     *精度
     * 
* * int32 geo_accuracy = 14; * @return This builder for chaining. */ public Builder clearGeoAccuracy() { bitField0_ = (bitField0_ & ~0x00002000); geoAccuracy_ = 0; onChanged(); return this; } private long geoAltitude_ ; /** *
     *海拔高度
     * 
* * int64 geo_altitude = 15; * @return The geoAltitude. */ @java.lang.Override public long getGeoAltitude() { return geoAltitude_; } /** *
     *海拔高度
     * 
* * int64 geo_altitude = 15; * @param value The geoAltitude to set. * @return This builder for chaining. */ public Builder setGeoAltitude(long value) { geoAltitude_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     *海拔高度
     * 
* * int64 geo_altitude = 15; * @return This builder for chaining. */ public Builder clearGeoAltitude() { bitField0_ = (bitField0_ & ~0x00004000); geoAltitude_ = 0L; onChanged(); return this; } private int geoAltitudeAccracy_ ; /** *
     *海拔高度精度
     * 
* * int32 geo_altitude_accracy = 16; * @return The geoAltitudeAccracy. */ @java.lang.Override public int getGeoAltitudeAccracy() { return geoAltitudeAccracy_; } /** *
     *海拔高度精度
     * 
* * int32 geo_altitude_accracy = 16; * @param value The geoAltitudeAccracy to set. * @return This builder for chaining. */ public Builder setGeoAltitudeAccracy(int value) { geoAltitudeAccracy_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     *海拔高度精度
     * 
* * int32 geo_altitude_accracy = 16; * @return This builder for chaining. */ public Builder clearGeoAltitudeAccracy() { bitField0_ = (bitField0_ & ~0x00008000); geoAltitudeAccracy_ = 0; onChanged(); return this; } private com.google.protobuf.Timestamp createDate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createDateBuilder_; /** *
     *创建时间
     * 
* * .google.protobuf.Timestamp create_date = 17; * @return Whether the createDate field is set. */ public boolean hasCreateDate() { return ((bitField0_ & 0x00010000) != 0); } /** *
     *创建时间
     * 
* * .google.protobuf.Timestamp create_date = 17; * @return The createDate. */ public com.google.protobuf.Timestamp getCreateDate() { if (createDateBuilder_ == null) { return createDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createDate_; } else { return createDateBuilder_.getMessage(); } } /** *
     *创建时间
     * 
* * .google.protobuf.Timestamp create_date = 17; */ public Builder setCreateDate(com.google.protobuf.Timestamp value) { if (createDateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createDate_ = value; } else { createDateBuilder_.setMessage(value); } bitField0_ |= 0x00010000; onChanged(); return this; } /** *
     *创建时间
     * 
* * .google.protobuf.Timestamp create_date = 17; */ public Builder setCreateDate( com.google.protobuf.Timestamp.Builder builderForValue) { if (createDateBuilder_ == null) { createDate_ = builderForValue.build(); } else { createDateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00010000; onChanged(); return this; } /** *
     *创建时间
     * 
* * .google.protobuf.Timestamp create_date = 17; */ public Builder mergeCreateDate(com.google.protobuf.Timestamp value) { if (createDateBuilder_ == null) { if (((bitField0_ & 0x00010000) != 0) && createDate_ != null && createDate_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateDateBuilder().mergeFrom(value); } else { createDate_ = value; } } else { createDateBuilder_.mergeFrom(value); } if (createDate_ != null) { bitField0_ |= 0x00010000; onChanged(); } return this; } /** *
     *创建时间
     * 
* * .google.protobuf.Timestamp create_date = 17; */ public Builder clearCreateDate() { bitField0_ = (bitField0_ & ~0x00010000); createDate_ = null; if (createDateBuilder_ != null) { createDateBuilder_.dispose(); createDateBuilder_ = null; } onChanged(); return this; } /** *
     *创建时间
     * 
* * .google.protobuf.Timestamp create_date = 17; */ public com.google.protobuf.Timestamp.Builder getCreateDateBuilder() { bitField0_ |= 0x00010000; onChanged(); return getCreateDateFieldBuilder().getBuilder(); } /** *
     *创建时间
     * 
* * .google.protobuf.Timestamp create_date = 17; */ public com.google.protobuf.TimestampOrBuilder getCreateDateOrBuilder() { if (createDateBuilder_ != null) { return createDateBuilder_.getMessageOrBuilder(); } else { return createDate_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createDate_; } } /** *
     *创建时间
     * 
* * .google.protobuf.Timestamp create_date = 17; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateDateFieldBuilder() { if (createDateBuilder_ == null) { createDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreateDate(), getParentForChildren(), isClean()); createDate_ = null; } return createDateBuilder_; } @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:jmash.file.JmashFileModel) } // @@protoc_insertion_point(class_scope:jmash.file.JmashFileModel) private static final jmash.file.protobuf.JmashFileModel DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new jmash.file.protobuf.JmashFileModel(); } public static jmash.file.protobuf.JmashFileModel getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public JmashFileModel parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public jmash.file.protobuf.JmashFileModel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy