com.volcengine.service.live.model.request.UpdateRelaySourceRequest 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/request/request_live.proto
package com.volcengine.service.live.model.request;
/**
* Protobuf type {@code Volcengine.Live.Models.Request.UpdateRelaySourceRequest}
*/
public final class UpdateRelaySourceRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Volcengine.Live.Models.Request.UpdateRelaySourceRequest)
UpdateRelaySourceRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateRelaySourceRequest.newBuilder() to construct.
private UpdateRelaySourceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateRelaySourceRequest() {
vhost_ = "";
app_ = "";
relaySourceDomainList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
relaySourceProtocol_ = "";
}
@Override
@SuppressWarnings({"unused"})
protected Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateRelaySourceRequest();
}
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateRelaySourceRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
String s = input.readStringRequireUtf8();
vhost_ = s;
break;
}
case 18: {
String s = input.readStringRequireUtf8();
app_ = s;
break;
}
case 26: {
String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
relaySourceDomainList_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
relaySourceDomainList_.add(s);
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
relaySourceParams_ = com.google.protobuf.MapField.newMapField(
RelaySourceParamsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
relaySourceParams__ = input.readMessage(
RelaySourceParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
relaySourceParams_.getMutableMap().put(
relaySourceParams__.getKey(), relaySourceParams__.getValue());
break;
}
case 42: {
String s = input.readStringRequireUtf8();
relaySourceProtocol_ = 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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
relaySourceDomainList_ = relaySourceDomainList_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return LiveRequest.internal_static_Volcengine_Live_Models_Request_UpdateRelaySourceRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetRelaySourceParams();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@Override
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return LiveRequest.internal_static_Volcengine_Live_Models_Request_UpdateRelaySourceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
UpdateRelaySourceRequest.class, Builder.class);
}
public static final int VHOST_FIELD_NUMBER = 1;
private volatile Object 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;
}
}
/**
*
* 域名空间名称。
*
*
* 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_;
/**
*
* 应用名称,由 1 到 30 位数字、字母、下划线及"-"和"."组成。
*
*
* 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;
}
}
/**
*
* 应用名称,由 1 到 30 位数字、字母、下划线及"-"和"."组成。
*
*
* 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 RELAYSOURCEDOMAINLIST_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList relaySourceDomainList_;
/**
*
* 回源地址数组。
*
*
* repeated string RelaySourceDomainList = 3;
* @return A list containing the relaySourceDomainList.
*/
public com.google.protobuf.ProtocolStringList
getRelaySourceDomainListList() {
return relaySourceDomainList_;
}
/**
*
* 回源地址数组。
*
*
* repeated string RelaySourceDomainList = 3;
* @return The count of relaySourceDomainList.
*/
public int getRelaySourceDomainListCount() {
return relaySourceDomainList_.size();
}
/**
*
* 回源地址数组。
*
*
* repeated string RelaySourceDomainList = 3;
* @param index The index of the element to return.
* @return The relaySourceDomainList at the given index.
*/
public String getRelaySourceDomainList(int index) {
return relaySourceDomainList_.get(index);
}
/**
*
* 回源地址数组。
*
*
* repeated string RelaySourceDomainList = 3;
* @param index The index of the value to return.
* @return The bytes of the relaySourceDomainList at the given index.
*/
public com.google.protobuf.ByteString
getRelaySourceDomainListBytes(int index) {
return relaySourceDomainList_.getByteString(index);
}
public static final int RELAYSOURCEPARAMS_FIELD_NUMBER = 4;
private static final class RelaySourceParamsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
String, String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
LiveRequest.internal_static_Volcengine_Live_Models_Request_UpdateRelaySourceRequest_RelaySourceParamsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
String, String> relaySourceParams_;
private com.google.protobuf.MapField
internalGetRelaySourceParams() {
if (relaySourceParams_ == null) {
return com.google.protobuf.MapField.emptyMapField(
RelaySourceParamsDefaultEntryHolder.defaultEntry);
}
return relaySourceParams_;
}
public int getRelaySourceParamsCount() {
return internalGetRelaySourceParams().getMap().size();
}
/**
*
* 回源参数。
*
*
* map<string, string> RelaySourceParams = 4;
*/
@Override
public boolean containsRelaySourceParams(
String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetRelaySourceParams().getMap().containsKey(key);
}
/**
* Use {@link #getRelaySourceParamsMap()} instead.
*/
@Override
@Deprecated
public java.util.Map getRelaySourceParams() {
return getRelaySourceParamsMap();
}
/**
*
* 回源参数。
*
*
* map<string, string> RelaySourceParams = 4;
*/
@Override
public java.util.Map getRelaySourceParamsMap() {
return internalGetRelaySourceParams().getMap();
}
/**
*
* 回源参数。
*
*
* map<string, string> RelaySourceParams = 4;
*/
@Override
public String getRelaySourceParamsOrDefault(
String key,
String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetRelaySourceParams().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* 回源参数。
*
*
* map<string, string> RelaySourceParams = 4;
*/
@Override
public String getRelaySourceParamsOrThrow(
String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetRelaySourceParams().getMap();
if (!map.containsKey(key)) {
throw new IllegalArgumentException();
}
return map.get(key);
}
public static final int RELAYSOURCEPROTOCOL_FIELD_NUMBER = 5;
private volatile Object relaySourceProtocol_;
/**
*
* 回源协议,目前只支持以下两种:<li>rmtp <li>flv。
*
*
* string RelaySourceProtocol = 5;
* @return The relaySourceProtocol.
*/
@Override
public String getRelaySourceProtocol() {
Object ref = relaySourceProtocol_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
relaySourceProtocol_ = s;
return s;
}
}
/**
*
* 回源协议,目前只支持以下两种:<li>rmtp <li>flv。
*
*
* string RelaySourceProtocol = 5;
* @return The bytes for relaySourceProtocol.
*/
@Override
public com.google.protobuf.ByteString
getRelaySourceProtocolBytes() {
Object ref = relaySourceProtocol_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
relaySourceProtocol_ = 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_);
}
for (int i = 0; i < relaySourceDomainList_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, relaySourceDomainList_.getRaw(i));
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetRelaySourceParams(),
RelaySourceParamsDefaultEntryHolder.defaultEntry,
4);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relaySourceProtocol_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, relaySourceProtocol_);
}
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_);
}
{
int dataSize = 0;
for (int i = 0; i < relaySourceDomainList_.size(); i++) {
dataSize += computeStringSizeNoTag(relaySourceDomainList_.getRaw(i));
}
size += dataSize;
size += 1 * getRelaySourceDomainListList().size();
}
for (java.util.Map.Entry entry
: internalGetRelaySourceParams().getMap().entrySet()) {
com.google.protobuf.MapEntry
relaySourceParams__ = RelaySourceParamsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, relaySourceParams__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relaySourceProtocol_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, relaySourceProtocol_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@Override
public boolean equals(final Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof UpdateRelaySourceRequest)) {
return super.equals(obj);
}
UpdateRelaySourceRequest other = (UpdateRelaySourceRequest) obj;
if (!getVhost()
.equals(other.getVhost())) return false;
if (!getApp()
.equals(other.getApp())) return false;
if (!getRelaySourceDomainListList()
.equals(other.getRelaySourceDomainListList())) return false;
if (!internalGetRelaySourceParams().equals(
other.internalGetRelaySourceParams())) return false;
if (!getRelaySourceProtocol()
.equals(other.getRelaySourceProtocol())) 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();
if (getRelaySourceDomainListCount() > 0) {
hash = (37 * hash) + RELAYSOURCEDOMAINLIST_FIELD_NUMBER;
hash = (53 * hash) + getRelaySourceDomainListList().hashCode();
}
if (!internalGetRelaySourceParams().getMap().isEmpty()) {
hash = (37 * hash) + RELAYSOURCEPARAMS_FIELD_NUMBER;
hash = (53 * hash) + internalGetRelaySourceParams().hashCode();
}
hash = (37 * hash) + RELAYSOURCEPROTOCOL_FIELD_NUMBER;
hash = (53 * hash) + getRelaySourceProtocol().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static UpdateRelaySourceRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static UpdateRelaySourceRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static UpdateRelaySourceRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static UpdateRelaySourceRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static UpdateRelaySourceRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static UpdateRelaySourceRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static UpdateRelaySourceRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static UpdateRelaySourceRequest 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 UpdateRelaySourceRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static UpdateRelaySourceRequest 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 UpdateRelaySourceRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static UpdateRelaySourceRequest 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(UpdateRelaySourceRequest 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.Request.UpdateRelaySourceRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Volcengine.Live.Models.Request.UpdateRelaySourceRequest)
UpdateRelaySourceRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return LiveRequest.internal_static_Volcengine_Live_Models_Request_UpdateRelaySourceRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetRelaySourceParams();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 4:
return internalGetMutableRelaySourceParams();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@Override
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return LiveRequest.internal_static_Volcengine_Live_Models_Request_UpdateRelaySourceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
UpdateRelaySourceRequest.class, Builder.class);
}
// Construct using com.volcengine.service.live.model.request.UpdateRelaySourceRequest.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_ = "";
relaySourceDomainList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
internalGetMutableRelaySourceParams().clear();
relaySourceProtocol_ = "";
return this;
}
@Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return LiveRequest.internal_static_Volcengine_Live_Models_Request_UpdateRelaySourceRequest_descriptor;
}
@Override
public UpdateRelaySourceRequest getDefaultInstanceForType() {
return UpdateRelaySourceRequest.getDefaultInstance();
}
@Override
public UpdateRelaySourceRequest build() {
UpdateRelaySourceRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@Override
public UpdateRelaySourceRequest buildPartial() {
UpdateRelaySourceRequest result = new UpdateRelaySourceRequest(this);
int from_bitField0_ = bitField0_;
result.vhost_ = vhost_;
result.app_ = app_;
if (((bitField0_ & 0x00000001) != 0)) {
relaySourceDomainList_ = relaySourceDomainList_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.relaySourceDomainList_ = relaySourceDomainList_;
result.relaySourceParams_ = internalGetRelaySourceParams();
result.relaySourceParams_.makeImmutable();
result.relaySourceProtocol_ = relaySourceProtocol_;
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 UpdateRelaySourceRequest) {
return mergeFrom((UpdateRelaySourceRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(UpdateRelaySourceRequest other) {
if (other == UpdateRelaySourceRequest.getDefaultInstance()) return this;
if (!other.getVhost().isEmpty()) {
vhost_ = other.vhost_;
onChanged();
}
if (!other.getApp().isEmpty()) {
app_ = other.app_;
onChanged();
}
if (!other.relaySourceDomainList_.isEmpty()) {
if (relaySourceDomainList_.isEmpty()) {
relaySourceDomainList_ = other.relaySourceDomainList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRelaySourceDomainListIsMutable();
relaySourceDomainList_.addAll(other.relaySourceDomainList_);
}
onChanged();
}
internalGetMutableRelaySourceParams().mergeFrom(
other.internalGetRelaySourceParams());
if (!other.getRelaySourceProtocol().isEmpty()) {
relaySourceProtocol_ = other.relaySourceProtocol_;
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 {
UpdateRelaySourceRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (UpdateRelaySourceRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private Object 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;
}
}
/**
*
* 域名空间名称。
*
*
* 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;
}
}
/**
*
* 域名空间名称。
*
*
* 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;
}
/**
*
* 域名空间名称。
*
*
* string Vhost = 1;
* @return This builder for chaining.
*/
public Builder clearVhost() {
vhost_ = getDefaultInstance().getVhost();
onChanged();
return this;
}
/**
*
* 域名空间名称。
*
*
* 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_ = "";
/**
*
* 应用名称,由 1 到 30 位数字、字母、下划线及"-"和"."组成。
*
*
* 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;
}
}
/**
*
* 应用名称,由 1 到 30 位数字、字母、下划线及"-"和"."组成。
*
*
* 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;
}
}
/**
*
* 应用名称,由 1 到 30 位数字、字母、下划线及"-"和"."组成。
*
*
* 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;
}
/**
*
* 应用名称,由 1 到 30 位数字、字母、下划线及"-"和"."组成。
*
*
* string App = 2;
* @return This builder for chaining.
*/
public Builder clearApp() {
app_ = getDefaultInstance().getApp();
onChanged();
return this;
}
/**
*
* 应用名称,由 1 到 30 位数字、字母、下划线及"-"和"."组成。
*
*
* 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 com.google.protobuf.LazyStringList relaySourceDomainList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureRelaySourceDomainListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
relaySourceDomainList_ = new com.google.protobuf.LazyStringArrayList(relaySourceDomainList_);
bitField0_ |= 0x00000001;
}
}
/**
*
* 回源地址数组。
*
*
* repeated string RelaySourceDomainList = 3;
* @return A list containing the relaySourceDomainList.
*/
public com.google.protobuf.ProtocolStringList
getRelaySourceDomainListList() {
return relaySourceDomainList_.getUnmodifiableView();
}
/**
*
* 回源地址数组。
*
*
* repeated string RelaySourceDomainList = 3;
* @return The count of relaySourceDomainList.
*/
public int getRelaySourceDomainListCount() {
return relaySourceDomainList_.size();
}
/**
*
* 回源地址数组。
*
*
* repeated string RelaySourceDomainList = 3;
* @param index The index of the element to return.
* @return The relaySourceDomainList at the given index.
*/
public String getRelaySourceDomainList(int index) {
return relaySourceDomainList_.get(index);
}
/**
*
* 回源地址数组。
*
*
* repeated string RelaySourceDomainList = 3;
* @param index The index of the value to return.
* @return The bytes of the relaySourceDomainList at the given index.
*/
public com.google.protobuf.ByteString
getRelaySourceDomainListBytes(int index) {
return relaySourceDomainList_.getByteString(index);
}
/**
*
* 回源地址数组。
*
*
* repeated string RelaySourceDomainList = 3;
* @param index The index to set the value at.
* @param value The relaySourceDomainList to set.
* @return This builder for chaining.
*/
public Builder setRelaySourceDomainList(
int index, String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRelaySourceDomainListIsMutable();
relaySourceDomainList_.set(index, value);
onChanged();
return this;
}
/**
*
* 回源地址数组。
*
*
* repeated string RelaySourceDomainList = 3;
* @param value The relaySourceDomainList to add.
* @return This builder for chaining.
*/
public Builder addRelaySourceDomainList(
String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRelaySourceDomainListIsMutable();
relaySourceDomainList_.add(value);
onChanged();
return this;
}
/**
*
* 回源地址数组。
*
*
* repeated string RelaySourceDomainList = 3;
* @param values The relaySourceDomainList to add.
* @return This builder for chaining.
*/
public Builder addAllRelaySourceDomainList(
Iterable values) {
ensureRelaySourceDomainListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, relaySourceDomainList_);
onChanged();
return this;
}
/**
*
* 回源地址数组。
*
*
* repeated string RelaySourceDomainList = 3;
* @return This builder for chaining.
*/
public Builder clearRelaySourceDomainList() {
relaySourceDomainList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* 回源地址数组。
*
*
* repeated string RelaySourceDomainList = 3;
* @param value The bytes of the relaySourceDomainList to add.
* @return This builder for chaining.
*/
public Builder addRelaySourceDomainListBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureRelaySourceDomainListIsMutable();
relaySourceDomainList_.add(value);
onChanged();
return this;
}
private com.google.protobuf.MapField<
String, String> relaySourceParams_;
private com.google.protobuf.MapField
internalGetRelaySourceParams() {
if (relaySourceParams_ == null) {
return com.google.protobuf.MapField.emptyMapField(
RelaySourceParamsDefaultEntryHolder.defaultEntry);
}
return relaySourceParams_;
}
private com.google.protobuf.MapField
internalGetMutableRelaySourceParams() {
onChanged();;
if (relaySourceParams_ == null) {
relaySourceParams_ = com.google.protobuf.MapField.newMapField(
RelaySourceParamsDefaultEntryHolder.defaultEntry);
}
if (!relaySourceParams_.isMutable()) {
relaySourceParams_ = relaySourceParams_.copy();
}
return relaySourceParams_;
}
public int getRelaySourceParamsCount() {
return internalGetRelaySourceParams().getMap().size();
}
/**
*
* 回源参数。
*
*
* map<string, string> RelaySourceParams = 4;
*/
@Override
public boolean containsRelaySourceParams(
String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetRelaySourceParams().getMap().containsKey(key);
}
/**
* Use {@link #getRelaySourceParamsMap()} instead.
*/
@Override
@Deprecated
public java.util.Map getRelaySourceParams() {
return getRelaySourceParamsMap();
}
/**
*
* 回源参数。
*
*
* map<string, string> RelaySourceParams = 4;
*/
@Override
public java.util.Map getRelaySourceParamsMap() {
return internalGetRelaySourceParams().getMap();
}
/**
*
* 回源参数。
*
*
* map<string, string> RelaySourceParams = 4;
*/
@Override
public String getRelaySourceParamsOrDefault(
String key,
String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetRelaySourceParams().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* 回源参数。
*
*
* map<string, string> RelaySourceParams = 4;
*/
@Override
public String getRelaySourceParamsOrThrow(
String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetRelaySourceParams().getMap();
if (!map.containsKey(key)) {
throw new IllegalArgumentException();
}
return map.get(key);
}
public Builder clearRelaySourceParams() {
internalGetMutableRelaySourceParams().getMutableMap()
.clear();
return this;
}
/**
*
* 回源参数。
*
*
* map<string, string> RelaySourceParams = 4;
*/
public Builder removeRelaySourceParams(
String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableRelaySourceParams().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@Deprecated
public java.util.Map
getMutableRelaySourceParams() {
return internalGetMutableRelaySourceParams().getMutableMap();
}
/**
*
* 回源参数。
*
*
* map<string, string> RelaySourceParams = 4;
*/
public Builder putRelaySourceParams(
String key,
String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableRelaySourceParams().getMutableMap()
.put(key, value);
return this;
}
/**
*
* 回源参数。
*
*
* map<string, string> RelaySourceParams = 4;
*/
public Builder putAllRelaySourceParams(
java.util.Map values) {
internalGetMutableRelaySourceParams().getMutableMap()
.putAll(values);
return this;
}
private Object relaySourceProtocol_ = "";
/**
*
* 回源协议,目前只支持以下两种:<li>rmtp <li>flv。
*
*
* string RelaySourceProtocol = 5;
* @return The relaySourceProtocol.
*/
public String getRelaySourceProtocol() {
Object ref = relaySourceProtocol_;
if (!(ref instanceof String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
relaySourceProtocol_ = s;
return s;
} else {
return (String) ref;
}
}
/**
*
* 回源协议,目前只支持以下两种:<li>rmtp <li>flv。
*
*
* string RelaySourceProtocol = 5;
* @return The bytes for relaySourceProtocol.
*/
public com.google.protobuf.ByteString
getRelaySourceProtocolBytes() {
Object ref = relaySourceProtocol_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
relaySourceProtocol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 回源协议,目前只支持以下两种:<li>rmtp <li>flv。
*
*
* string RelaySourceProtocol = 5;
* @param value The relaySourceProtocol to set.
* @return This builder for chaining.
*/
public Builder setRelaySourceProtocol(
String value) {
if (value == null) {
throw new NullPointerException();
}
relaySourceProtocol_ = value;
onChanged();
return this;
}
/**
*
* 回源协议,目前只支持以下两种:<li>rmtp <li>flv。
*
*
* string RelaySourceProtocol = 5;
* @return This builder for chaining.
*/
public Builder clearRelaySourceProtocol() {
relaySourceProtocol_ = getDefaultInstance().getRelaySourceProtocol();
onChanged();
return this;
}
/**
*
* 回源协议,目前只支持以下两种:<li>rmtp <li>flv。
*
*
* string RelaySourceProtocol = 5;
* @param value The bytes for relaySourceProtocol to set.
* @return This builder for chaining.
*/
public Builder setRelaySourceProtocolBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
relaySourceProtocol_ = 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.Request.UpdateRelaySourceRequest)
}
// @@protoc_insertion_point(class_scope:Volcengine.Live.Models.Request.UpdateRelaySourceRequest)
private static final UpdateRelaySourceRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new UpdateRelaySourceRequest();
}
public static UpdateRelaySourceRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@Override
public UpdateRelaySourceRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateRelaySourceRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@Override
public UpdateRelaySourceRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy