com.volcengine.service.live.model.business.StreamInfoList 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/stream_manage.proto
package com.volcengine.service.live.model.business;
/**
* Protobuf type {@code Volcengine.Live.Models.Business.StreamInfoList}
*/
public final class StreamInfoList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Volcengine.Live.Models.Business.StreamInfoList)
StreamInfoListOrBuilder {
private static final long serialVersionUID = 0L;
// Use StreamInfoList.newBuilder() to construct.
private StreamInfoList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamInfoList() {
vhost_ = "";
domain_ = "";
app_ = "";
stream_ = "";
sessionStartTime_ = "";
previewURL_ = "";
}
@Override
@SuppressWarnings({"unused"})
protected Object newInstance(
UnusedPrivateParameter unused) {
return new StreamInfoList();
}
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StreamInfoList(
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 8: {
iD_ = input.readInt64();
break;
}
case 18: {
String s = input.readStringRequireUtf8();
vhost_ = s;
break;
}
case 26: {
String s = input.readStringRequireUtf8();
domain_ = s;
break;
}
case 34: {
String s = input.readStringRequireUtf8();
app_ = s;
break;
}
case 42: {
String s = input.readStringRequireUtf8();
stream_ = s;
break;
}
case 50: {
String s = input.readStringRequireUtf8();
sessionStartTime_ = s;
break;
}
case 56: {
onlineUser_ = input.readInt64();
break;
}
case 64: {
bandWidth_ = input.readInt64();
break;
}
case 72: {
bitrate_ = input.readInt64();
break;
}
case 80: {
framerate_ = input.readInt64();
break;
}
case 90: {
String s = input.readStringRequireUtf8();
previewURL_ = 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 StreamManage.internal_static_Volcengine_Live_Models_Business_StreamInfoList_descriptor;
}
@Override
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return StreamManage.internal_static_Volcengine_Live_Models_Business_StreamInfoList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
StreamInfoList.class, Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private long iD_;
/**
*
*流ID
*
*
* int64 ID = 1;
* @return The iD.
*/
@Override
public long getID() {
return iD_;
}
public static final int VHOST_FIELD_NUMBER = 2;
private volatile Object vhost_;
/**
*
* 域名空间名称
*
*
* string Vhost = 2;
* @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;
}
}
/**
*
* 域名空间名称
*
*
* string Vhost = 2;
* @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 DOMAIN_FIELD_NUMBER = 3;
private volatile Object domain_;
/**
*
* 域名
*
*
* string Domain = 3;
* @return The domain.
*/
@Override
public String getDomain() {
Object ref = domain_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
domain_ = s;
return s;
}
}
/**
*
* 域名
*
*
* string Domain = 3;
* @return The bytes for domain.
*/
@Override
public com.google.protobuf.ByteString
getDomainBytes() {
Object ref = domain_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
domain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int APP_FIELD_NUMBER = 4;
private volatile Object app_;
/**
*
* 应用名称
*
*
* string App = 4;
* @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 = 4;
* @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 = 5;
private volatile Object stream_;
/**
*
* 流名称
*
*
* string Stream = 5;
* @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 = 5;
* @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 SESSIONSTARTTIME_FIELD_NUMBER = 6;
private volatile Object sessionStartTime_;
/**
*
* 开始推流时间
*
*
* string SessionStartTime = 6;
* @return The sessionStartTime.
*/
@Override
public String getSessionStartTime() {
Object ref = sessionStartTime_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
sessionStartTime_ = s;
return s;
}
}
/**
*
* 开始推流时间
*
*
* string SessionStartTime = 6;
* @return The bytes for sessionStartTime.
*/
@Override
public com.google.protobuf.ByteString
getSessionStartTimeBytes() {
Object ref = sessionStartTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
sessionStartTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ONLINEUSER_FIELD_NUMBER = 7;
private long onlineUser_;
/**
*
* 在线人数
*
*
* int64 OnlineUser = 7;
* @return The onlineUser.
*/
@Override
public long getOnlineUser() {
return onlineUser_;
}
public static final int BANDWIDTH_FIELD_NUMBER = 8;
private long bandWidth_;
/**
*
* 带宽
*
*
* int64 BandWidth = 8;
* @return The bandWidth.
*/
@Override
public long getBandWidth() {
return bandWidth_;
}
public static final int BITRATE_FIELD_NUMBER = 9;
private long bitrate_;
/**
*
* 码率
*
*
* int64 Bitrate = 9;
* @return The bitrate.
*/
@Override
public long getBitrate() {
return bitrate_;
}
public static final int FRAMERATE_FIELD_NUMBER = 10;
private long framerate_;
/**
*
* 帧率
*
*
* int64 Framerate = 10;
* @return The framerate.
*/
@Override
public long getFramerate() {
return framerate_;
}
public static final int PREVIEWURL_FIELD_NUMBER = 11;
private volatile Object previewURL_;
/**
*
* 预览地址
*
*
* string PreviewURL = 11;
* @return The previewURL.
*/
@Override
public String getPreviewURL() {
Object ref = previewURL_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
previewURL_ = s;
return s;
}
}
/**
*
* 预览地址
*
*
* string PreviewURL = 11;
* @return The bytes for previewURL.
*/
@Override
public com.google.protobuf.ByteString
getPreviewURLBytes() {
Object ref = previewURL_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
previewURL_ = 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 (iD_ != 0L) {
output.writeInt64(1, iD_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vhost_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vhost_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domain_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(app_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, app_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stream_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, stream_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionStartTime_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sessionStartTime_);
}
if (onlineUser_ != 0L) {
output.writeInt64(7, onlineUser_);
}
if (bandWidth_ != 0L) {
output.writeInt64(8, bandWidth_);
}
if (bitrate_ != 0L) {
output.writeInt64(9, bitrate_);
}
if (framerate_ != 0L) {
output.writeInt64(10, framerate_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(previewURL_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, previewURL_);
}
unknownFields.writeTo(output);
}
@Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (iD_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, iD_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vhost_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vhost_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domain_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(app_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, app_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stream_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, stream_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionStartTime_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sessionStartTime_);
}
if (onlineUser_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, onlineUser_);
}
if (bandWidth_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, bandWidth_);
}
if (bitrate_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, bitrate_);
}
if (framerate_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(10, framerate_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(previewURL_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, previewURL_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@Override
public boolean equals(final Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof StreamInfoList)) {
return super.equals(obj);
}
StreamInfoList other = (StreamInfoList) obj;
if (getID()
!= other.getID()) return false;
if (!getVhost()
.equals(other.getVhost())) return false;
if (!getDomain()
.equals(other.getDomain())) return false;
if (!getApp()
.equals(other.getApp())) return false;
if (!getStream()
.equals(other.getStream())) return false;
if (!getSessionStartTime()
.equals(other.getSessionStartTime())) return false;
if (getOnlineUser()
!= other.getOnlineUser()) return false;
if (getBandWidth()
!= other.getBandWidth()) return false;
if (getBitrate()
!= other.getBitrate()) return false;
if (getFramerate()
!= other.getFramerate()) return false;
if (!getPreviewURL()
.equals(other.getPreviewURL())) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getID());
hash = (37 * hash) + VHOST_FIELD_NUMBER;
hash = (53 * hash) + getVhost().hashCode();
hash = (37 * hash) + DOMAIN_FIELD_NUMBER;
hash = (53 * hash) + getDomain().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) + SESSIONSTARTTIME_FIELD_NUMBER;
hash = (53 * hash) + getSessionStartTime().hashCode();
hash = (37 * hash) + ONLINEUSER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOnlineUser());
hash = (37 * hash) + BANDWIDTH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBandWidth());
hash = (37 * hash) + BITRATE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBitrate());
hash = (37 * hash) + FRAMERATE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFramerate());
hash = (37 * hash) + PREVIEWURL_FIELD_NUMBER;
hash = (53 * hash) + getPreviewURL().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static StreamInfoList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static StreamInfoList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static StreamInfoList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static StreamInfoList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static StreamInfoList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static StreamInfoList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static StreamInfoList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static StreamInfoList 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 StreamInfoList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static StreamInfoList 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 StreamInfoList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static StreamInfoList 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(StreamInfoList 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.StreamInfoList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Volcengine.Live.Models.Business.StreamInfoList)
StreamInfoListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return StreamManage.internal_static_Volcengine_Live_Models_Business_StreamInfoList_descriptor;
}
@Override
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return StreamManage.internal_static_Volcengine_Live_Models_Business_StreamInfoList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
StreamInfoList.class, Builder.class);
}
// Construct using com.volcengine.service.live.model.business.StreamInfoList.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();
iD_ = 0L;
vhost_ = "";
domain_ = "";
app_ = "";
stream_ = "";
sessionStartTime_ = "";
onlineUser_ = 0L;
bandWidth_ = 0L;
bitrate_ = 0L;
framerate_ = 0L;
previewURL_ = "";
return this;
}
@Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return StreamManage.internal_static_Volcengine_Live_Models_Business_StreamInfoList_descriptor;
}
@Override
public StreamInfoList getDefaultInstanceForType() {
return StreamInfoList.getDefaultInstance();
}
@Override
public StreamInfoList build() {
StreamInfoList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@Override
public StreamInfoList buildPartial() {
StreamInfoList result = new StreamInfoList(this);
result.iD_ = iD_;
result.vhost_ = vhost_;
result.domain_ = domain_;
result.app_ = app_;
result.stream_ = stream_;
result.sessionStartTime_ = sessionStartTime_;
result.onlineUser_ = onlineUser_;
result.bandWidth_ = bandWidth_;
result.bitrate_ = bitrate_;
result.framerate_ = framerate_;
result.previewURL_ = previewURL_;
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 StreamInfoList) {
return mergeFrom((StreamInfoList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(StreamInfoList other) {
if (other == StreamInfoList.getDefaultInstance()) return this;
if (other.getID() != 0L) {
setID(other.getID());
}
if (!other.getVhost().isEmpty()) {
vhost_ = other.vhost_;
onChanged();
}
if (!other.getDomain().isEmpty()) {
domain_ = other.domain_;
onChanged();
}
if (!other.getApp().isEmpty()) {
app_ = other.app_;
onChanged();
}
if (!other.getStream().isEmpty()) {
stream_ = other.stream_;
onChanged();
}
if (!other.getSessionStartTime().isEmpty()) {
sessionStartTime_ = other.sessionStartTime_;
onChanged();
}
if (other.getOnlineUser() != 0L) {
setOnlineUser(other.getOnlineUser());
}
if (other.getBandWidth() != 0L) {
setBandWidth(other.getBandWidth());
}
if (other.getBitrate() != 0L) {
setBitrate(other.getBitrate());
}
if (other.getFramerate() != 0L) {
setFramerate(other.getFramerate());
}
if (!other.getPreviewURL().isEmpty()) {
previewURL_ = other.previewURL_;
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 {
StreamInfoList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (StreamInfoList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long iD_ ;
/**
*
*流ID
*
*
* int64 ID = 1;
* @return The iD.
*/
@Override
public long getID() {
return iD_;
}
/**
*
*流ID
*
*
* int64 ID = 1;
* @param value The iD to set.
* @return This builder for chaining.
*/
public Builder setID(long value) {
iD_ = value;
onChanged();
return this;
}
/**
*
*流ID
*
*
* int64 ID = 1;
* @return This builder for chaining.
*/
public Builder clearID() {
iD_ = 0L;
onChanged();
return this;
}
private Object vhost_ = "";
/**
*
* 域名空间名称
*
*
* string Vhost = 2;
* @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;
}
}
/**
*
* 域名空间名称
*
*
* string Vhost = 2;
* @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;
}
}
/**
*
* 域名空间名称
*
*
* string Vhost = 2;
* @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;
}
/**
*
* 域名空间名称
*
*
* string Vhost = 2;
* @return This builder for chaining.
*/
public Builder clearVhost() {
vhost_ = getDefaultInstance().getVhost();
onChanged();
return this;
}
/**
*
* 域名空间名称
*
*
* string Vhost = 2;
* @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 domain_ = "";
/**
*
* 域名
*
*
* string Domain = 3;
* @return The domain.
*/
public String getDomain() {
Object ref = domain_;
if (!(ref instanceof String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
domain_ = s;
return s;
} else {
return (String) ref;
}
}
/**
*
* 域名
*
*
* string Domain = 3;
* @return The bytes for domain.
*/
public com.google.protobuf.ByteString
getDomainBytes() {
Object ref = domain_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
domain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 域名
*
*
* string Domain = 3;
* @param value The domain to set.
* @return This builder for chaining.
*/
public Builder setDomain(
String value) {
if (value == null) {
throw new NullPointerException();
}
domain_ = value;
onChanged();
return this;
}
/**
*
* 域名
*
*
* string Domain = 3;
* @return This builder for chaining.
*/
public Builder clearDomain() {
domain_ = getDefaultInstance().getDomain();
onChanged();
return this;
}
/**
*
* 域名
*
*
* string Domain = 3;
* @param value The bytes for domain to set.
* @return This builder for chaining.
*/
public Builder setDomainBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
domain_ = value;
onChanged();
return this;
}
private Object app_ = "";
/**
*
* 应用名称
*
*
* string App = 4;
* @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 = 4;
* @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 = 4;
* @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 = 4;
* @return This builder for chaining.
*/
public Builder clearApp() {
app_ = getDefaultInstance().getApp();
onChanged();
return this;
}
/**
*
* 应用名称
*
*
* string App = 4;
* @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 = 5;
* @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 = 5;
* @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 = 5;
* @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 = 5;
* @return This builder for chaining.
*/
public Builder clearStream() {
stream_ = getDefaultInstance().getStream();
onChanged();
return this;
}
/**
*
* 流名称
*
*
* string Stream = 5;
* @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 sessionStartTime_ = "";
/**
*
* 开始推流时间
*
*
* string SessionStartTime = 6;
* @return The sessionStartTime.
*/
public String getSessionStartTime() {
Object ref = sessionStartTime_;
if (!(ref instanceof String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
sessionStartTime_ = s;
return s;
} else {
return (String) ref;
}
}
/**
*
* 开始推流时间
*
*
* string SessionStartTime = 6;
* @return The bytes for sessionStartTime.
*/
public com.google.protobuf.ByteString
getSessionStartTimeBytes() {
Object ref = sessionStartTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
sessionStartTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 开始推流时间
*
*
* string SessionStartTime = 6;
* @param value The sessionStartTime to set.
* @return This builder for chaining.
*/
public Builder setSessionStartTime(
String value) {
if (value == null) {
throw new NullPointerException();
}
sessionStartTime_ = value;
onChanged();
return this;
}
/**
*
* 开始推流时间
*
*
* string SessionStartTime = 6;
* @return This builder for chaining.
*/
public Builder clearSessionStartTime() {
sessionStartTime_ = getDefaultInstance().getSessionStartTime();
onChanged();
return this;
}
/**
*
* 开始推流时间
*
*
* string SessionStartTime = 6;
* @param value The bytes for sessionStartTime to set.
* @return This builder for chaining.
*/
public Builder setSessionStartTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sessionStartTime_ = value;
onChanged();
return this;
}
private long onlineUser_ ;
/**
*
* 在线人数
*
*
* int64 OnlineUser = 7;
* @return The onlineUser.
*/
@Override
public long getOnlineUser() {
return onlineUser_;
}
/**
*
* 在线人数
*
*
* int64 OnlineUser = 7;
* @param value The onlineUser to set.
* @return This builder for chaining.
*/
public Builder setOnlineUser(long value) {
onlineUser_ = value;
onChanged();
return this;
}
/**
*
* 在线人数
*
*
* int64 OnlineUser = 7;
* @return This builder for chaining.
*/
public Builder clearOnlineUser() {
onlineUser_ = 0L;
onChanged();
return this;
}
private long bandWidth_ ;
/**
*
* 带宽
*
*
* int64 BandWidth = 8;
* @return The bandWidth.
*/
@Override
public long getBandWidth() {
return bandWidth_;
}
/**
*
* 带宽
*
*
* int64 BandWidth = 8;
* @param value The bandWidth to set.
* @return This builder for chaining.
*/
public Builder setBandWidth(long value) {
bandWidth_ = value;
onChanged();
return this;
}
/**
*
* 带宽
*
*
* int64 BandWidth = 8;
* @return This builder for chaining.
*/
public Builder clearBandWidth() {
bandWidth_ = 0L;
onChanged();
return this;
}
private long bitrate_ ;
/**
*
* 码率
*
*
* int64 Bitrate = 9;
* @return The bitrate.
*/
@Override
public long getBitrate() {
return bitrate_;
}
/**
*
* 码率
*
*
* int64 Bitrate = 9;
* @param value The bitrate to set.
* @return This builder for chaining.
*/
public Builder setBitrate(long value) {
bitrate_ = value;
onChanged();
return this;
}
/**
*
* 码率
*
*
* int64 Bitrate = 9;
* @return This builder for chaining.
*/
public Builder clearBitrate() {
bitrate_ = 0L;
onChanged();
return this;
}
private long framerate_ ;
/**
*
* 帧率
*
*
* int64 Framerate = 10;
* @return The framerate.
*/
@Override
public long getFramerate() {
return framerate_;
}
/**
*
* 帧率
*
*
* int64 Framerate = 10;
* @param value The framerate to set.
* @return This builder for chaining.
*/
public Builder setFramerate(long value) {
framerate_ = value;
onChanged();
return this;
}
/**
*
* 帧率
*
*
* int64 Framerate = 10;
* @return This builder for chaining.
*/
public Builder clearFramerate() {
framerate_ = 0L;
onChanged();
return this;
}
private Object previewURL_ = "";
/**
*
* 预览地址
*
*
* string PreviewURL = 11;
* @return The previewURL.
*/
public String getPreviewURL() {
Object ref = previewURL_;
if (!(ref instanceof String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
previewURL_ = s;
return s;
} else {
return (String) ref;
}
}
/**
*
* 预览地址
*
*
* string PreviewURL = 11;
* @return The bytes for previewURL.
*/
public com.google.protobuf.ByteString
getPreviewURLBytes() {
Object ref = previewURL_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
previewURL_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 预览地址
*
*
* string PreviewURL = 11;
* @param value The previewURL to set.
* @return This builder for chaining.
*/
public Builder setPreviewURL(
String value) {
if (value == null) {
throw new NullPointerException();
}
previewURL_ = value;
onChanged();
return this;
}
/**
*
* 预览地址
*
*
* string PreviewURL = 11;
* @return This builder for chaining.
*/
public Builder clearPreviewURL() {
previewURL_ = getDefaultInstance().getPreviewURL();
onChanged();
return this;
}
/**
*
* 预览地址
*
*
* string PreviewURL = 11;
* @param value The bytes for previewURL to set.
* @return This builder for chaining.
*/
public Builder setPreviewURLBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
previewURL_ = 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.StreamInfoList)
}
// @@protoc_insertion_point(class_scope:Volcengine.Live.Models.Business.StreamInfoList)
private static final StreamInfoList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new StreamInfoList();
}
public static StreamInfoList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@Override
public StreamInfoList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StreamInfoList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@Override
public StreamInfoList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy