com.volcengine.service.vod.model.business.VodResponseHeaderControl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of volc-sdk-java Show documentation
Show all versions of volc-sdk-java Show documentation
The VOLC Engine SDK for Java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: volcengine/vod/business/vod_cdn.proto
package com.volcengine.service.vod.model.business;
/**
*
* HTTP响应头设置
*
*
* Protobuf type {@code Volcengine.Vod.Models.Business.VodResponseHeaderControl}
*/
public final class VodResponseHeaderControl extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Volcengine.Vod.Models.Business.VodResponseHeaderControl)
VodResponseHeaderControlOrBuilder {
private static final long serialVersionUID = 0L;
// Use VodResponseHeaderControl.newBuilder() to construct.
private VodResponseHeaderControl(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VodResponseHeaderControl() {
responseHeader_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new VodResponseHeaderControl();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private VodResponseHeaderControl(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
responseHeader_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
responseHeader_.add(
input.readMessage(com.volcengine.service.vod.model.business.VodResponseHeaderRule.parser(), extensionRegistry));
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)) {
responseHeader_ = java.util.Collections.unmodifiableList(responseHeader_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.volcengine.service.vod.model.business.VodCdn.internal_static_Volcengine_Vod_Models_Business_VodResponseHeaderControl_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.volcengine.service.vod.model.business.VodCdn.internal_static_Volcengine_Vod_Models_Business_VodResponseHeaderControl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.volcengine.service.vod.model.business.VodResponseHeaderControl.class, com.volcengine.service.vod.model.business.VodResponseHeaderControl.Builder.class);
}
public static final int RESPONSEHEADER_FIELD_NUMBER = 1;
private java.util.List responseHeader_;
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
@java.lang.Override
public java.util.List getResponseHeaderList() {
return responseHeader_;
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
@java.lang.Override
public java.util.List extends com.volcengine.service.vod.model.business.VodResponseHeaderRuleOrBuilder>
getResponseHeaderOrBuilderList() {
return responseHeader_;
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
@java.lang.Override
public int getResponseHeaderCount() {
return responseHeader_.size();
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
@java.lang.Override
public com.volcengine.service.vod.model.business.VodResponseHeaderRule getResponseHeader(int index) {
return responseHeader_.get(index);
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
@java.lang.Override
public com.volcengine.service.vod.model.business.VodResponseHeaderRuleOrBuilder getResponseHeaderOrBuilder(
int index) {
return responseHeader_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < responseHeader_.size(); i++) {
output.writeMessage(1, responseHeader_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < responseHeader_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, responseHeader_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.volcengine.service.vod.model.business.VodResponseHeaderControl)) {
return super.equals(obj);
}
com.volcengine.service.vod.model.business.VodResponseHeaderControl other = (com.volcengine.service.vod.model.business.VodResponseHeaderControl) obj;
if (!getResponseHeaderList()
.equals(other.getResponseHeaderList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getResponseHeaderCount() > 0) {
hash = (37 * hash) + RESPONSEHEADER_FIELD_NUMBER;
hash = (53 * hash) + getResponseHeaderList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.volcengine.service.vod.model.business.VodResponseHeaderControl parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.volcengine.service.vod.model.business.VodResponseHeaderControl parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.VodResponseHeaderControl parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.volcengine.service.vod.model.business.VodResponseHeaderControl parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.VodResponseHeaderControl parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.volcengine.service.vod.model.business.VodResponseHeaderControl parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.VodResponseHeaderControl parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.volcengine.service.vod.model.business.VodResponseHeaderControl parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.VodResponseHeaderControl parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.volcengine.service.vod.model.business.VodResponseHeaderControl parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.volcengine.service.vod.model.business.VodResponseHeaderControl parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.volcengine.service.vod.model.business.VodResponseHeaderControl parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.volcengine.service.vod.model.business.VodResponseHeaderControl prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* HTTP响应头设置
*
*
* Protobuf type {@code Volcengine.Vod.Models.Business.VodResponseHeaderControl}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Volcengine.Vod.Models.Business.VodResponseHeaderControl)
com.volcengine.service.vod.model.business.VodResponseHeaderControlOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.volcengine.service.vod.model.business.VodCdn.internal_static_Volcengine_Vod_Models_Business_VodResponseHeaderControl_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.volcengine.service.vod.model.business.VodCdn.internal_static_Volcengine_Vod_Models_Business_VodResponseHeaderControl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.volcengine.service.vod.model.business.VodResponseHeaderControl.class, com.volcengine.service.vod.model.business.VodResponseHeaderControl.Builder.class);
}
// Construct using com.volcengine.service.vod.model.business.VodResponseHeaderControl.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResponseHeaderFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (responseHeaderBuilder_ == null) {
responseHeader_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
responseHeaderBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.volcengine.service.vod.model.business.VodCdn.internal_static_Volcengine_Vod_Models_Business_VodResponseHeaderControl_descriptor;
}
@java.lang.Override
public com.volcengine.service.vod.model.business.VodResponseHeaderControl getDefaultInstanceForType() {
return com.volcengine.service.vod.model.business.VodResponseHeaderControl.getDefaultInstance();
}
@java.lang.Override
public com.volcengine.service.vod.model.business.VodResponseHeaderControl build() {
com.volcengine.service.vod.model.business.VodResponseHeaderControl result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.volcengine.service.vod.model.business.VodResponseHeaderControl buildPartial() {
com.volcengine.service.vod.model.business.VodResponseHeaderControl result = new com.volcengine.service.vod.model.business.VodResponseHeaderControl(this);
int from_bitField0_ = bitField0_;
if (responseHeaderBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
responseHeader_ = java.util.Collections.unmodifiableList(responseHeader_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.responseHeader_ = responseHeader_;
} else {
result.responseHeader_ = responseHeaderBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.volcengine.service.vod.model.business.VodResponseHeaderControl) {
return mergeFrom((com.volcengine.service.vod.model.business.VodResponseHeaderControl)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.volcengine.service.vod.model.business.VodResponseHeaderControl other) {
if (other == com.volcengine.service.vod.model.business.VodResponseHeaderControl.getDefaultInstance()) return this;
if (responseHeaderBuilder_ == null) {
if (!other.responseHeader_.isEmpty()) {
if (responseHeader_.isEmpty()) {
responseHeader_ = other.responseHeader_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureResponseHeaderIsMutable();
responseHeader_.addAll(other.responseHeader_);
}
onChanged();
}
} else {
if (!other.responseHeader_.isEmpty()) {
if (responseHeaderBuilder_.isEmpty()) {
responseHeaderBuilder_.dispose();
responseHeaderBuilder_ = null;
responseHeader_ = other.responseHeader_;
bitField0_ = (bitField0_ & ~0x00000001);
responseHeaderBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResponseHeaderFieldBuilder() : null;
} else {
responseHeaderBuilder_.addAllMessages(other.responseHeader_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.volcengine.service.vod.model.business.VodResponseHeaderControl parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.volcengine.service.vod.model.business.VodResponseHeaderControl) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List responseHeader_ =
java.util.Collections.emptyList();
private void ensureResponseHeaderIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
responseHeader_ = new java.util.ArrayList(responseHeader_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.volcengine.service.vod.model.business.VodResponseHeaderRule, com.volcengine.service.vod.model.business.VodResponseHeaderRule.Builder, com.volcengine.service.vod.model.business.VodResponseHeaderRuleOrBuilder> responseHeaderBuilder_;
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
public java.util.List getResponseHeaderList() {
if (responseHeaderBuilder_ == null) {
return java.util.Collections.unmodifiableList(responseHeader_);
} else {
return responseHeaderBuilder_.getMessageList();
}
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
public int getResponseHeaderCount() {
if (responseHeaderBuilder_ == null) {
return responseHeader_.size();
} else {
return responseHeaderBuilder_.getCount();
}
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
public com.volcengine.service.vod.model.business.VodResponseHeaderRule getResponseHeader(int index) {
if (responseHeaderBuilder_ == null) {
return responseHeader_.get(index);
} else {
return responseHeaderBuilder_.getMessage(index);
}
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
public Builder setResponseHeader(
int index, com.volcengine.service.vod.model.business.VodResponseHeaderRule value) {
if (responseHeaderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponseHeaderIsMutable();
responseHeader_.set(index, value);
onChanged();
} else {
responseHeaderBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
public Builder setResponseHeader(
int index, com.volcengine.service.vod.model.business.VodResponseHeaderRule.Builder builderForValue) {
if (responseHeaderBuilder_ == null) {
ensureResponseHeaderIsMutable();
responseHeader_.set(index, builderForValue.build());
onChanged();
} else {
responseHeaderBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
public Builder addResponseHeader(com.volcengine.service.vod.model.business.VodResponseHeaderRule value) {
if (responseHeaderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponseHeaderIsMutable();
responseHeader_.add(value);
onChanged();
} else {
responseHeaderBuilder_.addMessage(value);
}
return this;
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
public Builder addResponseHeader(
int index, com.volcengine.service.vod.model.business.VodResponseHeaderRule value) {
if (responseHeaderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponseHeaderIsMutable();
responseHeader_.add(index, value);
onChanged();
} else {
responseHeaderBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
public Builder addResponseHeader(
com.volcengine.service.vod.model.business.VodResponseHeaderRule.Builder builderForValue) {
if (responseHeaderBuilder_ == null) {
ensureResponseHeaderIsMutable();
responseHeader_.add(builderForValue.build());
onChanged();
} else {
responseHeaderBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
public Builder addResponseHeader(
int index, com.volcengine.service.vod.model.business.VodResponseHeaderRule.Builder builderForValue) {
if (responseHeaderBuilder_ == null) {
ensureResponseHeaderIsMutable();
responseHeader_.add(index, builderForValue.build());
onChanged();
} else {
responseHeaderBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
public Builder addAllResponseHeader(
java.lang.Iterable extends com.volcengine.service.vod.model.business.VodResponseHeaderRule> values) {
if (responseHeaderBuilder_ == null) {
ensureResponseHeaderIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, responseHeader_);
onChanged();
} else {
responseHeaderBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
public Builder clearResponseHeader() {
if (responseHeaderBuilder_ == null) {
responseHeader_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
responseHeaderBuilder_.clear();
}
return this;
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
public Builder removeResponseHeader(int index) {
if (responseHeaderBuilder_ == null) {
ensureResponseHeaderIsMutable();
responseHeader_.remove(index);
onChanged();
} else {
responseHeaderBuilder_.remove(index);
}
return this;
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
public com.volcengine.service.vod.model.business.VodResponseHeaderRule.Builder getResponseHeaderBuilder(
int index) {
return getResponseHeaderFieldBuilder().getBuilder(index);
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
public com.volcengine.service.vod.model.business.VodResponseHeaderRuleOrBuilder getResponseHeaderOrBuilder(
int index) {
if (responseHeaderBuilder_ == null) {
return responseHeader_.get(index); } else {
return responseHeaderBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
public java.util.List extends com.volcengine.service.vod.model.business.VodResponseHeaderRuleOrBuilder>
getResponseHeaderOrBuilderList() {
if (responseHeaderBuilder_ != null) {
return responseHeaderBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(responseHeader_);
}
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
public com.volcengine.service.vod.model.business.VodResponseHeaderRule.Builder addResponseHeaderBuilder() {
return getResponseHeaderFieldBuilder().addBuilder(
com.volcengine.service.vod.model.business.VodResponseHeaderRule.getDefaultInstance());
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
public com.volcengine.service.vod.model.business.VodResponseHeaderRule.Builder addResponseHeaderBuilder(
int index) {
return getResponseHeaderFieldBuilder().addBuilder(
index, com.volcengine.service.vod.model.business.VodResponseHeaderRule.getDefaultInstance());
}
/**
*
* 表示 HTTP 响应头配置模块。该功能默认为禁用
*
*
* repeated .Volcengine.Vod.Models.Business.VodResponseHeaderRule ResponseHeader = 1;
*/
public java.util.List
getResponseHeaderBuilderList() {
return getResponseHeaderFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.volcengine.service.vod.model.business.VodResponseHeaderRule, com.volcengine.service.vod.model.business.VodResponseHeaderRule.Builder, com.volcengine.service.vod.model.business.VodResponseHeaderRuleOrBuilder>
getResponseHeaderFieldBuilder() {
if (responseHeaderBuilder_ == null) {
responseHeaderBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.volcengine.service.vod.model.business.VodResponseHeaderRule, com.volcengine.service.vod.model.business.VodResponseHeaderRule.Builder, com.volcengine.service.vod.model.business.VodResponseHeaderRuleOrBuilder>(
responseHeader_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
responseHeader_ = null;
}
return responseHeaderBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Volcengine.Vod.Models.Business.VodResponseHeaderControl)
}
// @@protoc_insertion_point(class_scope:Volcengine.Vod.Models.Business.VodResponseHeaderControl)
private static final com.volcengine.service.vod.model.business.VodResponseHeaderControl DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.volcengine.service.vod.model.business.VodResponseHeaderControl();
}
public static com.volcengine.service.vod.model.business.VodResponseHeaderControl getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VodResponseHeaderControl parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VodResponseHeaderControl(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.volcengine.service.vod.model.business.VodResponseHeaderControl getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy