com.volcengine.service.live.model.business.CDNSnapshotHistory 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: live/business/snapshot_manage.proto
package com.volcengine.service.live.model.business;
/**
* Protobuf type {@code Volcengine.Live.Models.Business.CDNSnapshotHistory}
*/
public final class CDNSnapshotHistory extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Volcengine.Live.Models.Business.CDNSnapshotHistory)
CDNSnapshotHistoryOrBuilder {
private static final long serialVersionUID = 0L;
// Use CDNSnapshotHistory.newBuilder() to construct.
private CDNSnapshotHistory(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CDNSnapshotHistory() {
vhost_ = "";
app_ = "";
stream_ = "";
path_ = "";
fileName_ = "";
timeStamp_ = "";
serviceID_ = "";
uRI_ = "";
}
@Override
@SuppressWarnings({"unused"})
protected Object newInstance(
UnusedPrivateParameter unused) {
return new CDNSnapshotHistory();
}
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CDNSnapshotHistory(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new 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: {
String s = input.readStringRequireUtf8();
vhost_ = s;
break;
}
case 18: {
String s = input.readStringRequireUtf8();
app_ = s;
break;
}
case 26: {
String s = input.readStringRequireUtf8();
stream_ = s;
break;
}
case 34: {
String s = input.readStringRequireUtf8();
path_ = s;
break;
}
case 42: {
String s = input.readStringRequireUtf8();
fileName_ = s;
break;
}
case 50: {
String s = input.readStringRequireUtf8();
timeStamp_ = s;
break;
}
case 56: {
width_ = input.readInt64();
break;
}
case 64: {
height_ = input.readInt64();
break;
}
case 74: {
String s = input.readStringRequireUtf8();
serviceID_ = s;
break;
}
case 82: {
String s = input.readStringRequireUtf8();
uRI_ = 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 SnapshotManage.internal_static_Volcengine_Live_Models_Business_CDNSnapshotHistory_descriptor;
}
@Override
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return SnapshotManage.internal_static_Volcengine_Live_Models_Business_CDNSnapshotHistory_fieldAccessorTable
.ensureFieldAccessorsInitialized(
CDNSnapshotHistory.class, Builder.class);
}
public static final int VHOST_FIELD_NUMBER = 1;
private volatile Object vhost_;
/**
*
* Vhost表示视频直播服务的配置空间
*
*
* string Vhost = 1;
* @return The vhost.
*/
@Override
public String getVhost() {
Object ref = vhost_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
vhost_ = s;
return s;
}
}
/**
*
* Vhost表示视频直播服务的配置空间
*
*
* string Vhost = 1;
* @return The bytes for vhost.
*/
@Override
public com.google.protobuf.ByteString
getVhostBytes() {
Object ref = vhost_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
vhost_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int APP_FIELD_NUMBER = 2;
private volatile Object app_;
/**
*
* 应用名称
*
*
* string App = 2;
* @return The app.
*/
@Override
public String getApp() {
Object ref = app_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
app_ = s;
return s;
}
}
/**
*
* 应用名称
*
*
* string App = 2;
* @return The bytes for app.
*/
@Override
public com.google.protobuf.ByteString
getAppBytes() {
Object ref = app_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
app_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STREAM_FIELD_NUMBER = 3;
private volatile Object stream_;
/**
*
* 流名称
*
*
* string Stream = 3;
* @return The stream.
*/
@Override
public String getStream() {
Object ref = stream_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
stream_ = s;
return s;
}
}
/**
*
* 流名称
*
*
* string Stream = 3;
* @return The bytes for stream.
*/
@Override
public com.google.protobuf.ByteString
getStreamBytes() {
Object ref = stream_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
stream_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PATH_FIELD_NUMBER = 4;
private volatile Object path_;
/**
*
* 截图文件保存的路径
*
*
* string Path = 4;
* @return The path.
*/
@Override
public String getPath() {
Object ref = path_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
path_ = s;
return s;
}
}
/**
*
* 截图文件保存的路径
*
*
* string Path = 4;
* @return The bytes for path.
*/
@Override
public com.google.protobuf.ByteString
getPathBytes() {
Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FILENAME_FIELD_NUMBER = 5;
private volatile Object fileName_;
/**
*
*文件大小
*
*
* string FileName = 5;
* @return The fileName.
*/
@Override
public String getFileName() {
Object ref = fileName_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
fileName_ = s;
return s;
}
}
/**
*
*文件大小
*
*
* string FileName = 5;
* @return The bytes for fileName.
*/
@Override
public com.google.protobuf.ByteString
getFileNameBytes() {
Object ref = fileName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
fileName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIMESTAMP_FIELD_NUMBER = 6;
private volatile Object timeStamp_;
/**
*
* 直播流开始时间
*
*
* string TimeStamp = 6;
* @return The timeStamp.
*/
@Override
public String getTimeStamp() {
Object ref = timeStamp_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
timeStamp_ = s;
return s;
}
}
/**
*
* 直播流开始时间
*
*
* string TimeStamp = 6;
* @return The bytes for timeStamp.
*/
@Override
public com.google.protobuf.ByteString
getTimeStampBytes() {
Object ref = timeStamp_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
timeStamp_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WIDTH_FIELD_NUMBER = 7;
private long width_;
/**
*
* 视频宽度
*
*
* int64 Width = 7;
* @return The width.
*/
@Override
public long getWidth() {
return width_;
}
public static final int HEIGHT_FIELD_NUMBER = 8;
private long height_;
/**
*
* 视频高度
*
*
* int64 Height = 8;
* @return The height.
*/
@Override
public long getHeight() {
return height_;
}
public static final int SERVICEID_FIELD_NUMBER = 9;
private volatile Object serviceID_;
/**
*
* 直播流开始时间
*
*
* string ServiceID = 9;
* @return The serviceID.
*/
@Override
public String getServiceID() {
Object ref = serviceID_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
serviceID_ = s;
return s;
}
}
/**
*
* 直播流开始时间
*
*
* string ServiceID = 9;
* @return The bytes for serviceID.
*/
@Override
public com.google.protobuf.ByteString
getServiceIDBytes() {
Object ref = serviceID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
serviceID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int URI_FIELD_NUMBER = 10;
private volatile Object uRI_;
/**
*
* 直播流开始时间
*
*
* string URI = 10;
* @return The uRI.
*/
@Override
public String getURI() {
Object ref = uRI_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
uRI_ = s;
return s;
}
}
/**
*
* 直播流开始时间
*
*
* string URI = 10;
* @return The bytes for uRI.
*/
@Override
public com.google.protobuf.ByteString
getURIBytes() {
Object ref = uRI_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
uRI_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vhost_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vhost_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(app_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, app_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stream_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, stream_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, path_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fileName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeStamp_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, timeStamp_);
}
if (width_ != 0L) {
output.writeInt64(7, width_);
}
if (height_ != 0L) {
output.writeInt64(8, height_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceID_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, serviceID_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uRI_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, uRI_);
}
unknownFields.writeTo(output);
}
@Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vhost_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, vhost_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(app_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, app_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stream_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, stream_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, path_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, fileName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeStamp_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, timeStamp_);
}
if (width_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, width_);
}
if (height_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, height_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceID_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceID_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uRI_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, uRI_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@Override
public boolean equals(final Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof CDNSnapshotHistory)) {
return super.equals(obj);
}
CDNSnapshotHistory other = (CDNSnapshotHistory) obj;
if (!getVhost()
.equals(other.getVhost())) return false;
if (!getApp()
.equals(other.getApp())) return false;
if (!getStream()
.equals(other.getStream())) return false;
if (!getPath()
.equals(other.getPath())) return false;
if (!getFileName()
.equals(other.getFileName())) return false;
if (!getTimeStamp()
.equals(other.getTimeStamp())) return false;
if (getWidth()
!= other.getWidth()) return false;
if (getHeight()
!= other.getHeight()) return false;
if (!getServiceID()
.equals(other.getServiceID())) return false;
if (!getURI()
.equals(other.getURI())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VHOST_FIELD_NUMBER;
hash = (53 * hash) + getVhost().hashCode();
hash = (37 * hash) + APP_FIELD_NUMBER;
hash = (53 * hash) + getApp().hashCode();
hash = (37 * hash) + STREAM_FIELD_NUMBER;
hash = (53 * hash) + getStream().hashCode();
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
hash = (37 * hash) + FILENAME_FIELD_NUMBER;
hash = (53 * hash) + getFileName().hashCode();
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimeStamp().hashCode();
hash = (37 * hash) + WIDTH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getWidth());
hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeight());
hash = (37 * hash) + SERVICEID_FIELD_NUMBER;
hash = (53 * hash) + getServiceID().hashCode();
hash = (37 * hash) + URI_FIELD_NUMBER;
hash = (53 * hash) + getURI().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static CDNSnapshotHistory parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static CDNSnapshotHistory parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static CDNSnapshotHistory parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static CDNSnapshotHistory parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static CDNSnapshotHistory parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static CDNSnapshotHistory parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static CDNSnapshotHistory parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static CDNSnapshotHistory 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 CDNSnapshotHistory parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static CDNSnapshotHistory 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 CDNSnapshotHistory parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static CDNSnapshotHistory parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(CDNSnapshotHistory prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Volcengine.Live.Models.Business.CDNSnapshotHistory}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Volcengine.Live.Models.Business.CDNSnapshotHistory)
CDNSnapshotHistoryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return SnapshotManage.internal_static_Volcengine_Live_Models_Business_CDNSnapshotHistory_descriptor;
}
@Override
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return SnapshotManage.internal_static_Volcengine_Live_Models_Business_CDNSnapshotHistory_fieldAccessorTable
.ensureFieldAccessorsInitialized(
CDNSnapshotHistory.class, Builder.class);
}
// Construct using com.volcengine.service.live.model.business.CDNSnapshotHistory.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@Override
public Builder clear() {
super.clear();
vhost_ = "";
app_ = "";
stream_ = "";
path_ = "";
fileName_ = "";
timeStamp_ = "";
width_ = 0L;
height_ = 0L;
serviceID_ = "";
uRI_ = "";
return this;
}
@Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return SnapshotManage.internal_static_Volcengine_Live_Models_Business_CDNSnapshotHistory_descriptor;
}
@Override
public CDNSnapshotHistory getDefaultInstanceForType() {
return CDNSnapshotHistory.getDefaultInstance();
}
@Override
public CDNSnapshotHistory build() {
CDNSnapshotHistory result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@Override
public CDNSnapshotHistory buildPartial() {
CDNSnapshotHistory result = new CDNSnapshotHistory(this);
result.vhost_ = vhost_;
result.app_ = app_;
result.stream_ = stream_;
result.path_ = path_;
result.fileName_ = fileName_;
result.timeStamp_ = timeStamp_;
result.width_ = width_;
result.height_ = height_;
result.serviceID_ = serviceID_;
result.uRI_ = uRI_;
onBuilt();
return result;
}
@Override
public Builder clone() {
return super.clone();
}
@Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return super.setField(field, value);
}
@Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return super.setRepeatedField(field, index, value);
}
@Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return super.addRepeatedField(field, value);
}
@Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof CDNSnapshotHistory) {
return mergeFrom((CDNSnapshotHistory)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(CDNSnapshotHistory other) {
if (other == CDNSnapshotHistory.getDefaultInstance()) return this;
if (!other.getVhost().isEmpty()) {
vhost_ = other.vhost_;
onChanged();
}
if (!other.getApp().isEmpty()) {
app_ = other.app_;
onChanged();
}
if (!other.getStream().isEmpty()) {
stream_ = other.stream_;
onChanged();
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
if (!other.getFileName().isEmpty()) {
fileName_ = other.fileName_;
onChanged();
}
if (!other.getTimeStamp().isEmpty()) {
timeStamp_ = other.timeStamp_;
onChanged();
}
if (other.getWidth() != 0L) {
setWidth(other.getWidth());
}
if (other.getHeight() != 0L) {
setHeight(other.getHeight());
}
if (!other.getServiceID().isEmpty()) {
serviceID_ = other.serviceID_;
onChanged();
}
if (!other.getURI().isEmpty()) {
uRI_ = other.uRI_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@Override
public final boolean isInitialized() {
return true;
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
CDNSnapshotHistory parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (CDNSnapshotHistory) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private Object vhost_ = "";
/**
*
* Vhost表示视频直播服务的配置空间
*
*
* string Vhost = 1;
* @return The vhost.
*/
public String getVhost() {
Object ref = vhost_;
if (!(ref instanceof String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
vhost_ = s;
return s;
} else {
return (String) ref;
}
}
/**
*
* Vhost表示视频直播服务的配置空间
*
*
* string Vhost = 1;
* @return The bytes for vhost.
*/
public com.google.protobuf.ByteString
getVhostBytes() {
Object ref = vhost_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
vhost_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Vhost表示视频直播服务的配置空间
*
*
* string Vhost = 1;
* @param value The vhost to set.
* @return This builder for chaining.
*/
public Builder setVhost(
String value) {
if (value == null) {
throw new NullPointerException();
}
vhost_ = value;
onChanged();
return this;
}
/**
*
* Vhost表示视频直播服务的配置空间
*
*
* string Vhost = 1;
* @return This builder for chaining.
*/
public Builder clearVhost() {
vhost_ = getDefaultInstance().getVhost();
onChanged();
return this;
}
/**
*
* Vhost表示视频直播服务的配置空间
*
*
* string Vhost = 1;
* @param value The bytes for vhost to set.
* @return This builder for chaining.
*/
public Builder setVhostBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
vhost_ = value;
onChanged();
return this;
}
private Object app_ = "";
/**
*
* 应用名称
*
*
* string App = 2;
* @return The app.
*/
public String getApp() {
Object ref = app_;
if (!(ref instanceof String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
app_ = s;
return s;
} else {
return (String) ref;
}
}
/**
*
* 应用名称
*
*
* string App = 2;
* @return The bytes for app.
*/
public com.google.protobuf.ByteString
getAppBytes() {
Object ref = app_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
app_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 应用名称
*
*
* string App = 2;
* @param value The app to set.
* @return This builder for chaining.
*/
public Builder setApp(
String value) {
if (value == null) {
throw new NullPointerException();
}
app_ = value;
onChanged();
return this;
}
/**
*
* 应用名称
*
*
* string App = 2;
* @return This builder for chaining.
*/
public Builder clearApp() {
app_ = getDefaultInstance().getApp();
onChanged();
return this;
}
/**
*
* 应用名称
*
*
* string App = 2;
* @param value The bytes for app to set.
* @return This builder for chaining.
*/
public Builder setAppBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
app_ = value;
onChanged();
return this;
}
private Object stream_ = "";
/**
*
* 流名称
*
*
* string Stream = 3;
* @return The stream.
*/
public String getStream() {
Object ref = stream_;
if (!(ref instanceof String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
stream_ = s;
return s;
} else {
return (String) ref;
}
}
/**
*
* 流名称
*
*
* string Stream = 3;
* @return The bytes for stream.
*/
public com.google.protobuf.ByteString
getStreamBytes() {
Object ref = stream_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
stream_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 流名称
*
*
* string Stream = 3;
* @param value The stream to set.
* @return This builder for chaining.
*/
public Builder setStream(
String value) {
if (value == null) {
throw new NullPointerException();
}
stream_ = value;
onChanged();
return this;
}
/**
*
* 流名称
*
*
* string Stream = 3;
* @return This builder for chaining.
*/
public Builder clearStream() {
stream_ = getDefaultInstance().getStream();
onChanged();
return this;
}
/**
*
* 流名称
*
*
* string Stream = 3;
* @param value The bytes for stream to set.
* @return This builder for chaining.
*/
public Builder setStreamBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
stream_ = value;
onChanged();
return this;
}
private Object path_ = "";
/**
*
* 截图文件保存的路径
*
*
* string Path = 4;
* @return The path.
*/
public String getPath() {
Object ref = path_;
if (!(ref instanceof String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
path_ = s;
return s;
} else {
return (String) ref;
}
}
/**
*
* 截图文件保存的路径
*
*
* string Path = 4;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 截图文件保存的路径
*
*
* string Path = 4;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
String value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
onChanged();
return this;
}
/**
*
* 截图文件保存的路径
*
*
* string Path = 4;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
*
* 截图文件保存的路径
*
*
* string Path = 4;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
path_ = value;
onChanged();
return this;
}
private Object fileName_ = "";
/**
*
*文件大小
*
*
* string FileName = 5;
* @return The fileName.
*/
public String getFileName() {
Object ref = fileName_;
if (!(ref instanceof String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
fileName_ = s;
return s;
} else {
return (String) ref;
}
}
/**
*
*文件大小
*
*
* string FileName = 5;
* @return The bytes for fileName.
*/
public com.google.protobuf.ByteString
getFileNameBytes() {
Object ref = fileName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
fileName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*文件大小
*
*
* string FileName = 5;
* @param value The fileName to set.
* @return This builder for chaining.
*/
public Builder setFileName(
String value) {
if (value == null) {
throw new NullPointerException();
}
fileName_ = value;
onChanged();
return this;
}
/**
*
*文件大小
*
*
* string FileName = 5;
* @return This builder for chaining.
*/
public Builder clearFileName() {
fileName_ = getDefaultInstance().getFileName();
onChanged();
return this;
}
/**
*
*文件大小
*
*
* string FileName = 5;
* @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 Object timeStamp_ = "";
/**
*
* 直播流开始时间
*
*
* string TimeStamp = 6;
* @return The timeStamp.
*/
public String getTimeStamp() {
Object ref = timeStamp_;
if (!(ref instanceof String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
timeStamp_ = s;
return s;
} else {
return (String) ref;
}
}
/**
*
* 直播流开始时间
*
*
* string TimeStamp = 6;
* @return The bytes for timeStamp.
*/
public com.google.protobuf.ByteString
getTimeStampBytes() {
Object ref = timeStamp_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
timeStamp_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 直播流开始时间
*
*
* string TimeStamp = 6;
* @param value The timeStamp to set.
* @return This builder for chaining.
*/
public Builder setTimeStamp(
String value) {
if (value == null) {
throw new NullPointerException();
}
timeStamp_ = value;
onChanged();
return this;
}
/**
*
* 直播流开始时间
*
*
* string TimeStamp = 6;
* @return This builder for chaining.
*/
public Builder clearTimeStamp() {
timeStamp_ = getDefaultInstance().getTimeStamp();
onChanged();
return this;
}
/**
*
* 直播流开始时间
*
*
* string TimeStamp = 6;
* @param value The bytes for timeStamp to set.
* @return This builder for chaining.
*/
public Builder setTimeStampBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
timeStamp_ = value;
onChanged();
return this;
}
private long width_ ;
/**
*
* 视频宽度
*
*
* int64 Width = 7;
* @return The width.
*/
@Override
public long getWidth() {
return width_;
}
/**
*
* 视频宽度
*
*
* int64 Width = 7;
* @param value The width to set.
* @return This builder for chaining.
*/
public Builder setWidth(long value) {
width_ = value;
onChanged();
return this;
}
/**
*
* 视频宽度
*
*
* int64 Width = 7;
* @return This builder for chaining.
*/
public Builder clearWidth() {
width_ = 0L;
onChanged();
return this;
}
private long height_ ;
/**
*
* 视频高度
*
*
* int64 Height = 8;
* @return The height.
*/
@Override
public long getHeight() {
return height_;
}
/**
*
* 视频高度
*
*
* int64 Height = 8;
* @param value The height to set.
* @return This builder for chaining.
*/
public Builder setHeight(long value) {
height_ = value;
onChanged();
return this;
}
/**
*
* 视频高度
*
*
* int64 Height = 8;
* @return This builder for chaining.
*/
public Builder clearHeight() {
height_ = 0L;
onChanged();
return this;
}
private Object serviceID_ = "";
/**
*
* 直播流开始时间
*
*
* string ServiceID = 9;
* @return The serviceID.
*/
public String getServiceID() {
Object ref = serviceID_;
if (!(ref instanceof String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
serviceID_ = s;
return s;
} else {
return (String) ref;
}
}
/**
*
* 直播流开始时间
*
*
* string ServiceID = 9;
* @return The bytes for serviceID.
*/
public com.google.protobuf.ByteString
getServiceIDBytes() {
Object ref = serviceID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
serviceID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 直播流开始时间
*
*
* string ServiceID = 9;
* @param value The serviceID to set.
* @return This builder for chaining.
*/
public Builder setServiceID(
String value) {
if (value == null) {
throw new NullPointerException();
}
serviceID_ = value;
onChanged();
return this;
}
/**
*
* 直播流开始时间
*
*
* string ServiceID = 9;
* @return This builder for chaining.
*/
public Builder clearServiceID() {
serviceID_ = getDefaultInstance().getServiceID();
onChanged();
return this;
}
/**
*
* 直播流开始时间
*
*
* string ServiceID = 9;
* @param value The bytes for serviceID to set.
* @return This builder for chaining.
*/
public Builder setServiceIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceID_ = value;
onChanged();
return this;
}
private Object uRI_ = "";
/**
*
* 直播流开始时间
*
*
* string URI = 10;
* @return The uRI.
*/
public String getURI() {
Object ref = uRI_;
if (!(ref instanceof String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
uRI_ = s;
return s;
} else {
return (String) ref;
}
}
/**
*
* 直播流开始时间
*
*
* string URI = 10;
* @return The bytes for uRI.
*/
public com.google.protobuf.ByteString
getURIBytes() {
Object ref = uRI_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
uRI_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 直播流开始时间
*
*
* string URI = 10;
* @param value The uRI to set.
* @return This builder for chaining.
*/
public Builder setURI(
String value) {
if (value == null) {
throw new NullPointerException();
}
uRI_ = value;
onChanged();
return this;
}
/**
*
* 直播流开始时间
*
*
* string URI = 10;
* @return This builder for chaining.
*/
public Builder clearURI() {
uRI_ = getDefaultInstance().getURI();
onChanged();
return this;
}
/**
*
* 直播流开始时间
*
*
* string URI = 10;
* @param value The bytes for uRI to set.
* @return This builder for chaining.
*/
public Builder setURIBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uRI_ = value;
onChanged();
return this;
}
@Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Volcengine.Live.Models.Business.CDNSnapshotHistory)
}
// @@protoc_insertion_point(class_scope:Volcengine.Live.Models.Business.CDNSnapshotHistory)
private static final CDNSnapshotHistory DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new CDNSnapshotHistory();
}
public static CDNSnapshotHistory getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@Override
public CDNSnapshotHistory parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CDNSnapshotHistory(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@Override
public CDNSnapshotHistory getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy