com.volcengine.service.vod.model.business.VodFileInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of volc-sdk-java Show documentation
Show all versions of volc-sdk-java Show documentation
The VOLC Engine SDK for Java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: volcengine/vod/business/vod_media.proto
package com.volcengine.service.vod.model.business;
/**
*
* 和FileBasicInfo不共用,List和head能获取到的信息内容差别有一些,不利于后期维护(文档)
*
*
* Protobuf type {@code Volcengine.Vod.Models.Business.VodFileInfo}
*/
public final class VodFileInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Volcengine.Vod.Models.Business.VodFileInfo)
VodFileInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use VodFileInfo.newBuilder() to construct.
private VodFileInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VodFileInfo() {
fileName_ = "";
lastModifiedTime_ = "";
storageClass_ = "";
hashCrc64_ = "";
encodedFileName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new VodFileInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private VodFileInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
fileName_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
lastModifiedTime_ = s;
break;
}
case 24: {
size_ = input.readInt64();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
storageClass_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
hashCrc64_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
encodedFileName_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.volcengine.service.vod.model.business.VodMedia.internal_static_Volcengine_Vod_Models_Business_VodFileInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.volcengine.service.vod.model.business.VodMedia.internal_static_Volcengine_Vod_Models_Business_VodFileInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.volcengine.service.vod.model.business.VodFileInfo.class, com.volcengine.service.vod.model.business.VodFileInfo.Builder.class);
}
public static final int FILENAME_FIELD_NUMBER = 1;
private volatile java.lang.Object fileName_;
/**
*
* tos侧的key,即directUrl中的FileName
*
*
* string FileName = 1;
* @return The fileName.
*/
@java.lang.Override
public java.lang.String getFileName() {
java.lang.Object ref = fileName_;
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();
fileName_ = s;
return s;
}
}
/**
*
* tos侧的key,即directUrl中的FileName
*
*
* string FileName = 1;
* @return The bytes for fileName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFileNameBytes() {
java.lang.Object ref = fileName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fileName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LASTMODIFIEDTIME_FIELD_NUMBER = 2;
private volatile java.lang.Object lastModifiedTime_;
/**
*
*最近修改时间
*
*
* string LastModifiedTime = 2;
* @return The lastModifiedTime.
*/
@java.lang.Override
public java.lang.String getLastModifiedTime() {
java.lang.Object ref = lastModifiedTime_;
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();
lastModifiedTime_ = s;
return s;
}
}
/**
*
*最近修改时间
*
*
* string LastModifiedTime = 2;
* @return The bytes for lastModifiedTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLastModifiedTimeBytes() {
java.lang.Object ref = lastModifiedTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lastModifiedTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SIZE_FIELD_NUMBER = 3;
private long size_;
/**
*
*对象大小
*
*
* int64 Size = 3;
* @return The size.
*/
@java.lang.Override
public long getSize() {
return size_;
}
public static final int STORAGECLASS_FIELD_NUMBER = 4;
private volatile java.lang.Object storageClass_;
/**
*
*存储类型(STANDARD/ARCHIVE/IA)
*
*
* string StorageClass = 4;
* @return The storageClass.
*/
@java.lang.Override
public java.lang.String getStorageClass() {
java.lang.Object ref = storageClass_;
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();
storageClass_ = s;
return s;
}
}
/**
*
*存储类型(STANDARD/ARCHIVE/IA)
*
*
* string StorageClass = 4;
* @return The bytes for storageClass.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStorageClassBytes() {
java.lang.Object ref = storageClass_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storageClass_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HASHCRC64_FIELD_NUMBER = 5;
private volatile java.lang.Object hashCrc64_;
/**
*
* crc64hash值
*
*
* string HashCrc64 = 5;
* @return The hashCrc64.
*/
@java.lang.Override
public java.lang.String getHashCrc64() {
java.lang.Object ref = hashCrc64_;
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();
hashCrc64_ = s;
return s;
}
}
/**
*
* crc64hash值
*
*
* string HashCrc64 = 5;
* @return The bytes for hashCrc64.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHashCrc64Bytes() {
java.lang.Object ref = hashCrc64_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hashCrc64_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENCODEDFILENAME_FIELD_NUMBER = 6;
private volatile java.lang.Object encodedFileName_;
/**
*
* URL编码后的FileName
*
*
* string EncodedFileName = 6;
* @return The encodedFileName.
*/
@java.lang.Override
public java.lang.String getEncodedFileName() {
java.lang.Object ref = encodedFileName_;
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();
encodedFileName_ = s;
return s;
}
}
/**
*
* URL编码后的FileName
*
*
* string EncodedFileName = 6;
* @return The bytes for encodedFileName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEncodedFileNameBytes() {
java.lang.Object ref = encodedFileName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
encodedFileName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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(fileName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fileName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastModifiedTime_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, lastModifiedTime_);
}
if (size_ != 0L) {
output.writeInt64(3, size_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageClass_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, storageClass_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hashCrc64_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hashCrc64_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encodedFileName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, encodedFileName_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fileName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastModifiedTime_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, lastModifiedTime_);
}
if (size_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, size_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageClass_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storageClass_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hashCrc64_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, hashCrc64_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encodedFileName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, encodedFileName_);
}
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.volcengine.service.vod.model.business.VodFileInfo)) {
return super.equals(obj);
}
com.volcengine.service.vod.model.business.VodFileInfo other = (com.volcengine.service.vod.model.business.VodFileInfo) obj;
if (!getFileName()
.equals(other.getFileName())) return false;
if (!getLastModifiedTime()
.equals(other.getLastModifiedTime())) return false;
if (getSize()
!= other.getSize()) return false;
if (!getStorageClass()
.equals(other.getStorageClass())) return false;
if (!getHashCrc64()
.equals(other.getHashCrc64())) return false;
if (!getEncodedFileName()
.equals(other.getEncodedFileName())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FILENAME_FIELD_NUMBER;
hash = (53 * hash) + getFileName().hashCode();
hash = (37 * hash) + LASTMODIFIEDTIME_FIELD_NUMBER;
hash = (53 * hash) + getLastModifiedTime().hashCode();
hash = (37 * hash) + SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSize());
hash = (37 * hash) + STORAGECLASS_FIELD_NUMBER;
hash = (53 * hash) + getStorageClass().hashCode();
hash = (37 * hash) + HASHCRC64_FIELD_NUMBER;
hash = (53 * hash) + getHashCrc64().hashCode();
hash = (37 * hash) + ENCODEDFILENAME_FIELD_NUMBER;
hash = (53 * hash) + getEncodedFileName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.volcengine.service.vod.model.business.VodFileInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.volcengine.service.vod.model.business.VodFileInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.VodFileInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.volcengine.service.vod.model.business.VodFileInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.VodFileInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.volcengine.service.vod.model.business.VodFileInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.VodFileInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.volcengine.service.vod.model.business.VodFileInfo 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.volcengine.service.vod.model.business.VodFileInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.volcengine.service.vod.model.business.VodFileInfo 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.volcengine.service.vod.model.business.VodFileInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.volcengine.service.vod.model.business.VodFileInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.volcengine.service.vod.model.business.VodFileInfo 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;
}
/**
*
* 和FileBasicInfo不共用,List和head能获取到的信息内容差别有一些,不利于后期维护(文档)
*
*
* Protobuf type {@code Volcengine.Vod.Models.Business.VodFileInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Volcengine.Vod.Models.Business.VodFileInfo)
com.volcengine.service.vod.model.business.VodFileInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.volcengine.service.vod.model.business.VodMedia.internal_static_Volcengine_Vod_Models_Business_VodFileInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.volcengine.service.vod.model.business.VodMedia.internal_static_Volcengine_Vod_Models_Business_VodFileInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.volcengine.service.vod.model.business.VodFileInfo.class, com.volcengine.service.vod.model.business.VodFileInfo.Builder.class);
}
// Construct using com.volcengine.service.vod.model.business.VodFileInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
fileName_ = "";
lastModifiedTime_ = "";
size_ = 0L;
storageClass_ = "";
hashCrc64_ = "";
encodedFileName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.volcengine.service.vod.model.business.VodMedia.internal_static_Volcengine_Vod_Models_Business_VodFileInfo_descriptor;
}
@java.lang.Override
public com.volcengine.service.vod.model.business.VodFileInfo getDefaultInstanceForType() {
return com.volcengine.service.vod.model.business.VodFileInfo.getDefaultInstance();
}
@java.lang.Override
public com.volcengine.service.vod.model.business.VodFileInfo build() {
com.volcengine.service.vod.model.business.VodFileInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.volcengine.service.vod.model.business.VodFileInfo buildPartial() {
com.volcengine.service.vod.model.business.VodFileInfo result = new com.volcengine.service.vod.model.business.VodFileInfo(this);
result.fileName_ = fileName_;
result.lastModifiedTime_ = lastModifiedTime_;
result.size_ = size_;
result.storageClass_ = storageClass_;
result.hashCrc64_ = hashCrc64_;
result.encodedFileName_ = encodedFileName_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.volcengine.service.vod.model.business.VodFileInfo) {
return mergeFrom((com.volcengine.service.vod.model.business.VodFileInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.volcengine.service.vod.model.business.VodFileInfo other) {
if (other == com.volcengine.service.vod.model.business.VodFileInfo.getDefaultInstance()) return this;
if (!other.getFileName().isEmpty()) {
fileName_ = other.fileName_;
onChanged();
}
if (!other.getLastModifiedTime().isEmpty()) {
lastModifiedTime_ = other.lastModifiedTime_;
onChanged();
}
if (other.getSize() != 0L) {
setSize(other.getSize());
}
if (!other.getStorageClass().isEmpty()) {
storageClass_ = other.storageClass_;
onChanged();
}
if (!other.getHashCrc64().isEmpty()) {
hashCrc64_ = other.hashCrc64_;
onChanged();
}
if (!other.getEncodedFileName().isEmpty()) {
encodedFileName_ = other.encodedFileName_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.volcengine.service.vod.model.business.VodFileInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.volcengine.service.vod.model.business.VodFileInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object fileName_ = "";
/**
*
* tos侧的key,即directUrl中的FileName
*
*
* string FileName = 1;
* @return The fileName.
*/
public java.lang.String getFileName() {
java.lang.Object ref = fileName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fileName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* tos侧的key,即directUrl中的FileName
*
*
* string FileName = 1;
* @return The bytes for fileName.
*/
public com.google.protobuf.ByteString
getFileNameBytes() {
java.lang.Object ref = fileName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fileName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* tos侧的key,即directUrl中的FileName
*
*
* string FileName = 1;
* @param value The fileName to set.
* @return This builder for chaining.
*/
public Builder setFileName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fileName_ = value;
onChanged();
return this;
}
/**
*
* tos侧的key,即directUrl中的FileName
*
*
* string FileName = 1;
* @return This builder for chaining.
*/
public Builder clearFileName() {
fileName_ = getDefaultInstance().getFileName();
onChanged();
return this;
}
/**
*
* tos侧的key,即directUrl中的FileName
*
*
* string FileName = 1;
* @param value The bytes for fileName to set.
* @return This builder for chaining.
*/
public Builder setFileNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fileName_ = value;
onChanged();
return this;
}
private java.lang.Object lastModifiedTime_ = "";
/**
*
*最近修改时间
*
*
* string LastModifiedTime = 2;
* @return The lastModifiedTime.
*/
public java.lang.String getLastModifiedTime() {
java.lang.Object ref = lastModifiedTime_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
lastModifiedTime_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*最近修改时间
*
*
* string LastModifiedTime = 2;
* @return The bytes for lastModifiedTime.
*/
public com.google.protobuf.ByteString
getLastModifiedTimeBytes() {
java.lang.Object ref = lastModifiedTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lastModifiedTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*最近修改时间
*
*
* string LastModifiedTime = 2;
* @param value The lastModifiedTime to set.
* @return This builder for chaining.
*/
public Builder setLastModifiedTime(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
lastModifiedTime_ = value;
onChanged();
return this;
}
/**
*
*最近修改时间
*
*
* string LastModifiedTime = 2;
* @return This builder for chaining.
*/
public Builder clearLastModifiedTime() {
lastModifiedTime_ = getDefaultInstance().getLastModifiedTime();
onChanged();
return this;
}
/**
*
*最近修改时间
*
*
* string LastModifiedTime = 2;
* @param value The bytes for lastModifiedTime to set.
* @return This builder for chaining.
*/
public Builder setLastModifiedTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
lastModifiedTime_ = value;
onChanged();
return this;
}
private long size_ ;
/**
*
*对象大小
*
*
* int64 Size = 3;
* @return The size.
*/
@java.lang.Override
public long getSize() {
return size_;
}
/**
*
*对象大小
*
*
* int64 Size = 3;
* @param value The size to set.
* @return This builder for chaining.
*/
public Builder setSize(long value) {
size_ = value;
onChanged();
return this;
}
/**
*
*对象大小
*
*
* int64 Size = 3;
* @return This builder for chaining.
*/
public Builder clearSize() {
size_ = 0L;
onChanged();
return this;
}
private java.lang.Object storageClass_ = "";
/**
*
*存储类型(STANDARD/ARCHIVE/IA)
*
*
* string StorageClass = 4;
* @return The storageClass.
*/
public java.lang.String getStorageClass() {
java.lang.Object ref = storageClass_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
storageClass_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*存储类型(STANDARD/ARCHIVE/IA)
*
*
* string StorageClass = 4;
* @return The bytes for storageClass.
*/
public com.google.protobuf.ByteString
getStorageClassBytes() {
java.lang.Object ref = storageClass_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storageClass_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*存储类型(STANDARD/ARCHIVE/IA)
*
*
* string StorageClass = 4;
* @param value The storageClass to set.
* @return This builder for chaining.
*/
public Builder setStorageClass(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
storageClass_ = value;
onChanged();
return this;
}
/**
*
*存储类型(STANDARD/ARCHIVE/IA)
*
*
* string StorageClass = 4;
* @return This builder for chaining.
*/
public Builder clearStorageClass() {
storageClass_ = getDefaultInstance().getStorageClass();
onChanged();
return this;
}
/**
*
*存储类型(STANDARD/ARCHIVE/IA)
*
*
* string StorageClass = 4;
* @param value The bytes for storageClass to set.
* @return This builder for chaining.
*/
public Builder setStorageClassBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
storageClass_ = value;
onChanged();
return this;
}
private java.lang.Object hashCrc64_ = "";
/**
*
* crc64hash值
*
*
* string HashCrc64 = 5;
* @return The hashCrc64.
*/
public java.lang.String getHashCrc64() {
java.lang.Object ref = hashCrc64_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hashCrc64_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* crc64hash值
*
*
* string HashCrc64 = 5;
* @return The bytes for hashCrc64.
*/
public com.google.protobuf.ByteString
getHashCrc64Bytes() {
java.lang.Object ref = hashCrc64_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hashCrc64_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* crc64hash值
*
*
* string HashCrc64 = 5;
* @param value The hashCrc64 to set.
* @return This builder for chaining.
*/
public Builder setHashCrc64(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hashCrc64_ = value;
onChanged();
return this;
}
/**
*
* crc64hash值
*
*
* string HashCrc64 = 5;
* @return This builder for chaining.
*/
public Builder clearHashCrc64() {
hashCrc64_ = getDefaultInstance().getHashCrc64();
onChanged();
return this;
}
/**
*
* crc64hash值
*
*
* string HashCrc64 = 5;
* @param value The bytes for hashCrc64 to set.
* @return This builder for chaining.
*/
public Builder setHashCrc64Bytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hashCrc64_ = value;
onChanged();
return this;
}
private java.lang.Object encodedFileName_ = "";
/**
*
* URL编码后的FileName
*
*
* string EncodedFileName = 6;
* @return The encodedFileName.
*/
public java.lang.String getEncodedFileName() {
java.lang.Object ref = encodedFileName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
encodedFileName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* URL编码后的FileName
*
*
* string EncodedFileName = 6;
* @return The bytes for encodedFileName.
*/
public com.google.protobuf.ByteString
getEncodedFileNameBytes() {
java.lang.Object ref = encodedFileName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
encodedFileName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* URL编码后的FileName
*
*
* string EncodedFileName = 6;
* @param value The encodedFileName to set.
* @return This builder for chaining.
*/
public Builder setEncodedFileName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
encodedFileName_ = value;
onChanged();
return this;
}
/**
*
* URL编码后的FileName
*
*
* string EncodedFileName = 6;
* @return This builder for chaining.
*/
public Builder clearEncodedFileName() {
encodedFileName_ = getDefaultInstance().getEncodedFileName();
onChanged();
return this;
}
/**
*
* URL编码后的FileName
*
*
* string EncodedFileName = 6;
* @param value The bytes for encodedFileName to set.
* @return This builder for chaining.
*/
public Builder setEncodedFileNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
encodedFileName_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Volcengine.Vod.Models.Business.VodFileInfo)
}
// @@protoc_insertion_point(class_scope:Volcengine.Vod.Models.Business.VodFileInfo)
private static final com.volcengine.service.vod.model.business.VodFileInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.volcengine.service.vod.model.business.VodFileInfo();
}
public static com.volcengine.service.vod.model.business.VodFileInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VodFileInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VodFileInfo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.volcengine.service.vod.model.business.VodFileInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy