yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/dns/v1/dns_zone_service.proto
package yandex.cloud.api.dns.v1;
public final class DnsZoneServiceOuterClass {
private DnsZoneServiceOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface UpdateDnsZonePrivateNetworksRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.UpdateDnsZonePrivateNetworksRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the DNS zone which private networks will be updated
*
*
* string dns_zone_id = 1;
* @return The dnsZoneId.
*/
java.lang.String getDnsZoneId();
/**
*
* ID of the DNS zone which private networks will be updated
*
*
* string dns_zone_id = 1;
* @return The bytes for dnsZoneId.
*/
com.google.protobuf.ByteString
getDnsZoneIdBytes();
/**
*
* Network IDs to remove
*
*
* repeated string private_network_id_additions = 2;
* @return A list containing the privateNetworkIdAdditions.
*/
java.util.List
getPrivateNetworkIdAdditionsList();
/**
*
* Network IDs to remove
*
*
* repeated string private_network_id_additions = 2;
* @return The count of privateNetworkIdAdditions.
*/
int getPrivateNetworkIdAdditionsCount();
/**
*
* Network IDs to remove
*
*
* repeated string private_network_id_additions = 2;
* @param index The index of the element to return.
* @return The privateNetworkIdAdditions at the given index.
*/
java.lang.String getPrivateNetworkIdAdditions(int index);
/**
*
* Network IDs to remove
*
*
* repeated string private_network_id_additions = 2;
* @param index The index of the value to return.
* @return The bytes of the privateNetworkIdAdditions at the given index.
*/
com.google.protobuf.ByteString
getPrivateNetworkIdAdditionsBytes(int index);
/**
*
* Network IDs to add
*
*
* repeated string private_network_id_deletions = 3;
* @return A list containing the privateNetworkIdDeletions.
*/
java.util.List
getPrivateNetworkIdDeletionsList();
/**
*
* Network IDs to add
*
*
* repeated string private_network_id_deletions = 3;
* @return The count of privateNetworkIdDeletions.
*/
int getPrivateNetworkIdDeletionsCount();
/**
*
* Network IDs to add
*
*
* repeated string private_network_id_deletions = 3;
* @param index The index of the element to return.
* @return The privateNetworkIdDeletions at the given index.
*/
java.lang.String getPrivateNetworkIdDeletions(int index);
/**
*
* Network IDs to add
*
*
* repeated string private_network_id_deletions = 3;
* @param index The index of the value to return.
* @return The bytes of the privateNetworkIdDeletions at the given index.
*/
com.google.protobuf.ByteString
getPrivateNetworkIdDeletionsBytes(int index);
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.UpdateDnsZonePrivateNetworksRequest}
*/
public static final class UpdateDnsZonePrivateNetworksRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.UpdateDnsZonePrivateNetworksRequest)
UpdateDnsZonePrivateNetworksRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateDnsZonePrivateNetworksRequest.newBuilder() to construct.
private UpdateDnsZonePrivateNetworksRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateDnsZonePrivateNetworksRequest() {
dnsZoneId_ = "";
privateNetworkIdAdditions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
privateNetworkIdDeletions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateDnsZonePrivateNetworksRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateDnsZonePrivateNetworksRequest(
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: {
java.lang.String s = input.readStringRequireUtf8();
dnsZoneId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
privateNetworkIdAdditions_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
privateNetworkIdAdditions_.add(s);
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
privateNetworkIdDeletions_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
privateNetworkIdDeletions_.add(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)) {
privateNetworkIdAdditions_ = privateNetworkIdAdditions_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
privateNetworkIdDeletions_ = privateNetworkIdDeletions_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest.Builder.class);
}
public static final int DNS_ZONE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object dnsZoneId_;
/**
*
* ID of the DNS zone which private networks will be updated
*
*
* string dns_zone_id = 1;
* @return The dnsZoneId.
*/
@java.lang.Override
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
}
}
/**
*
* ID of the DNS zone which private networks will be updated
*
*
* string dns_zone_id = 1;
* @return The bytes for dnsZoneId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRIVATE_NETWORK_ID_ADDITIONS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList privateNetworkIdAdditions_;
/**
*
* Network IDs to remove
*
*
* repeated string private_network_id_additions = 2;
* @return A list containing the privateNetworkIdAdditions.
*/
public com.google.protobuf.ProtocolStringList
getPrivateNetworkIdAdditionsList() {
return privateNetworkIdAdditions_;
}
/**
*
* Network IDs to remove
*
*
* repeated string private_network_id_additions = 2;
* @return The count of privateNetworkIdAdditions.
*/
public int getPrivateNetworkIdAdditionsCount() {
return privateNetworkIdAdditions_.size();
}
/**
*
* Network IDs to remove
*
*
* repeated string private_network_id_additions = 2;
* @param index The index of the element to return.
* @return The privateNetworkIdAdditions at the given index.
*/
public java.lang.String getPrivateNetworkIdAdditions(int index) {
return privateNetworkIdAdditions_.get(index);
}
/**
*
* Network IDs to remove
*
*
* repeated string private_network_id_additions = 2;
* @param index The index of the value to return.
* @return The bytes of the privateNetworkIdAdditions at the given index.
*/
public com.google.protobuf.ByteString
getPrivateNetworkIdAdditionsBytes(int index) {
return privateNetworkIdAdditions_.getByteString(index);
}
public static final int PRIVATE_NETWORK_ID_DELETIONS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList privateNetworkIdDeletions_;
/**
*
* Network IDs to add
*
*
* repeated string private_network_id_deletions = 3;
* @return A list containing the privateNetworkIdDeletions.
*/
public com.google.protobuf.ProtocolStringList
getPrivateNetworkIdDeletionsList() {
return privateNetworkIdDeletions_;
}
/**
*
* Network IDs to add
*
*
* repeated string private_network_id_deletions = 3;
* @return The count of privateNetworkIdDeletions.
*/
public int getPrivateNetworkIdDeletionsCount() {
return privateNetworkIdDeletions_.size();
}
/**
*
* Network IDs to add
*
*
* repeated string private_network_id_deletions = 3;
* @param index The index of the element to return.
* @return The privateNetworkIdDeletions at the given index.
*/
public java.lang.String getPrivateNetworkIdDeletions(int index) {
return privateNetworkIdDeletions_.get(index);
}
/**
*
* Network IDs to add
*
*
* repeated string private_network_id_deletions = 3;
* @param index The index of the value to return.
* @return The bytes of the privateNetworkIdDeletions at the given index.
*/
public com.google.protobuf.ByteString
getPrivateNetworkIdDeletionsBytes(int index) {
return privateNetworkIdDeletions_.getByteString(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 {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dnsZoneId_);
}
for (int i = 0; i < privateNetworkIdAdditions_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, privateNetworkIdAdditions_.getRaw(i));
}
for (int i = 0; i < privateNetworkIdDeletions_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, privateNetworkIdDeletions_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dnsZoneId_);
}
{
int dataSize = 0;
for (int i = 0; i < privateNetworkIdAdditions_.size(); i++) {
dataSize += computeStringSizeNoTag(privateNetworkIdAdditions_.getRaw(i));
}
size += dataSize;
size += 1 * getPrivateNetworkIdAdditionsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < privateNetworkIdDeletions_.size(); i++) {
dataSize += computeStringSizeNoTag(privateNetworkIdDeletions_.getRaw(i));
}
size += dataSize;
size += 1 * getPrivateNetworkIdDeletionsList().size();
}
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest) obj;
if (!getDnsZoneId()
.equals(other.getDnsZoneId())) return false;
if (!getPrivateNetworkIdAdditionsList()
.equals(other.getPrivateNetworkIdAdditionsList())) return false;
if (!getPrivateNetworkIdDeletionsList()
.equals(other.getPrivateNetworkIdDeletionsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DNS_ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDnsZoneId().hashCode();
if (getPrivateNetworkIdAdditionsCount() > 0) {
hash = (37 * hash) + PRIVATE_NETWORK_ID_ADDITIONS_FIELD_NUMBER;
hash = (53 * hash) + getPrivateNetworkIdAdditionsList().hashCode();
}
if (getPrivateNetworkIdDeletionsCount() > 0) {
hash = (37 * hash) + PRIVATE_NETWORK_ID_DELETIONS_FIELD_NUMBER;
hash = (53 * hash) + getPrivateNetworkIdDeletionsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.UpdateDnsZonePrivateNetworksRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.UpdateDnsZonePrivateNetworksRequest)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
dnsZoneId_ = "";
privateNetworkIdAdditions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
privateNetworkIdDeletions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest(this);
int from_bitField0_ = bitField0_;
result.dnsZoneId_ = dnsZoneId_;
if (((bitField0_ & 0x00000001) != 0)) {
privateNetworkIdAdditions_ = privateNetworkIdAdditions_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.privateNetworkIdAdditions_ = privateNetworkIdAdditions_;
if (((bitField0_ & 0x00000002) != 0)) {
privateNetworkIdDeletions_ = privateNetworkIdDeletions_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.privateNetworkIdDeletions_ = privateNetworkIdDeletions_;
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest.getDefaultInstance()) return this;
if (!other.getDnsZoneId().isEmpty()) {
dnsZoneId_ = other.dnsZoneId_;
onChanged();
}
if (!other.privateNetworkIdAdditions_.isEmpty()) {
if (privateNetworkIdAdditions_.isEmpty()) {
privateNetworkIdAdditions_ = other.privateNetworkIdAdditions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePrivateNetworkIdAdditionsIsMutable();
privateNetworkIdAdditions_.addAll(other.privateNetworkIdAdditions_);
}
onChanged();
}
if (!other.privateNetworkIdDeletions_.isEmpty()) {
if (privateNetworkIdDeletions_.isEmpty()) {
privateNetworkIdDeletions_ = other.privateNetworkIdDeletions_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePrivateNetworkIdDeletionsIsMutable();
privateNetworkIdDeletions_.addAll(other.privateNetworkIdDeletions_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object dnsZoneId_ = "";
/**
*
* ID of the DNS zone which private networks will be updated
*
*
* string dns_zone_id = 1;
* @return The dnsZoneId.
*/
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the DNS zone which private networks will be updated
*
*
* string dns_zone_id = 1;
* @return The bytes for dnsZoneId.
*/
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the DNS zone which private networks will be updated
*
*
* string dns_zone_id = 1;
* @param value The dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dnsZoneId_ = value;
onChanged();
return this;
}
/**
*
* ID of the DNS zone which private networks will be updated
*
*
* string dns_zone_id = 1;
* @return This builder for chaining.
*/
public Builder clearDnsZoneId() {
dnsZoneId_ = getDefaultInstance().getDnsZoneId();
onChanged();
return this;
}
/**
*
* ID of the DNS zone which private networks will be updated
*
*
* string dns_zone_id = 1;
* @param value The bytes for dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dnsZoneId_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList privateNetworkIdAdditions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePrivateNetworkIdAdditionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
privateNetworkIdAdditions_ = new com.google.protobuf.LazyStringArrayList(privateNetworkIdAdditions_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Network IDs to remove
*
*
* repeated string private_network_id_additions = 2;
* @return A list containing the privateNetworkIdAdditions.
*/
public com.google.protobuf.ProtocolStringList
getPrivateNetworkIdAdditionsList() {
return privateNetworkIdAdditions_.getUnmodifiableView();
}
/**
*
* Network IDs to remove
*
*
* repeated string private_network_id_additions = 2;
* @return The count of privateNetworkIdAdditions.
*/
public int getPrivateNetworkIdAdditionsCount() {
return privateNetworkIdAdditions_.size();
}
/**
*
* Network IDs to remove
*
*
* repeated string private_network_id_additions = 2;
* @param index The index of the element to return.
* @return The privateNetworkIdAdditions at the given index.
*/
public java.lang.String getPrivateNetworkIdAdditions(int index) {
return privateNetworkIdAdditions_.get(index);
}
/**
*
* Network IDs to remove
*
*
* repeated string private_network_id_additions = 2;
* @param index The index of the value to return.
* @return The bytes of the privateNetworkIdAdditions at the given index.
*/
public com.google.protobuf.ByteString
getPrivateNetworkIdAdditionsBytes(int index) {
return privateNetworkIdAdditions_.getByteString(index);
}
/**
*
* Network IDs to remove
*
*
* repeated string private_network_id_additions = 2;
* @param index The index to set the value at.
* @param value The privateNetworkIdAdditions to set.
* @return This builder for chaining.
*/
public Builder setPrivateNetworkIdAdditions(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePrivateNetworkIdAdditionsIsMutable();
privateNetworkIdAdditions_.set(index, value);
onChanged();
return this;
}
/**
*
* Network IDs to remove
*
*
* repeated string private_network_id_additions = 2;
* @param value The privateNetworkIdAdditions to add.
* @return This builder for chaining.
*/
public Builder addPrivateNetworkIdAdditions(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePrivateNetworkIdAdditionsIsMutable();
privateNetworkIdAdditions_.add(value);
onChanged();
return this;
}
/**
*
* Network IDs to remove
*
*
* repeated string private_network_id_additions = 2;
* @param values The privateNetworkIdAdditions to add.
* @return This builder for chaining.
*/
public Builder addAllPrivateNetworkIdAdditions(
java.lang.Iterable values) {
ensurePrivateNetworkIdAdditionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, privateNetworkIdAdditions_);
onChanged();
return this;
}
/**
*
* Network IDs to remove
*
*
* repeated string private_network_id_additions = 2;
* @return This builder for chaining.
*/
public Builder clearPrivateNetworkIdAdditions() {
privateNetworkIdAdditions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Network IDs to remove
*
*
* repeated string private_network_id_additions = 2;
* @param value The bytes of the privateNetworkIdAdditions to add.
* @return This builder for chaining.
*/
public Builder addPrivateNetworkIdAdditionsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePrivateNetworkIdAdditionsIsMutable();
privateNetworkIdAdditions_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList privateNetworkIdDeletions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePrivateNetworkIdDeletionsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
privateNetworkIdDeletions_ = new com.google.protobuf.LazyStringArrayList(privateNetworkIdDeletions_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Network IDs to add
*
*
* repeated string private_network_id_deletions = 3;
* @return A list containing the privateNetworkIdDeletions.
*/
public com.google.protobuf.ProtocolStringList
getPrivateNetworkIdDeletionsList() {
return privateNetworkIdDeletions_.getUnmodifiableView();
}
/**
*
* Network IDs to add
*
*
* repeated string private_network_id_deletions = 3;
* @return The count of privateNetworkIdDeletions.
*/
public int getPrivateNetworkIdDeletionsCount() {
return privateNetworkIdDeletions_.size();
}
/**
*
* Network IDs to add
*
*
* repeated string private_network_id_deletions = 3;
* @param index The index of the element to return.
* @return The privateNetworkIdDeletions at the given index.
*/
public java.lang.String getPrivateNetworkIdDeletions(int index) {
return privateNetworkIdDeletions_.get(index);
}
/**
*
* Network IDs to add
*
*
* repeated string private_network_id_deletions = 3;
* @param index The index of the value to return.
* @return The bytes of the privateNetworkIdDeletions at the given index.
*/
public com.google.protobuf.ByteString
getPrivateNetworkIdDeletionsBytes(int index) {
return privateNetworkIdDeletions_.getByteString(index);
}
/**
*
* Network IDs to add
*
*
* repeated string private_network_id_deletions = 3;
* @param index The index to set the value at.
* @param value The privateNetworkIdDeletions to set.
* @return This builder for chaining.
*/
public Builder setPrivateNetworkIdDeletions(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePrivateNetworkIdDeletionsIsMutable();
privateNetworkIdDeletions_.set(index, value);
onChanged();
return this;
}
/**
*
* Network IDs to add
*
*
* repeated string private_network_id_deletions = 3;
* @param value The privateNetworkIdDeletions to add.
* @return This builder for chaining.
*/
public Builder addPrivateNetworkIdDeletions(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePrivateNetworkIdDeletionsIsMutable();
privateNetworkIdDeletions_.add(value);
onChanged();
return this;
}
/**
*
* Network IDs to add
*
*
* repeated string private_network_id_deletions = 3;
* @param values The privateNetworkIdDeletions to add.
* @return This builder for chaining.
*/
public Builder addAllPrivateNetworkIdDeletions(
java.lang.Iterable values) {
ensurePrivateNetworkIdDeletionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, privateNetworkIdDeletions_);
onChanged();
return this;
}
/**
*
* Network IDs to add
*
*
* repeated string private_network_id_deletions = 3;
* @return This builder for chaining.
*/
public Builder clearPrivateNetworkIdDeletions() {
privateNetworkIdDeletions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Network IDs to add
*
*
* repeated string private_network_id_deletions = 3;
* @param value The bytes of the privateNetworkIdDeletions to add.
* @return This builder for chaining.
*/
public Builder addPrivateNetworkIdDeletionsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePrivateNetworkIdDeletionsIsMutable();
privateNetworkIdDeletions_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.dns.v1.UpdateDnsZonePrivateNetworksRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.UpdateDnsZonePrivateNetworksRequest)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateDnsZonePrivateNetworksRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateDnsZonePrivateNetworksRequest(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateDnsZonePrivateNetworksMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.UpdateDnsZonePrivateNetworksMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the DNS zone which private networks was updated
*
*
* string dns_zone_id = 1;
* @return The dnsZoneId.
*/
java.lang.String getDnsZoneId();
/**
*
* ID of the DNS zone which private networks was updated
*
*
* string dns_zone_id = 1;
* @return The bytes for dnsZoneId.
*/
com.google.protobuf.ByteString
getDnsZoneIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.UpdateDnsZonePrivateNetworksMetadata}
*/
public static final class UpdateDnsZonePrivateNetworksMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.UpdateDnsZonePrivateNetworksMetadata)
UpdateDnsZonePrivateNetworksMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateDnsZonePrivateNetworksMetadata.newBuilder() to construct.
private UpdateDnsZonePrivateNetworksMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateDnsZonePrivateNetworksMetadata() {
dnsZoneId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateDnsZonePrivateNetworksMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateDnsZonePrivateNetworksMetadata(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
dnsZoneId_ = 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata.Builder.class);
}
public static final int DNS_ZONE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object dnsZoneId_;
/**
*
* ID of the DNS zone which private networks was updated
*
*
* string dns_zone_id = 1;
* @return The dnsZoneId.
*/
@java.lang.Override
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
}
}
/**
*
* ID of the DNS zone which private networks was updated
*
*
* string dns_zone_id = 1;
* @return The bytes for dnsZoneId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dnsZoneId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dnsZoneId_);
}
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata) obj;
if (!getDnsZoneId()
.equals(other.getDnsZoneId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DNS_ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDnsZoneId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.UpdateDnsZonePrivateNetworksMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.UpdateDnsZonePrivateNetworksMetadata)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
dnsZoneId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata(this);
result.dnsZoneId_ = dnsZoneId_;
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata.getDefaultInstance()) return this;
if (!other.getDnsZoneId().isEmpty()) {
dnsZoneId_ = other.dnsZoneId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object dnsZoneId_ = "";
/**
*
* ID of the DNS zone which private networks was updated
*
*
* string dns_zone_id = 1;
* @return The dnsZoneId.
*/
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the DNS zone which private networks was updated
*
*
* string dns_zone_id = 1;
* @return The bytes for dnsZoneId.
*/
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the DNS zone which private networks was updated
*
*
* string dns_zone_id = 1;
* @param value The dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dnsZoneId_ = value;
onChanged();
return this;
}
/**
*
* ID of the DNS zone which private networks was updated
*
*
* string dns_zone_id = 1;
* @return This builder for chaining.
*/
public Builder clearDnsZoneId() {
dnsZoneId_ = getDefaultInstance().getDnsZoneId();
onChanged();
return this;
}
/**
*
* ID of the DNS zone which private networks was updated
*
*
* string dns_zone_id = 1;
* @param value The bytes for dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dnsZoneId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.dns.v1.UpdateDnsZonePrivateNetworksMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.UpdateDnsZonePrivateNetworksMetadata)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateDnsZonePrivateNetworksMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateDnsZonePrivateNetworksMetadata(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZonePrivateNetworksMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetDnsZoneRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.GetDnsZoneRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the DNS zone to return.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.required) = true];
* @return The dnsZoneId.
*/
java.lang.String getDnsZoneId();
/**
*
* ID of the DNS zone to return.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for dnsZoneId.
*/
com.google.protobuf.ByteString
getDnsZoneIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.GetDnsZoneRequest}
*/
public static final class GetDnsZoneRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.GetDnsZoneRequest)
GetDnsZoneRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetDnsZoneRequest.newBuilder() to construct.
private GetDnsZoneRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetDnsZoneRequest() {
dnsZoneId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetDnsZoneRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetDnsZoneRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
dnsZoneId_ = 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_GetDnsZoneRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_GetDnsZoneRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest.Builder.class);
}
public static final int DNS_ZONE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object dnsZoneId_;
/**
*
* ID of the DNS zone to return.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.required) = true];
* @return The dnsZoneId.
*/
@java.lang.Override
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
}
}
/**
*
* ID of the DNS zone to return.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for dnsZoneId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dnsZoneId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dnsZoneId_);
}
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest) obj;
if (!getDnsZoneId()
.equals(other.getDnsZoneId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DNS_ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDnsZoneId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.GetDnsZoneRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.GetDnsZoneRequest)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_GetDnsZoneRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_GetDnsZoneRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
dnsZoneId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_GetDnsZoneRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest(this);
result.dnsZoneId_ = dnsZoneId_;
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest.getDefaultInstance()) return this;
if (!other.getDnsZoneId().isEmpty()) {
dnsZoneId_ = other.dnsZoneId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object dnsZoneId_ = "";
/**
*
* ID of the DNS zone to return.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.required) = true];
* @return The dnsZoneId.
*/
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the DNS zone to return.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for dnsZoneId.
*/
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the DNS zone to return.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.required) = true];
* @param value The dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dnsZoneId_ = value;
onChanged();
return this;
}
/**
*
* ID of the DNS zone to return.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearDnsZoneId() {
dnsZoneId_ = getDefaultInstance().getDnsZoneId();
onChanged();
return this;
}
/**
*
* ID of the DNS zone to return.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dnsZoneId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.dns.v1.GetDnsZoneRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.GetDnsZoneRequest)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetDnsZoneRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetDnsZoneRequest(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListDnsZonesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.ListDnsZonesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the folder to list DNS zones in.
* To get the folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The folderId.
*/
java.lang.String getFolderId();
/**
*
* ID of the folder to list DNS zones in.
* To get the folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than `page_size`, the service returns a [ListDnsZonesResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDnsZonesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDnsZonesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
/**
*
* A filter expression that filters DNS zones listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on the [DnsZone.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-dns-zone`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
java.lang.String getFilter();
/**
*
* A filter expression that filters DNS zones listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on the [DnsZone.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-dns-zone`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
com.google.protobuf.ByteString
getFilterBytes();
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.ListDnsZonesRequest}
*/
public static final class ListDnsZonesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.ListDnsZonesRequest)
ListDnsZonesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListDnsZonesRequest.newBuilder() to construct.
private ListDnsZonesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListDnsZonesRequest() {
folderId_ = "";
pageToken_ = "";
filter_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListDnsZonesRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListDnsZonesRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
folderId_ = s;
break;
}
case 16: {
pageSize_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pageToken_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
filter_ = 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZonesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZonesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest.Builder.class);
}
public static final int FOLDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder to list DNS zones in.
* To get the folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The folderId.
*/
@java.lang.Override
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
folderId_ = s;
return s;
}
}
/**
*
* ID of the folder to list DNS zones in.
* To get the folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for folderId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
private long pageSize_;
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than `page_size`, the service returns a [ListDnsZonesResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
private volatile java.lang.Object pageToken_;
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDnsZonesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The pageToken.
*/
@java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
}
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDnsZonesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for pageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FILTER_FIELD_NUMBER = 4;
private volatile java.lang.Object filter_;
/**
*
* A filter expression that filters DNS zones listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on the [DnsZone.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-dns-zone`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
@java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filter_ = s;
return s;
}
}
/**
*
* A filter expression that filters DNS zones listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on the [DnsZone.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-dns-zone`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folderId_);
}
if (pageSize_ != 0L) {
output.writeInt64(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, folderId_);
}
if (pageSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_);
}
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest) obj;
if (!getFolderId()
.equals(other.getFolderId())) return false;
if (getPageSize()
!= other.getPageSize()) return false;
if (!getPageToken()
.equals(other.getPageToken())) return false;
if (!getFilter()
.equals(other.getFilter())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getFolderId().hashCode();
hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPageSize());
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.ListDnsZonesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.ListDnsZonesRequest)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZonesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZonesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
folderId_ = "";
pageSize_ = 0L;
pageToken_ = "";
filter_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZonesRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest(this);
result.folderId_ = folderId_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
result.filter_ = filter_;
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest.getDefaultInstance()) return this;
if (!other.getFolderId().isEmpty()) {
folderId_ = other.folderId_;
onChanged();
}
if (other.getPageSize() != 0L) {
setPageSize(other.getPageSize());
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
onChanged();
}
if (!other.getFilter().isEmpty()) {
filter_ = other.filter_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object folderId_ = "";
/**
*
* ID of the folder to list DNS zones in.
* To get the folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The folderId.
*/
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
folderId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the folder to list DNS zones in.
* To get the folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for folderId.
*/
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the folder to list DNS zones in.
* To get the folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @param value The folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
folderId_ = value;
onChanged();
return this;
}
/**
*
* ID of the folder to list DNS zones in.
* To get the folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearFolderId() {
folderId_ = getDefaultInstance().getFolderId();
onChanged();
return this;
}
/**
*
* ID of the folder to list DNS zones in.
* To get the folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
folderId_ = value;
onChanged();
return this;
}
private long pageSize_ ;
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than `page_size`, the service returns a [ListDnsZonesResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than `page_size`, the service returns a [ListDnsZonesResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @param value The pageSize to set.
* @return This builder for chaining.
*/
public Builder setPageSize(long value) {
pageSize_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than `page_size`, the service returns a [ListDnsZonesResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return This builder for chaining.
*/
public Builder clearPageSize() {
pageSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object pageToken_ = "";
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDnsZonesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The pageToken.
*/
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDnsZonesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for pageToken.
*/
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDnsZonesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @param value The pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pageToken_ = value;
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDnsZonesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDnsZonesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @param value The bytes for pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pageToken_ = value;
onChanged();
return this;
}
private java.lang.Object filter_ = "";
/**
*
* A filter expression that filters DNS zones listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on the [DnsZone.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-dns-zone`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A filter expression that filters DNS zones listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on the [DnsZone.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-dns-zone`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A filter expression that filters DNS zones listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on the [DnsZone.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-dns-zone`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @param value The filter to set.
* @return This builder for chaining.
*/
public Builder setFilter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
return this;
}
/**
*
* A filter expression that filters DNS zones listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on the [DnsZone.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-dns-zone`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return This builder for chaining.
*/
public Builder clearFilter() {
filter_ = getDefaultInstance().getFilter();
onChanged();
return this;
}
/**
*
* A filter expression that filters DNS zones listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on the [DnsZone.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-dns-zone`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @param value The bytes for filter to set.
* @return This builder for chaining.
*/
public Builder setFilterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
filter_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.dns.v1.ListDnsZonesRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.ListDnsZonesRequest)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListDnsZonesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListDnsZonesRequest(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListDnsZonesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.ListDnsZonesResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
java.util.List
getDnsZonesList();
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone getDnsZones(int index);
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
int getDnsZonesCount();
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZoneOrBuilder>
getDnsZonesOrBuilderList();
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZoneOrBuilder getDnsZonesOrBuilder(
int index);
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZonesRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZonesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
java.lang.String getNextPageToken();
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZonesRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZonesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
com.google.protobuf.ByteString
getNextPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.ListDnsZonesResponse}
*/
public static final class ListDnsZonesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.ListDnsZonesResponse)
ListDnsZonesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListDnsZonesResponse.newBuilder() to construct.
private ListDnsZonesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListDnsZonesResponse() {
dnsZones_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListDnsZonesResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListDnsZonesResponse(
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)) {
dnsZones_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
dnsZones_.add(
input.readMessage(yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nextPageToken_ = 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)) {
dnsZones_ = java.util.Collections.unmodifiableList(dnsZones_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZonesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZonesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse.Builder.class);
}
public static final int DNS_ZONES_FIELD_NUMBER = 1;
private java.util.List dnsZones_;
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
@java.lang.Override
public java.util.List getDnsZonesList() {
return dnsZones_;
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZoneOrBuilder>
getDnsZonesOrBuilderList() {
return dnsZones_;
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
@java.lang.Override
public int getDnsZonesCount() {
return dnsZones_.size();
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone getDnsZones(int index) {
return dnsZones_.get(index);
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZoneOrBuilder getDnsZonesOrBuilder(
int index) {
return dnsZones_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextPageToken_;
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZonesRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZonesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
@java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZonesRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZonesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < dnsZones_.size(); i++) {
output.writeMessage(1, dnsZones_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < dnsZones_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, dnsZones_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse) obj;
if (!getDnsZonesList()
.equals(other.getDnsZonesList())) return false;
if (!getNextPageToken()
.equals(other.getNextPageToken())) 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 (getDnsZonesCount() > 0) {
hash = (37 * hash) + DNS_ZONES_FIELD_NUMBER;
hash = (53 * hash) + getDnsZonesList().hashCode();
}
hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.ListDnsZonesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.ListDnsZonesResponse)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZonesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZonesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDnsZonesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (dnsZonesBuilder_ == null) {
dnsZones_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
dnsZonesBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZonesResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse(this);
int from_bitField0_ = bitField0_;
if (dnsZonesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
dnsZones_ = java.util.Collections.unmodifiableList(dnsZones_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.dnsZones_ = dnsZones_;
} else {
result.dnsZones_ = dnsZonesBuilder_.build();
}
result.nextPageToken_ = nextPageToken_;
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse.getDefaultInstance()) return this;
if (dnsZonesBuilder_ == null) {
if (!other.dnsZones_.isEmpty()) {
if (dnsZones_.isEmpty()) {
dnsZones_ = other.dnsZones_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDnsZonesIsMutable();
dnsZones_.addAll(other.dnsZones_);
}
onChanged();
}
} else {
if (!other.dnsZones_.isEmpty()) {
if (dnsZonesBuilder_.isEmpty()) {
dnsZonesBuilder_.dispose();
dnsZonesBuilder_ = null;
dnsZones_ = other.dnsZones_;
bitField0_ = (bitField0_ & ~0x00000001);
dnsZonesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDnsZonesFieldBuilder() : null;
} else {
dnsZonesBuilder_.addAllMessages(other.dnsZones_);
}
}
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List dnsZones_ =
java.util.Collections.emptyList();
private void ensureDnsZonesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
dnsZones_ = new java.util.ArrayList(dnsZones_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone, yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZoneOrBuilder> dnsZonesBuilder_;
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
public java.util.List getDnsZonesList() {
if (dnsZonesBuilder_ == null) {
return java.util.Collections.unmodifiableList(dnsZones_);
} else {
return dnsZonesBuilder_.getMessageList();
}
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
public int getDnsZonesCount() {
if (dnsZonesBuilder_ == null) {
return dnsZones_.size();
} else {
return dnsZonesBuilder_.getCount();
}
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone getDnsZones(int index) {
if (dnsZonesBuilder_ == null) {
return dnsZones_.get(index);
} else {
return dnsZonesBuilder_.getMessage(index);
}
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
public Builder setDnsZones(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone value) {
if (dnsZonesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDnsZonesIsMutable();
dnsZones_.set(index, value);
onChanged();
} else {
dnsZonesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
public Builder setDnsZones(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone.Builder builderForValue) {
if (dnsZonesBuilder_ == null) {
ensureDnsZonesIsMutable();
dnsZones_.set(index, builderForValue.build());
onChanged();
} else {
dnsZonesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
public Builder addDnsZones(yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone value) {
if (dnsZonesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDnsZonesIsMutable();
dnsZones_.add(value);
onChanged();
} else {
dnsZonesBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
public Builder addDnsZones(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone value) {
if (dnsZonesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDnsZonesIsMutable();
dnsZones_.add(index, value);
onChanged();
} else {
dnsZonesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
public Builder addDnsZones(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone.Builder builderForValue) {
if (dnsZonesBuilder_ == null) {
ensureDnsZonesIsMutable();
dnsZones_.add(builderForValue.build());
onChanged();
} else {
dnsZonesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
public Builder addDnsZones(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone.Builder builderForValue) {
if (dnsZonesBuilder_ == null) {
ensureDnsZonesIsMutable();
dnsZones_.add(index, builderForValue.build());
onChanged();
} else {
dnsZonesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
public Builder addAllDnsZones(
java.lang.Iterable extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone> values) {
if (dnsZonesBuilder_ == null) {
ensureDnsZonesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, dnsZones_);
onChanged();
} else {
dnsZonesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
public Builder clearDnsZones() {
if (dnsZonesBuilder_ == null) {
dnsZones_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
dnsZonesBuilder_.clear();
}
return this;
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
public Builder removeDnsZones(int index) {
if (dnsZonesBuilder_ == null) {
ensureDnsZonesIsMutable();
dnsZones_.remove(index);
onChanged();
} else {
dnsZonesBuilder_.remove(index);
}
return this;
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone.Builder getDnsZonesBuilder(
int index) {
return getDnsZonesFieldBuilder().getBuilder(index);
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZoneOrBuilder getDnsZonesOrBuilder(
int index) {
if (dnsZonesBuilder_ == null) {
return dnsZones_.get(index); } else {
return dnsZonesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
public java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZoneOrBuilder>
getDnsZonesOrBuilderList() {
if (dnsZonesBuilder_ != null) {
return dnsZonesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(dnsZones_);
}
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone.Builder addDnsZonesBuilder() {
return getDnsZonesFieldBuilder().addBuilder(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone.getDefaultInstance());
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone.Builder addDnsZonesBuilder(
int index) {
return getDnsZonesFieldBuilder().addBuilder(
index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone.getDefaultInstance());
}
/**
*
* List of DNS zones in the specified folder.
*
*
* repeated .yandex.cloud.dns.v1.DnsZone dns_zones = 1;
*/
public java.util.List
getDnsZonesBuilderList() {
return getDnsZonesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone, yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZoneOrBuilder>
getDnsZonesFieldBuilder() {
if (dnsZonesBuilder_ == null) {
dnsZonesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone, yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZoneOrBuilder>(
dnsZones_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
dnsZones_ = null;
}
return dnsZonesBuilder_;
}
private java.lang.Object nextPageToken_ = "";
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZonesRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZonesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZonesRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZonesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZonesRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZonesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nextPageToken_ = value;
onChanged();
return this;
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZonesRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZonesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
nextPageToken_ = getDefaultInstance().getNextPageToken();
onChanged();
return this;
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZonesRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZonesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The bytes for nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nextPageToken_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.dns.v1.ListDnsZonesResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.ListDnsZonesResponse)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListDnsZonesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListDnsZonesResponse(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZonesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateDnsZoneRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.CreateDnsZoneRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the folder to create DNS zones in.
* To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The folderId.
*/
java.lang.String getFolderId();
/**
*
* ID of the folder to create DNS zones in.
* To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
*
* Name of the DNS zone.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the DNS zone.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Description of the DNS zone.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the DNS zone.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* DNS zone labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
int getLabelsCount();
/**
*
* DNS zone labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLabels();
/**
*
* DNS zone labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.util.Map
getLabelsMap();
/**
*
* DNS zone labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* DNS zone labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
/**
*
* DNS zone suffix.
*
*
* string zone = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[.]|[a-z0-9][-a-z0-9.]*\\.", (.yandex.cloud.length) = "<=255"];
* @return The zone.
*/
java.lang.String getZone();
/**
*
* DNS zone suffix.
*
*
* string zone = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[.]|[a-z0-9][-a-z0-9.]*\\.", (.yandex.cloud.length) = "<=255"];
* @return The bytes for zone.
*/
com.google.protobuf.ByteString
getZoneBytes();
/**
*
* Privately visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
* @return Whether the privateVisibility field is set.
*/
boolean hasPrivateVisibility();
/**
*
* Privately visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
* @return The privateVisibility.
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility getPrivateVisibility();
/**
*
* Privately visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibilityOrBuilder getPrivateVisibilityOrBuilder();
/**
*
* Publicly visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
* @return Whether the publicVisibility field is set.
*/
boolean hasPublicVisibility();
/**
*
* Publicly visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
* @return The publicVisibility.
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility getPublicVisibility();
/**
*
* Publicly visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibilityOrBuilder getPublicVisibilityOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.CreateDnsZoneRequest}
*/
public static final class CreateDnsZoneRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.CreateDnsZoneRequest)
CreateDnsZoneRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateDnsZoneRequest.newBuilder() to construct.
private CreateDnsZoneRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateDnsZoneRequest() {
folderId_ = "";
name_ = "";
description_ = "";
zone_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateDnsZoneRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateDnsZoneRequest(
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: {
java.lang.String s = input.readStringRequireUtf8();
folderId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
labels__ = input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
labels_.getMutableMap().put(
labels__.getKey(), labels__.getValue());
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
zone_ = s;
break;
}
case 50: {
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.Builder subBuilder = null;
if (privateVisibility_ != null) {
subBuilder = privateVisibility_.toBuilder();
}
privateVisibility_ = input.readMessage(yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(privateVisibility_);
privateVisibility_ = subBuilder.buildPartial();
}
break;
}
case 58: {
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.Builder subBuilder = null;
if (publicVisibility_ != null) {
subBuilder = publicVisibility_.toBuilder();
}
publicVisibility_ = input.readMessage(yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(publicVisibility_);
publicVisibility_ = subBuilder.buildPartial();
}
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_CreateDnsZoneRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_CreateDnsZoneRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest.Builder.class);
}
public static final int FOLDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder to create DNS zones in.
* To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The folderId.
*/
@java.lang.Override
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
folderId_ = s;
return s;
}
}
/**
*
* ID of the folder to create DNS zones in.
* To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for folderId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* Name of the DNS zone.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the DNS zone.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
private volatile java.lang.Object description_;
/**
*
* Description of the DNS zone.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
* Description of the DNS zone.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LABELS_FIELD_NUMBER = 4;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_CreateDnsZoneRequest_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
* DNS zone labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
* DNS zone labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* DNS zone labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* DNS zone labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ZONE_FIELD_NUMBER = 5;
private volatile java.lang.Object zone_;
/**
*
* DNS zone suffix.
*
*
* string zone = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[.]|[a-z0-9][-a-z0-9.]*\\.", (.yandex.cloud.length) = "<=255"];
* @return The zone.
*/
@java.lang.Override
public java.lang.String getZone() {
java.lang.Object ref = zone_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
zone_ = s;
return s;
}
}
/**
*
* DNS zone suffix.
*
*
* string zone = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[.]|[a-z0-9][-a-z0-9.]*\\.", (.yandex.cloud.length) = "<=255"];
* @return The bytes for zone.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getZoneBytes() {
java.lang.Object ref = zone_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRIVATE_VISIBILITY_FIELD_NUMBER = 6;
private yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility privateVisibility_;
/**
*
* Privately visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
* @return Whether the privateVisibility field is set.
*/
@java.lang.Override
public boolean hasPrivateVisibility() {
return privateVisibility_ != null;
}
/**
*
* Privately visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
* @return The privateVisibility.
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility getPrivateVisibility() {
return privateVisibility_ == null ? yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.getDefaultInstance() : privateVisibility_;
}
/**
*
* Privately visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibilityOrBuilder getPrivateVisibilityOrBuilder() {
return getPrivateVisibility();
}
public static final int PUBLIC_VISIBILITY_FIELD_NUMBER = 7;
private yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility publicVisibility_;
/**
*
* Publicly visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
* @return Whether the publicVisibility field is set.
*/
@java.lang.Override
public boolean hasPublicVisibility() {
return publicVisibility_ != null;
}
/**
*
* Publicly visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
* @return The publicVisibility.
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility getPublicVisibility() {
return publicVisibility_ == null ? yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.getDefaultInstance() : publicVisibility_;
}
/**
*
* Publicly visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibilityOrBuilder getPublicVisibilityOrBuilder() {
return getPublicVisibility();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folderId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLabels(),
LabelsDefaultEntryHolder.defaultEntry,
4);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, zone_);
}
if (privateVisibility_ != null) {
output.writeMessage(6, getPrivateVisibility());
}
if (publicVisibility_ != null) {
output.writeMessage(7, getPublicVisibility());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, folderId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
for (java.util.Map.Entry entry
: internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry
labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, labels__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, zone_);
}
if (privateVisibility_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getPrivateVisibility());
}
if (publicVisibility_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getPublicVisibility());
}
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest) obj;
if (!getFolderId()
.equals(other.getFolderId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!internalGetLabels().equals(
other.internalGetLabels())) return false;
if (!getZone()
.equals(other.getZone())) return false;
if (hasPrivateVisibility() != other.hasPrivateVisibility()) return false;
if (hasPrivateVisibility()) {
if (!getPrivateVisibility()
.equals(other.getPrivateVisibility())) return false;
}
if (hasPublicVisibility() != other.hasPublicVisibility()) return false;
if (hasPublicVisibility()) {
if (!getPublicVisibility()
.equals(other.getPublicVisibility())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getFolderId().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
hash = (37 * hash) + ZONE_FIELD_NUMBER;
hash = (53 * hash) + getZone().hashCode();
if (hasPrivateVisibility()) {
hash = (37 * hash) + PRIVATE_VISIBILITY_FIELD_NUMBER;
hash = (53 * hash) + getPrivateVisibility().hashCode();
}
if (hasPublicVisibility()) {
hash = (37 * hash) + PUBLIC_VISIBILITY_FIELD_NUMBER;
hash = (53 * hash) + getPublicVisibility().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.CreateDnsZoneRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.CreateDnsZoneRequest)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_CreateDnsZoneRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 4:
return internalGetMutableLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_CreateDnsZoneRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
folderId_ = "";
name_ = "";
description_ = "";
internalGetMutableLabels().clear();
zone_ = "";
if (privateVisibilityBuilder_ == null) {
privateVisibility_ = null;
} else {
privateVisibility_ = null;
privateVisibilityBuilder_ = null;
}
if (publicVisibilityBuilder_ == null) {
publicVisibility_ = null;
} else {
publicVisibility_ = null;
publicVisibilityBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_CreateDnsZoneRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest(this);
int from_bitField0_ = bitField0_;
result.folderId_ = folderId_;
result.name_ = name_;
result.description_ = description_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
result.zone_ = zone_;
if (privateVisibilityBuilder_ == null) {
result.privateVisibility_ = privateVisibility_;
} else {
result.privateVisibility_ = privateVisibilityBuilder_.build();
}
if (publicVisibilityBuilder_ == null) {
result.publicVisibility_ = publicVisibility_;
} else {
result.publicVisibility_ = publicVisibilityBuilder_.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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest.getDefaultInstance()) return this;
if (!other.getFolderId().isEmpty()) {
folderId_ = other.folderId_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
if (!other.getZone().isEmpty()) {
zone_ = other.zone_;
onChanged();
}
if (other.hasPrivateVisibility()) {
mergePrivateVisibility(other.getPrivateVisibility());
}
if (other.hasPublicVisibility()) {
mergePublicVisibility(other.getPublicVisibility());
}
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 {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object folderId_ = "";
/**
*
* ID of the folder to create DNS zones in.
* To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The folderId.
*/
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
folderId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the folder to create DNS zones in.
* To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for folderId.
*/
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the folder to create DNS zones in.
* To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
folderId_ = value;
onChanged();
return this;
}
/**
*
* ID of the folder to create DNS zones in.
* To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearFolderId() {
folderId_ = getDefaultInstance().getFolderId();
onChanged();
return this;
}
/**
*
* ID of the folder to create DNS zones in.
* To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
folderId_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the DNS zone.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the DNS zone.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the DNS zone.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the DNS zone.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the DNS zone.
* The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* Description of the DNS zone.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the DNS zone.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the DNS zone.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description of the DNS zone.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the DNS zone.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
onChanged();;
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
* DNS zone labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
* DNS zone labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* DNS zone labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* DNS zone labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLabels() {
internalGetMutableLabels().getMutableMap()
.clear();
return this;
}
/**
*
* DNS zone labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder removeLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableLabels().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableLabels() {
return internalGetMutableLabels().getMutableMap();
}
/**
*
* DNS zone labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder putLabels(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableLabels().getMutableMap()
.put(key, value);
return this;
}
/**
*
* DNS zone labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder putAllLabels(
java.util.Map values) {
internalGetMutableLabels().getMutableMap()
.putAll(values);
return this;
}
private java.lang.Object zone_ = "";
/**
*
* DNS zone suffix.
*
*
* string zone = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[.]|[a-z0-9][-a-z0-9.]*\\.", (.yandex.cloud.length) = "<=255"];
* @return The zone.
*/
public java.lang.String getZone() {
java.lang.Object ref = zone_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
zone_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* DNS zone suffix.
*
*
* string zone = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[.]|[a-z0-9][-a-z0-9.]*\\.", (.yandex.cloud.length) = "<=255"];
* @return The bytes for zone.
*/
public com.google.protobuf.ByteString
getZoneBytes() {
java.lang.Object ref = zone_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* DNS zone suffix.
*
*
* string zone = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[.]|[a-z0-9][-a-z0-9.]*\\.", (.yandex.cloud.length) = "<=255"];
* @param value The zone to set.
* @return This builder for chaining.
*/
public Builder setZone(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
zone_ = value;
onChanged();
return this;
}
/**
*
* DNS zone suffix.
*
*
* string zone = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[.]|[a-z0-9][-a-z0-9.]*\\.", (.yandex.cloud.length) = "<=255"];
* @return This builder for chaining.
*/
public Builder clearZone() {
zone_ = getDefaultInstance().getZone();
onChanged();
return this;
}
/**
*
* DNS zone suffix.
*
*
* string zone = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[.]|[a-z0-9][-a-z0-9.]*\\.", (.yandex.cloud.length) = "<=255"];
* @param value The bytes for zone to set.
* @return This builder for chaining.
*/
public Builder setZoneBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
zone_ = value;
onChanged();
return this;
}
private yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility privateVisibility_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibilityOrBuilder> privateVisibilityBuilder_;
/**
*
* Privately visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
* @return Whether the privateVisibility field is set.
*/
public boolean hasPrivateVisibility() {
return privateVisibilityBuilder_ != null || privateVisibility_ != null;
}
/**
*
* Privately visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
* @return The privateVisibility.
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility getPrivateVisibility() {
if (privateVisibilityBuilder_ == null) {
return privateVisibility_ == null ? yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.getDefaultInstance() : privateVisibility_;
} else {
return privateVisibilityBuilder_.getMessage();
}
}
/**
*
* Privately visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
*/
public Builder setPrivateVisibility(yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility value) {
if (privateVisibilityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
privateVisibility_ = value;
onChanged();
} else {
privateVisibilityBuilder_.setMessage(value);
}
return this;
}
/**
*
* Privately visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
*/
public Builder setPrivateVisibility(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.Builder builderForValue) {
if (privateVisibilityBuilder_ == null) {
privateVisibility_ = builderForValue.build();
onChanged();
} else {
privateVisibilityBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Privately visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
*/
public Builder mergePrivateVisibility(yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility value) {
if (privateVisibilityBuilder_ == null) {
if (privateVisibility_ != null) {
privateVisibility_ =
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.newBuilder(privateVisibility_).mergeFrom(value).buildPartial();
} else {
privateVisibility_ = value;
}
onChanged();
} else {
privateVisibilityBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Privately visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
*/
public Builder clearPrivateVisibility() {
if (privateVisibilityBuilder_ == null) {
privateVisibility_ = null;
onChanged();
} else {
privateVisibility_ = null;
privateVisibilityBuilder_ = null;
}
return this;
}
/**
*
* Privately visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.Builder getPrivateVisibilityBuilder() {
onChanged();
return getPrivateVisibilityFieldBuilder().getBuilder();
}
/**
*
* Privately visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibilityOrBuilder getPrivateVisibilityOrBuilder() {
if (privateVisibilityBuilder_ != null) {
return privateVisibilityBuilder_.getMessageOrBuilder();
} else {
return privateVisibility_ == null ?
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.getDefaultInstance() : privateVisibility_;
}
}
/**
*
* Privately visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibilityOrBuilder>
getPrivateVisibilityFieldBuilder() {
if (privateVisibilityBuilder_ == null) {
privateVisibilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibilityOrBuilder>(
getPrivateVisibility(),
getParentForChildren(),
isClean());
privateVisibility_ = null;
}
return privateVisibilityBuilder_;
}
private yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility publicVisibility_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibilityOrBuilder> publicVisibilityBuilder_;
/**
*
* Publicly visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
* @return Whether the publicVisibility field is set.
*/
public boolean hasPublicVisibility() {
return publicVisibilityBuilder_ != null || publicVisibility_ != null;
}
/**
*
* Publicly visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
* @return The publicVisibility.
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility getPublicVisibility() {
if (publicVisibilityBuilder_ == null) {
return publicVisibility_ == null ? yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.getDefaultInstance() : publicVisibility_;
} else {
return publicVisibilityBuilder_.getMessage();
}
}
/**
*
* Publicly visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
*/
public Builder setPublicVisibility(yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility value) {
if (publicVisibilityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
publicVisibility_ = value;
onChanged();
} else {
publicVisibilityBuilder_.setMessage(value);
}
return this;
}
/**
*
* Publicly visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
*/
public Builder setPublicVisibility(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.Builder builderForValue) {
if (publicVisibilityBuilder_ == null) {
publicVisibility_ = builderForValue.build();
onChanged();
} else {
publicVisibilityBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Publicly visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
*/
public Builder mergePublicVisibility(yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility value) {
if (publicVisibilityBuilder_ == null) {
if (publicVisibility_ != null) {
publicVisibility_ =
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.newBuilder(publicVisibility_).mergeFrom(value).buildPartial();
} else {
publicVisibility_ = value;
}
onChanged();
} else {
publicVisibilityBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Publicly visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
*/
public Builder clearPublicVisibility() {
if (publicVisibilityBuilder_ == null) {
publicVisibility_ = null;
onChanged();
} else {
publicVisibility_ = null;
publicVisibilityBuilder_ = null;
}
return this;
}
/**
*
* Publicly visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.Builder getPublicVisibilityBuilder() {
onChanged();
return getPublicVisibilityFieldBuilder().getBuilder();
}
/**
*
* Publicly visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibilityOrBuilder getPublicVisibilityOrBuilder() {
if (publicVisibilityBuilder_ != null) {
return publicVisibilityBuilder_.getMessageOrBuilder();
} else {
return publicVisibility_ == null ?
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.getDefaultInstance() : publicVisibility_;
}
}
/**
*
* Publicly visible zone settings.
* At least one of two visibility fields must be set.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibilityOrBuilder>
getPublicVisibilityFieldBuilder() {
if (publicVisibilityBuilder_ == null) {
publicVisibilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibilityOrBuilder>(
getPublicVisibility(),
getParentForChildren(),
isClean());
publicVisibility_ = null;
}
return publicVisibilityBuilder_;
}
@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:yandex.cloud.dns.v1.CreateDnsZoneRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.CreateDnsZoneRequest)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateDnsZoneRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateDnsZoneRequest(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateDnsZoneMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.CreateDnsZoneMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the DNS zone that is being created.
*
*
* string dns_zone_id = 1;
* @return The dnsZoneId.
*/
java.lang.String getDnsZoneId();
/**
*
* ID of the DNS zone that is being created.
*
*
* string dns_zone_id = 1;
* @return The bytes for dnsZoneId.
*/
com.google.protobuf.ByteString
getDnsZoneIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.CreateDnsZoneMetadata}
*/
public static final class CreateDnsZoneMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.CreateDnsZoneMetadata)
CreateDnsZoneMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateDnsZoneMetadata.newBuilder() to construct.
private CreateDnsZoneMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateDnsZoneMetadata() {
dnsZoneId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateDnsZoneMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateDnsZoneMetadata(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
dnsZoneId_ = 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_CreateDnsZoneMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_CreateDnsZoneMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata.Builder.class);
}
public static final int DNS_ZONE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object dnsZoneId_;
/**
*
* ID of the DNS zone that is being created.
*
*
* string dns_zone_id = 1;
* @return The dnsZoneId.
*/
@java.lang.Override
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
}
}
/**
*
* ID of the DNS zone that is being created.
*
*
* string dns_zone_id = 1;
* @return The bytes for dnsZoneId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dnsZoneId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dnsZoneId_);
}
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata) obj;
if (!getDnsZoneId()
.equals(other.getDnsZoneId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DNS_ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDnsZoneId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.CreateDnsZoneMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.CreateDnsZoneMetadata)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_CreateDnsZoneMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_CreateDnsZoneMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
dnsZoneId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_CreateDnsZoneMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata(this);
result.dnsZoneId_ = dnsZoneId_;
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata.getDefaultInstance()) return this;
if (!other.getDnsZoneId().isEmpty()) {
dnsZoneId_ = other.dnsZoneId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object dnsZoneId_ = "";
/**
*
* ID of the DNS zone that is being created.
*
*
* string dns_zone_id = 1;
* @return The dnsZoneId.
*/
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the DNS zone that is being created.
*
*
* string dns_zone_id = 1;
* @return The bytes for dnsZoneId.
*/
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the DNS zone that is being created.
*
*
* string dns_zone_id = 1;
* @param value The dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dnsZoneId_ = value;
onChanged();
return this;
}
/**
*
* ID of the DNS zone that is being created.
*
*
* string dns_zone_id = 1;
* @return This builder for chaining.
*/
public Builder clearDnsZoneId() {
dnsZoneId_ = getDefaultInstance().getDnsZoneId();
onChanged();
return this;
}
/**
*
* ID of the DNS zone that is being created.
*
*
* string dns_zone_id = 1;
* @param value The bytes for dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dnsZoneId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.dns.v1.CreateDnsZoneMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.CreateDnsZoneMetadata)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateDnsZoneMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateDnsZoneMetadata(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.CreateDnsZoneMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateDnsZoneRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.UpdateDnsZoneRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the DNS zone to update.
*
* To get the DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
java.lang.String getDnsZoneId();
/**
*
* ID of the DNS zone to update.
*
* To get the DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
com.google.protobuf.ByteString
getDnsZoneIdBytes();
/**
*
* Field mask specifying which fields of the DNS zone resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return Whether the updateMask field is set.
*/
boolean hasUpdateMask();
/**
*
* Field mask specifying which fields of the DNS zone resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return The updateMask.
*/
com.google.protobuf.FieldMask getUpdateMask();
/**
*
* Field mask specifying which fields of the DNS zone resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
/**
*
* New name for the DNS zone.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
java.lang.String getName();
/**
*
* New name for the DNS zone.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* New description of the DNS zone.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
java.lang.String getDescription();
/**
*
* New description of the DNS zone.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* DNS zone labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [DnsZoneService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
int getLabelsCount();
/**
*
* DNS zone labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [DnsZoneService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLabels();
/**
*
* DNS zone labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [DnsZoneService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.util.Map
getLabelsMap();
/**
*
* DNS zone labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [DnsZoneService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* DNS zone labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [DnsZoneService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
/**
*
* Change network IDs for private visibility.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
* @return Whether the privateVisibility field is set.
*/
boolean hasPrivateVisibility();
/**
*
* Change network IDs for private visibility.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
* @return The privateVisibility.
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility getPrivateVisibility();
/**
*
* Change network IDs for private visibility.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibilityOrBuilder getPrivateVisibilityOrBuilder();
/**
*
* Public visibility configuration.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
* @return Whether the publicVisibility field is set.
*/
boolean hasPublicVisibility();
/**
*
* Public visibility configuration.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
* @return The publicVisibility.
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility getPublicVisibility();
/**
*
* Public visibility configuration.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibilityOrBuilder getPublicVisibilityOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.UpdateDnsZoneRequest}
*/
public static final class UpdateDnsZoneRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.UpdateDnsZoneRequest)
UpdateDnsZoneRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateDnsZoneRequest.newBuilder() to construct.
private UpdateDnsZoneRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateDnsZoneRequest() {
dnsZoneId_ = "";
name_ = "";
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateDnsZoneRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateDnsZoneRequest(
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: {
java.lang.String s = input.readStringRequireUtf8();
dnsZoneId_ = s;
break;
}
case 18: {
com.google.protobuf.FieldMask.Builder subBuilder = null;
if (updateMask_ != null) {
subBuilder = updateMask_.toBuilder();
}
updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updateMask_);
updateMask_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
labels__ = input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
labels_.getMutableMap().put(
labels__.getKey(), labels__.getValue());
break;
}
case 50: {
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.Builder subBuilder = null;
if (privateVisibility_ != null) {
subBuilder = privateVisibility_.toBuilder();
}
privateVisibility_ = input.readMessage(yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(privateVisibility_);
privateVisibility_ = subBuilder.buildPartial();
}
break;
}
case 58: {
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.Builder subBuilder = null;
if (publicVisibility_ != null) {
subBuilder = publicVisibility_.toBuilder();
}
publicVisibility_ = input.readMessage(yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(publicVisibility_);
publicVisibility_ = subBuilder.buildPartial();
}
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZoneRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZoneRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest.Builder.class);
}
public static final int DNS_ZONE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object dnsZoneId_;
/**
*
* ID of the DNS zone to update.
*
* To get the DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
@java.lang.Override
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
}
}
/**
*
* ID of the DNS zone to update.
*
* To get the DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UPDATE_MASK_FIELD_NUMBER = 2;
private com.google.protobuf.FieldMask updateMask_;
/**
*
* Field mask specifying which fields of the DNS zone resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return Whether the updateMask field is set.
*/
@java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
/**
*
* Field mask specifying which fields of the DNS zone resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return The updateMask.
*/
@java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
/**
*
* Field mask specifying which fields of the DNS zone resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
public static final int NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object name_;
/**
*
* New name for the DNS zone.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* New name for the DNS zone.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 4;
private volatile java.lang.Object description_;
/**
*
* New description of the DNS zone.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
* New description of the DNS zone.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LABELS_FIELD_NUMBER = 5;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZoneRequest_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
* DNS zone labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [DnsZoneService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
* DNS zone labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [DnsZoneService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* DNS zone labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [DnsZoneService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* DNS zone labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [DnsZoneService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int PRIVATE_VISIBILITY_FIELD_NUMBER = 6;
private yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility privateVisibility_;
/**
*
* Change network IDs for private visibility.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
* @return Whether the privateVisibility field is set.
*/
@java.lang.Override
public boolean hasPrivateVisibility() {
return privateVisibility_ != null;
}
/**
*
* Change network IDs for private visibility.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
* @return The privateVisibility.
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility getPrivateVisibility() {
return privateVisibility_ == null ? yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.getDefaultInstance() : privateVisibility_;
}
/**
*
* Change network IDs for private visibility.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibilityOrBuilder getPrivateVisibilityOrBuilder() {
return getPrivateVisibility();
}
public static final int PUBLIC_VISIBILITY_FIELD_NUMBER = 7;
private yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility publicVisibility_;
/**
*
* Public visibility configuration.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
* @return Whether the publicVisibility field is set.
*/
@java.lang.Override
public boolean hasPublicVisibility() {
return publicVisibility_ != null;
}
/**
*
* Public visibility configuration.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
* @return The publicVisibility.
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility getPublicVisibility() {
return publicVisibility_ == null ? yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.getDefaultInstance() : publicVisibility_;
}
/**
*
* Public visibility configuration.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibilityOrBuilder getPublicVisibilityOrBuilder() {
return getPublicVisibility();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dnsZoneId_);
}
if (updateMask_ != null) {
output.writeMessage(2, getUpdateMask());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLabels(),
LabelsDefaultEntryHolder.defaultEntry,
5);
if (privateVisibility_ != null) {
output.writeMessage(6, getPrivateVisibility());
}
if (publicVisibility_ != null) {
output.writeMessage(7, getPublicVisibility());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dnsZoneId_);
}
if (updateMask_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getUpdateMask());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_);
}
for (java.util.Map.Entry entry
: internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry
labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, labels__);
}
if (privateVisibility_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getPrivateVisibility());
}
if (publicVisibility_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getPublicVisibility());
}
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest) obj;
if (!getDnsZoneId()
.equals(other.getDnsZoneId())) return false;
if (hasUpdateMask() != other.hasUpdateMask()) return false;
if (hasUpdateMask()) {
if (!getUpdateMask()
.equals(other.getUpdateMask())) return false;
}
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!internalGetLabels().equals(
other.internalGetLabels())) return false;
if (hasPrivateVisibility() != other.hasPrivateVisibility()) return false;
if (hasPrivateVisibility()) {
if (!getPrivateVisibility()
.equals(other.getPrivateVisibility())) return false;
}
if (hasPublicVisibility() != other.hasPublicVisibility()) return false;
if (hasPublicVisibility()) {
if (!getPublicVisibility()
.equals(other.getPublicVisibility())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DNS_ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDnsZoneId().hashCode();
if (hasUpdateMask()) {
hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER;
hash = (53 * hash) + getUpdateMask().hashCode();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
if (hasPrivateVisibility()) {
hash = (37 * hash) + PRIVATE_VISIBILITY_FIELD_NUMBER;
hash = (53 * hash) + getPrivateVisibility().hashCode();
}
if (hasPublicVisibility()) {
hash = (37 * hash) + PUBLIC_VISIBILITY_FIELD_NUMBER;
hash = (53 * hash) + getPublicVisibility().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.UpdateDnsZoneRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.UpdateDnsZoneRequest)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZoneRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 5:
return internalGetMutableLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZoneRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
dnsZoneId_ = "";
if (updateMaskBuilder_ == null) {
updateMask_ = null;
} else {
updateMask_ = null;
updateMaskBuilder_ = null;
}
name_ = "";
description_ = "";
internalGetMutableLabels().clear();
if (privateVisibilityBuilder_ == null) {
privateVisibility_ = null;
} else {
privateVisibility_ = null;
privateVisibilityBuilder_ = null;
}
if (publicVisibilityBuilder_ == null) {
publicVisibility_ = null;
} else {
publicVisibility_ = null;
publicVisibilityBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZoneRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest(this);
int from_bitField0_ = bitField0_;
result.dnsZoneId_ = dnsZoneId_;
if (updateMaskBuilder_ == null) {
result.updateMask_ = updateMask_;
} else {
result.updateMask_ = updateMaskBuilder_.build();
}
result.name_ = name_;
result.description_ = description_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
if (privateVisibilityBuilder_ == null) {
result.privateVisibility_ = privateVisibility_;
} else {
result.privateVisibility_ = privateVisibilityBuilder_.build();
}
if (publicVisibilityBuilder_ == null) {
result.publicVisibility_ = publicVisibility_;
} else {
result.publicVisibility_ = publicVisibilityBuilder_.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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest.getDefaultInstance()) return this;
if (!other.getDnsZoneId().isEmpty()) {
dnsZoneId_ = other.dnsZoneId_;
onChanged();
}
if (other.hasUpdateMask()) {
mergeUpdateMask(other.getUpdateMask());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
if (other.hasPrivateVisibility()) {
mergePrivateVisibility(other.getPrivateVisibility());
}
if (other.hasPublicVisibility()) {
mergePublicVisibility(other.getPublicVisibility());
}
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 {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object dnsZoneId_ = "";
/**
*
* ID of the DNS zone to update.
*
* To get the DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the DNS zone to update.
*
* To get the DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the DNS zone to update.
*
* To get the DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @param value The dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dnsZoneId_ = value;
onChanged();
return this;
}
/**
*
* ID of the DNS zone to update.
*
* To get the DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return This builder for chaining.
*/
public Builder clearDnsZoneId() {
dnsZoneId_ = getDefaultInstance().getDnsZoneId();
onChanged();
return this;
}
/**
*
* ID of the DNS zone to update.
*
* To get the DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @param value The bytes for dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dnsZoneId_ = value;
onChanged();
return this;
}
private com.google.protobuf.FieldMask updateMask_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
/**
*
* Field mask specifying which fields of the DNS zone resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
return updateMaskBuilder_ != null || updateMask_ != null;
}
/**
*
* Field mask specifying which fields of the DNS zone resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return The updateMask.
*/
public com.google.protobuf.FieldMask getUpdateMask() {
if (updateMaskBuilder_ == null) {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
} else {
return updateMaskBuilder_.getMessage();
}
}
/**
*
* Field mask specifying which fields of the DNS zone resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateMask_ = value;
onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
return this;
}
/**
*
* Field mask specifying which fields of the DNS zone resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder setUpdateMask(
com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Field mask specifying which fields of the DNS zone resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
if (updateMask_ != null) {
updateMask_ =
com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
} else {
updateMask_ = value;
}
onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Field mask specifying which fields of the DNS zone resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder clearUpdateMask() {
if (updateMaskBuilder_ == null) {
updateMask_ = null;
onChanged();
} else {
updateMask_ = null;
updateMaskBuilder_ = null;
}
return this;
}
/**
*
* Field mask specifying which fields of the DNS zone resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
/**
*
* Field mask specifying which fields of the DNS zone resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
if (updateMaskBuilder_ != null) {
return updateMaskBuilder_.getMessageOrBuilder();
} else {
return updateMask_ == null ?
com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
}
/**
*
* Field mask specifying which fields of the DNS zone resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>
getUpdateMaskFieldBuilder() {
if (updateMaskBuilder_ == null) {
updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
getUpdateMask(),
getParentForChildren(),
isClean());
updateMask_ = null;
}
return updateMaskBuilder_;
}
private java.lang.Object name_ = "";
/**
*
* New name for the DNS zone.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* New name for the DNS zone.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* New name for the DNS zone.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* New name for the DNS zone.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* New name for the DNS zone.
* The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* New description of the DNS zone.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* New description of the DNS zone.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* New description of the DNS zone.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* New description of the DNS zone.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* New description of the DNS zone.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
onChanged();;
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
* DNS zone labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [DnsZoneService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
* DNS zone labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [DnsZoneService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* DNS zone labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [DnsZoneService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* DNS zone labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [DnsZoneService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLabels() {
internalGetMutableLabels().getMutableMap()
.clear();
return this;
}
/**
*
* DNS zone labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [DnsZoneService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder removeLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableLabels().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableLabels() {
return internalGetMutableLabels().getMutableMap();
}
/**
*
* DNS zone labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [DnsZoneService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder putLabels(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableLabels().getMutableMap()
.put(key, value);
return this;
}
/**
*
* DNS zone labels as `key:value` pairs.
* Existing set of labels is completely replaced by the provided set, so if you just want
* to add or remove a label:
* 1. Get the current set of labels with a [DnsZoneService.Get] request.
* 2. Add or remove a label in this set.
* 3. Send the new set in this field.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder putAllLabels(
java.util.Map values) {
internalGetMutableLabels().getMutableMap()
.putAll(values);
return this;
}
private yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility privateVisibility_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibilityOrBuilder> privateVisibilityBuilder_;
/**
*
* Change network IDs for private visibility.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
* @return Whether the privateVisibility field is set.
*/
public boolean hasPrivateVisibility() {
return privateVisibilityBuilder_ != null || privateVisibility_ != null;
}
/**
*
* Change network IDs for private visibility.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
* @return The privateVisibility.
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility getPrivateVisibility() {
if (privateVisibilityBuilder_ == null) {
return privateVisibility_ == null ? yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.getDefaultInstance() : privateVisibility_;
} else {
return privateVisibilityBuilder_.getMessage();
}
}
/**
*
* Change network IDs for private visibility.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
*/
public Builder setPrivateVisibility(yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility value) {
if (privateVisibilityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
privateVisibility_ = value;
onChanged();
} else {
privateVisibilityBuilder_.setMessage(value);
}
return this;
}
/**
*
* Change network IDs for private visibility.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
*/
public Builder setPrivateVisibility(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.Builder builderForValue) {
if (privateVisibilityBuilder_ == null) {
privateVisibility_ = builderForValue.build();
onChanged();
} else {
privateVisibilityBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Change network IDs for private visibility.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
*/
public Builder mergePrivateVisibility(yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility value) {
if (privateVisibilityBuilder_ == null) {
if (privateVisibility_ != null) {
privateVisibility_ =
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.newBuilder(privateVisibility_).mergeFrom(value).buildPartial();
} else {
privateVisibility_ = value;
}
onChanged();
} else {
privateVisibilityBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Change network IDs for private visibility.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
*/
public Builder clearPrivateVisibility() {
if (privateVisibilityBuilder_ == null) {
privateVisibility_ = null;
onChanged();
} else {
privateVisibility_ = null;
privateVisibilityBuilder_ = null;
}
return this;
}
/**
*
* Change network IDs for private visibility.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.Builder getPrivateVisibilityBuilder() {
onChanged();
return getPrivateVisibilityFieldBuilder().getBuilder();
}
/**
*
* Change network IDs for private visibility.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibilityOrBuilder getPrivateVisibilityOrBuilder() {
if (privateVisibilityBuilder_ != null) {
return privateVisibilityBuilder_.getMessageOrBuilder();
} else {
return privateVisibility_ == null ?
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.getDefaultInstance() : privateVisibility_;
}
}
/**
*
* Change network IDs for private visibility.
*
*
* .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibilityOrBuilder>
getPrivateVisibilityFieldBuilder() {
if (privateVisibilityBuilder_ == null) {
privateVisibilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibilityOrBuilder>(
getPrivateVisibility(),
getParentForChildren(),
isClean());
privateVisibility_ = null;
}
return privateVisibilityBuilder_;
}
private yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility publicVisibility_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibilityOrBuilder> publicVisibilityBuilder_;
/**
*
* Public visibility configuration.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
* @return Whether the publicVisibility field is set.
*/
public boolean hasPublicVisibility() {
return publicVisibilityBuilder_ != null || publicVisibility_ != null;
}
/**
*
* Public visibility configuration.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
* @return The publicVisibility.
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility getPublicVisibility() {
if (publicVisibilityBuilder_ == null) {
return publicVisibility_ == null ? yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.getDefaultInstance() : publicVisibility_;
} else {
return publicVisibilityBuilder_.getMessage();
}
}
/**
*
* Public visibility configuration.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
*/
public Builder setPublicVisibility(yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility value) {
if (publicVisibilityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
publicVisibility_ = value;
onChanged();
} else {
publicVisibilityBuilder_.setMessage(value);
}
return this;
}
/**
*
* Public visibility configuration.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
*/
public Builder setPublicVisibility(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.Builder builderForValue) {
if (publicVisibilityBuilder_ == null) {
publicVisibility_ = builderForValue.build();
onChanged();
} else {
publicVisibilityBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Public visibility configuration.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
*/
public Builder mergePublicVisibility(yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility value) {
if (publicVisibilityBuilder_ == null) {
if (publicVisibility_ != null) {
publicVisibility_ =
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.newBuilder(publicVisibility_).mergeFrom(value).buildPartial();
} else {
publicVisibility_ = value;
}
onChanged();
} else {
publicVisibilityBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Public visibility configuration.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
*/
public Builder clearPublicVisibility() {
if (publicVisibilityBuilder_ == null) {
publicVisibility_ = null;
onChanged();
} else {
publicVisibility_ = null;
publicVisibilityBuilder_ = null;
}
return this;
}
/**
*
* Public visibility configuration.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.Builder getPublicVisibilityBuilder() {
onChanged();
return getPublicVisibilityFieldBuilder().getBuilder();
}
/**
*
* Public visibility configuration.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibilityOrBuilder getPublicVisibilityOrBuilder() {
if (publicVisibilityBuilder_ != null) {
return publicVisibilityBuilder_.getMessageOrBuilder();
} else {
return publicVisibility_ == null ?
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.getDefaultInstance() : publicVisibility_;
}
}
/**
*
* Public visibility configuration.
*
*
* .yandex.cloud.dns.v1.PublicVisibility public_visibility = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibilityOrBuilder>
getPublicVisibilityFieldBuilder() {
if (publicVisibilityBuilder_ == null) {
publicVisibilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibilityOrBuilder>(
getPublicVisibility(),
getParentForChildren(),
isClean());
publicVisibility_ = null;
}
return publicVisibilityBuilder_;
}
@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:yandex.cloud.dns.v1.UpdateDnsZoneRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.UpdateDnsZoneRequest)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateDnsZoneRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateDnsZoneRequest(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateDnsZoneMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.UpdateDnsZoneMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the DNS zone that is being updated.
*
*
* string dns_zone_id = 1;
* @return The dnsZoneId.
*/
java.lang.String getDnsZoneId();
/**
*
* ID of the DNS zone that is being updated.
*
*
* string dns_zone_id = 1;
* @return The bytes for dnsZoneId.
*/
com.google.protobuf.ByteString
getDnsZoneIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.UpdateDnsZoneMetadata}
*/
public static final class UpdateDnsZoneMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.UpdateDnsZoneMetadata)
UpdateDnsZoneMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateDnsZoneMetadata.newBuilder() to construct.
private UpdateDnsZoneMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateDnsZoneMetadata() {
dnsZoneId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateDnsZoneMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateDnsZoneMetadata(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
dnsZoneId_ = 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZoneMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZoneMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata.Builder.class);
}
public static final int DNS_ZONE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object dnsZoneId_;
/**
*
* ID of the DNS zone that is being updated.
*
*
* string dns_zone_id = 1;
* @return The dnsZoneId.
*/
@java.lang.Override
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
}
}
/**
*
* ID of the DNS zone that is being updated.
*
*
* string dns_zone_id = 1;
* @return The bytes for dnsZoneId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dnsZoneId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dnsZoneId_);
}
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata) obj;
if (!getDnsZoneId()
.equals(other.getDnsZoneId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DNS_ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDnsZoneId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.UpdateDnsZoneMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.UpdateDnsZoneMetadata)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZoneMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZoneMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
dnsZoneId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateDnsZoneMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata(this);
result.dnsZoneId_ = dnsZoneId_;
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata.getDefaultInstance()) return this;
if (!other.getDnsZoneId().isEmpty()) {
dnsZoneId_ = other.dnsZoneId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object dnsZoneId_ = "";
/**
*
* ID of the DNS zone that is being updated.
*
*
* string dns_zone_id = 1;
* @return The dnsZoneId.
*/
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the DNS zone that is being updated.
*
*
* string dns_zone_id = 1;
* @return The bytes for dnsZoneId.
*/
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the DNS zone that is being updated.
*
*
* string dns_zone_id = 1;
* @param value The dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dnsZoneId_ = value;
onChanged();
return this;
}
/**
*
* ID of the DNS zone that is being updated.
*
*
* string dns_zone_id = 1;
* @return This builder for chaining.
*/
public Builder clearDnsZoneId() {
dnsZoneId_ = getDefaultInstance().getDnsZoneId();
onChanged();
return this;
}
/**
*
* ID of the DNS zone that is being updated.
*
*
* string dns_zone_id = 1;
* @param value The bytes for dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dnsZoneId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.dns.v1.UpdateDnsZoneMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.UpdateDnsZoneMetadata)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateDnsZoneMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateDnsZoneMetadata(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateDnsZoneMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteDnsZoneRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.DeleteDnsZoneRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the DNS zone to delete.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
java.lang.String getDnsZoneId();
/**
*
* ID of the DNS zone to delete.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
com.google.protobuf.ByteString
getDnsZoneIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.DeleteDnsZoneRequest}
*/
public static final class DeleteDnsZoneRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.DeleteDnsZoneRequest)
DeleteDnsZoneRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteDnsZoneRequest.newBuilder() to construct.
private DeleteDnsZoneRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteDnsZoneRequest() {
dnsZoneId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteDnsZoneRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteDnsZoneRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
dnsZoneId_ = 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_DeleteDnsZoneRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_DeleteDnsZoneRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest.Builder.class);
}
public static final int DNS_ZONE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object dnsZoneId_;
/**
*
* ID of the DNS zone to delete.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
@java.lang.Override
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
}
}
/**
*
* ID of the DNS zone to delete.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dnsZoneId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dnsZoneId_);
}
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest) obj;
if (!getDnsZoneId()
.equals(other.getDnsZoneId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DNS_ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDnsZoneId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.DeleteDnsZoneRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.DeleteDnsZoneRequest)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_DeleteDnsZoneRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_DeleteDnsZoneRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
dnsZoneId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_DeleteDnsZoneRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest(this);
result.dnsZoneId_ = dnsZoneId_;
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest.getDefaultInstance()) return this;
if (!other.getDnsZoneId().isEmpty()) {
dnsZoneId_ = other.dnsZoneId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object dnsZoneId_ = "";
/**
*
* ID of the DNS zone to delete.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the DNS zone to delete.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the DNS zone to delete.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @param value The dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dnsZoneId_ = value;
onChanged();
return this;
}
/**
*
* ID of the DNS zone to delete.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return This builder for chaining.
*/
public Builder clearDnsZoneId() {
dnsZoneId_ = getDefaultInstance().getDnsZoneId();
onChanged();
return this;
}
/**
*
* ID of the DNS zone to delete.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @param value The bytes for dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dnsZoneId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.dns.v1.DeleteDnsZoneRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.DeleteDnsZoneRequest)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteDnsZoneRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteDnsZoneRequest(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteDnsZoneMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.DeleteDnsZoneMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the DNS zone that is being deleted.
*
*
* string dns_zone_id = 1;
* @return The dnsZoneId.
*/
java.lang.String getDnsZoneId();
/**
*
* ID of the DNS zone that is being deleted.
*
*
* string dns_zone_id = 1;
* @return The bytes for dnsZoneId.
*/
com.google.protobuf.ByteString
getDnsZoneIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.DeleteDnsZoneMetadata}
*/
public static final class DeleteDnsZoneMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.DeleteDnsZoneMetadata)
DeleteDnsZoneMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteDnsZoneMetadata.newBuilder() to construct.
private DeleteDnsZoneMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteDnsZoneMetadata() {
dnsZoneId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteDnsZoneMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteDnsZoneMetadata(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
dnsZoneId_ = 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_DeleteDnsZoneMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_DeleteDnsZoneMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata.Builder.class);
}
public static final int DNS_ZONE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object dnsZoneId_;
/**
*
* ID of the DNS zone that is being deleted.
*
*
* string dns_zone_id = 1;
* @return The dnsZoneId.
*/
@java.lang.Override
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
}
}
/**
*
* ID of the DNS zone that is being deleted.
*
*
* string dns_zone_id = 1;
* @return The bytes for dnsZoneId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dnsZoneId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dnsZoneId_);
}
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata) obj;
if (!getDnsZoneId()
.equals(other.getDnsZoneId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DNS_ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDnsZoneId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.DeleteDnsZoneMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.DeleteDnsZoneMetadata)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_DeleteDnsZoneMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_DeleteDnsZoneMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
dnsZoneId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_DeleteDnsZoneMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata(this);
result.dnsZoneId_ = dnsZoneId_;
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata.getDefaultInstance()) return this;
if (!other.getDnsZoneId().isEmpty()) {
dnsZoneId_ = other.dnsZoneId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object dnsZoneId_ = "";
/**
*
* ID of the DNS zone that is being deleted.
*
*
* string dns_zone_id = 1;
* @return The dnsZoneId.
*/
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the DNS zone that is being deleted.
*
*
* string dns_zone_id = 1;
* @return The bytes for dnsZoneId.
*/
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the DNS zone that is being deleted.
*
*
* string dns_zone_id = 1;
* @param value The dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dnsZoneId_ = value;
onChanged();
return this;
}
/**
*
* ID of the DNS zone that is being deleted.
*
*
* string dns_zone_id = 1;
* @return This builder for chaining.
*/
public Builder clearDnsZoneId() {
dnsZoneId_ = getDefaultInstance().getDnsZoneId();
onChanged();
return this;
}
/**
*
* ID of the DNS zone that is being deleted.
*
*
* string dns_zone_id = 1;
* @param value The bytes for dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dnsZoneId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.dns.v1.DeleteDnsZoneMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.DeleteDnsZoneMetadata)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteDnsZoneMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteDnsZoneMetadata(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.DeleteDnsZoneMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetDnsZoneRecordSetRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.GetDnsZoneRecordSetRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the DNS zone to get record set from.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
java.lang.String getDnsZoneId();
/**
*
* ID of the DNS zone to get record set from.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
com.google.protobuf.ByteString
getDnsZoneIdBytes();
/**
*
* Name of the record set.
*
*
* string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=255"];
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the record set.
*
*
* string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=255"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Type of the record set.
*
*
* string type = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=10"];
* @return The type.
*/
java.lang.String getType();
/**
*
* Type of the record set.
*
*
* string type = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=10"];
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.GetDnsZoneRecordSetRequest}
*/
public static final class GetDnsZoneRecordSetRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.GetDnsZoneRecordSetRequest)
GetDnsZoneRecordSetRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetDnsZoneRecordSetRequest.newBuilder() to construct.
private GetDnsZoneRecordSetRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetDnsZoneRecordSetRequest() {
dnsZoneId_ = "";
name_ = "";
type_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetDnsZoneRecordSetRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetDnsZoneRecordSetRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
dnsZoneId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
type_ = 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_GetDnsZoneRecordSetRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_GetDnsZoneRecordSetRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest.Builder.class);
}
public static final int DNS_ZONE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object dnsZoneId_;
/**
*
* ID of the DNS zone to get record set from.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
@java.lang.Override
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
}
}
/**
*
* ID of the DNS zone to get record set from.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* Name of the record set.
*
*
* string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=255"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the record set.
*
*
* string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=255"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 3;
private volatile java.lang.Object type_;
/**
*
* Type of the record set.
*
*
* string type = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=10"];
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
}
}
/**
*
* Type of the record set.
*
*
* string type = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=10"];
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dnsZoneId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dnsZoneId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_);
}
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest) obj;
if (!getDnsZoneId()
.equals(other.getDnsZoneId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getType()
.equals(other.getType())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DNS_ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDnsZoneId().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.GetDnsZoneRecordSetRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.GetDnsZoneRecordSetRequest)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_GetDnsZoneRecordSetRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_GetDnsZoneRecordSetRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
dnsZoneId_ = "";
name_ = "";
type_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_GetDnsZoneRecordSetRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest(this);
result.dnsZoneId_ = dnsZoneId_;
result.name_ = name_;
result.type_ = type_;
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest.getDefaultInstance()) return this;
if (!other.getDnsZoneId().isEmpty()) {
dnsZoneId_ = other.dnsZoneId_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getType().isEmpty()) {
type_ = other.type_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object dnsZoneId_ = "";
/**
*
* ID of the DNS zone to get record set from.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the DNS zone to get record set from.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the DNS zone to get record set from.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @param value The dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dnsZoneId_ = value;
onChanged();
return this;
}
/**
*
* ID of the DNS zone to get record set from.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return This builder for chaining.
*/
public Builder clearDnsZoneId() {
dnsZoneId_ = getDefaultInstance().getDnsZoneId();
onChanged();
return this;
}
/**
*
* ID of the DNS zone to get record set from.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @param value The bytes for dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dnsZoneId_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the record set.
*
*
* string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=255"];
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the record set.
*
*
* string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=255"];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the record set.
*
*
* string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=255"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the record set.
*
*
* string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=255"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the record set.
*
*
* string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=255"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
*
* Type of the record set.
*
*
* string type = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=10"];
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Type of the record set.
*
*
* string type = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=10"];
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Type of the record set.
*
*
* string type = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=10"];
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
return this;
}
/**
*
* Type of the record set.
*
*
* string type = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=10"];
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
*
* Type of the record set.
*
*
* string type = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=10"];
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.dns.v1.GetDnsZoneRecordSetRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.GetDnsZoneRecordSetRequest)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetDnsZoneRecordSetRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetDnsZoneRecordSetRequest(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.GetDnsZoneRecordSetRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListDnsZoneRecordSetsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.ListDnsZoneRecordSetsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the DNS zone to list record sets in.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
java.lang.String getDnsZoneId();
/**
*
* ID of the DNS zone to list record sets in.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
com.google.protobuf.ByteString
getDnsZoneIdBytes();
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than `page_size`, the service returns a [ListDnsZoneRecordSetsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDnsZoneRecordSetsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDnsZoneRecordSetsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
/**
*
* A filter expression that filters record sets listed in the response. The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the [RecordSet.name] and [RecordSet.type] fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* 3.1. In case of single value condition (`=` or `!=`), the value is a string in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
* 3.2. In case of a list of values condition (`IN` or `NOT IN`), the value is `(<string1>, <string2>, .., <stringN>)`, where `<string>` is a string in double (`"`) or single (`'`) quotes.
* Examples of a filter: `name="my-record-set"`, `type IN ("MX","A") AND name="works.on.my.machine."`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
java.lang.String getFilter();
/**
*
* A filter expression that filters record sets listed in the response. The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the [RecordSet.name] and [RecordSet.type] fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* 3.1. In case of single value condition (`=` or `!=`), the value is a string in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
* 3.2. In case of a list of values condition (`IN` or `NOT IN`), the value is `(<string1>, <string2>, .., <stringN>)`, where `<string>` is a string in double (`"`) or single (`'`) quotes.
* Examples of a filter: `name="my-record-set"`, `type IN ("MX","A") AND name="works.on.my.machine."`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
com.google.protobuf.ByteString
getFilterBytes();
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.ListDnsZoneRecordSetsRequest}
*/
public static final class ListDnsZoneRecordSetsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.ListDnsZoneRecordSetsRequest)
ListDnsZoneRecordSetsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListDnsZoneRecordSetsRequest.newBuilder() to construct.
private ListDnsZoneRecordSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListDnsZoneRecordSetsRequest() {
dnsZoneId_ = "";
pageToken_ = "";
filter_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListDnsZoneRecordSetsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListDnsZoneRecordSetsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
dnsZoneId_ = s;
break;
}
case 16: {
pageSize_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pageToken_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
filter_ = 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest.Builder.class);
}
public static final int DNS_ZONE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object dnsZoneId_;
/**
*
* ID of the DNS zone to list record sets in.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
@java.lang.Override
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
}
}
/**
*
* ID of the DNS zone to list record sets in.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
private long pageSize_;
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than `page_size`, the service returns a [ListDnsZoneRecordSetsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
private volatile java.lang.Object pageToken_;
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDnsZoneRecordSetsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The pageToken.
*/
@java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
}
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDnsZoneRecordSetsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for pageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FILTER_FIELD_NUMBER = 4;
private volatile java.lang.Object filter_;
/**
*
* A filter expression that filters record sets listed in the response. The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the [RecordSet.name] and [RecordSet.type] fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* 3.1. In case of single value condition (`=` or `!=`), the value is a string in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
* 3.2. In case of a list of values condition (`IN` or `NOT IN`), the value is `(<string1>, <string2>, .., <stringN>)`, where `<string>` is a string in double (`"`) or single (`'`) quotes.
* Examples of a filter: `name="my-record-set"`, `type IN ("MX","A") AND name="works.on.my.machine."`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
@java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filter_ = s;
return s;
}
}
/**
*
* A filter expression that filters record sets listed in the response. The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the [RecordSet.name] and [RecordSet.type] fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* 3.1. In case of single value condition (`=` or `!=`), the value is a string in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
* 3.2. In case of a list of values condition (`IN` or `NOT IN`), the value is `(<string1>, <string2>, .., <stringN>)`, where `<string>` is a string in double (`"`) or single (`'`) quotes.
* Examples of a filter: `name="my-record-set"`, `type IN ("MX","A") AND name="works.on.my.machine."`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dnsZoneId_);
}
if (pageSize_ != 0L) {
output.writeInt64(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dnsZoneId_);
}
if (pageSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_);
}
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest) obj;
if (!getDnsZoneId()
.equals(other.getDnsZoneId())) return false;
if (getPageSize()
!= other.getPageSize()) return false;
if (!getPageToken()
.equals(other.getPageToken())) return false;
if (!getFilter()
.equals(other.getFilter())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DNS_ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDnsZoneId().hashCode();
hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPageSize());
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.ListDnsZoneRecordSetsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.ListDnsZoneRecordSetsRequest)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
dnsZoneId_ = "";
pageSize_ = 0L;
pageToken_ = "";
filter_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest(this);
result.dnsZoneId_ = dnsZoneId_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
result.filter_ = filter_;
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest.getDefaultInstance()) return this;
if (!other.getDnsZoneId().isEmpty()) {
dnsZoneId_ = other.dnsZoneId_;
onChanged();
}
if (other.getPageSize() != 0L) {
setPageSize(other.getPageSize());
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
onChanged();
}
if (!other.getFilter().isEmpty()) {
filter_ = other.filter_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object dnsZoneId_ = "";
/**
*
* ID of the DNS zone to list record sets in.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the DNS zone to list record sets in.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the DNS zone to list record sets in.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @param value The dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dnsZoneId_ = value;
onChanged();
return this;
}
/**
*
* ID of the DNS zone to list record sets in.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return This builder for chaining.
*/
public Builder clearDnsZoneId() {
dnsZoneId_ = getDefaultInstance().getDnsZoneId();
onChanged();
return this;
}
/**
*
* ID of the DNS zone to list record sets in.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @param value The bytes for dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dnsZoneId_ = value;
onChanged();
return this;
}
private long pageSize_ ;
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than `page_size`, the service returns a [ListDnsZoneRecordSetsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than `page_size`, the service returns a [ListDnsZoneRecordSetsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @param value The pageSize to set.
* @return This builder for chaining.
*/
public Builder setPageSize(long value) {
pageSize_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than `page_size`, the service returns a [ListDnsZoneRecordSetsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"];
* @return This builder for chaining.
*/
public Builder clearPageSize() {
pageSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object pageToken_ = "";
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDnsZoneRecordSetsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The pageToken.
*/
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDnsZoneRecordSetsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for pageToken.
*/
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDnsZoneRecordSetsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @param value The pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pageToken_ = value;
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDnsZoneRecordSetsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDnsZoneRecordSetsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @param value The bytes for pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pageToken_ = value;
onChanged();
return this;
}
private java.lang.Object filter_ = "";
/**
*
* A filter expression that filters record sets listed in the response. The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the [RecordSet.name] and [RecordSet.type] fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* 3.1. In case of single value condition (`=` or `!=`), the value is a string in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
* 3.2. In case of a list of values condition (`IN` or `NOT IN`), the value is `(<string1>, <string2>, .., <stringN>)`, where `<string>` is a string in double (`"`) or single (`'`) quotes.
* Examples of a filter: `name="my-record-set"`, `type IN ("MX","A") AND name="works.on.my.machine."`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A filter expression that filters record sets listed in the response. The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the [RecordSet.name] and [RecordSet.type] fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* 3.1. In case of single value condition (`=` or `!=`), the value is a string in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
* 3.2. In case of a list of values condition (`IN` or `NOT IN`), the value is `(<string1>, <string2>, .., <stringN>)`, where `<string>` is a string in double (`"`) or single (`'`) quotes.
* Examples of a filter: `name="my-record-set"`, `type IN ("MX","A") AND name="works.on.my.machine."`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A filter expression that filters record sets listed in the response. The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the [RecordSet.name] and [RecordSet.type] fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* 3.1. In case of single value condition (`=` or `!=`), the value is a string in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
* 3.2. In case of a list of values condition (`IN` or `NOT IN`), the value is `(<string1>, <string2>, .., <stringN>)`, where `<string>` is a string in double (`"`) or single (`'`) quotes.
* Examples of a filter: `name="my-record-set"`, `type IN ("MX","A") AND name="works.on.my.machine."`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @param value The filter to set.
* @return This builder for chaining.
*/
public Builder setFilter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
return this;
}
/**
*
* A filter expression that filters record sets listed in the response. The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the [RecordSet.name] and [RecordSet.type] fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* 3.1. In case of single value condition (`=` or `!=`), the value is a string in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
* 3.2. In case of a list of values condition (`IN` or `NOT IN`), the value is `(<string1>, <string2>, .., <stringN>)`, where `<string>` is a string in double (`"`) or single (`'`) quotes.
* Examples of a filter: `name="my-record-set"`, `type IN ("MX","A") AND name="works.on.my.machine."`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return This builder for chaining.
*/
public Builder clearFilter() {
filter_ = getDefaultInstance().getFilter();
onChanged();
return this;
}
/**
*
* A filter expression that filters record sets listed in the response. The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the [RecordSet.name] and [RecordSet.type] fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* 3.1. In case of single value condition (`=` or `!=`), the value is a string in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
* 3.2. In case of a list of values condition (`IN` or `NOT IN`), the value is `(<string1>, <string2>, .., <stringN>)`, where `<string>` is a string in double (`"`) or single (`'`) quotes.
* Examples of a filter: `name="my-record-set"`, `type IN ("MX","A") AND name="works.on.my.machine."`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @param value The bytes for filter to set.
* @return This builder for chaining.
*/
public Builder setFilterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
filter_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.dns.v1.ListDnsZoneRecordSetsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.ListDnsZoneRecordSetsRequest)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListDnsZoneRecordSetsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListDnsZoneRecordSetsRequest(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListDnsZoneRecordSetsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.ListDnsZoneRecordSetsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
java.util.List
getRecordSetsList();
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getRecordSets(int index);
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
int getRecordSetsCount();
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getRecordSetsOrBuilderList();
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getRecordSetsOrBuilder(
int index);
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZoneRecordSetsRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZoneRecordSetsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
java.lang.String getNextPageToken();
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZoneRecordSetsRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZoneRecordSetsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
com.google.protobuf.ByteString
getNextPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.ListDnsZoneRecordSetsResponse}
*/
public static final class ListDnsZoneRecordSetsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.ListDnsZoneRecordSetsResponse)
ListDnsZoneRecordSetsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListDnsZoneRecordSetsResponse.newBuilder() to construct.
private ListDnsZoneRecordSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListDnsZoneRecordSetsResponse() {
recordSets_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListDnsZoneRecordSetsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListDnsZoneRecordSetsResponse(
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)) {
recordSets_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
recordSets_.add(
input.readMessage(yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nextPageToken_ = 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)) {
recordSets_ = java.util.Collections.unmodifiableList(recordSets_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse.Builder.class);
}
public static final int RECORD_SETS_FIELD_NUMBER = 1;
private java.util.List recordSets_;
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
@java.lang.Override
public java.util.List getRecordSetsList() {
return recordSets_;
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getRecordSetsOrBuilderList() {
return recordSets_;
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
@java.lang.Override
public int getRecordSetsCount() {
return recordSets_.size();
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getRecordSets(int index) {
return recordSets_.get(index);
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getRecordSetsOrBuilder(
int index) {
return recordSets_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextPageToken_;
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZoneRecordSetsRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZoneRecordSetsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
@java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZoneRecordSetsRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZoneRecordSetsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < recordSets_.size(); i++) {
output.writeMessage(1, recordSets_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < recordSets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, recordSets_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse) obj;
if (!getRecordSetsList()
.equals(other.getRecordSetsList())) return false;
if (!getNextPageToken()
.equals(other.getNextPageToken())) 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 (getRecordSetsCount() > 0) {
hash = (37 * hash) + RECORD_SETS_FIELD_NUMBER;
hash = (53 * hash) + getRecordSetsList().hashCode();
}
hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.ListDnsZoneRecordSetsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.ListDnsZoneRecordSetsResponse)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRecordSetsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (recordSetsBuilder_ == null) {
recordSets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
recordSetsBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse(this);
int from_bitField0_ = bitField0_;
if (recordSetsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
recordSets_ = java.util.Collections.unmodifiableList(recordSets_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.recordSets_ = recordSets_;
} else {
result.recordSets_ = recordSetsBuilder_.build();
}
result.nextPageToken_ = nextPageToken_;
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse.getDefaultInstance()) return this;
if (recordSetsBuilder_ == null) {
if (!other.recordSets_.isEmpty()) {
if (recordSets_.isEmpty()) {
recordSets_ = other.recordSets_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRecordSetsIsMutable();
recordSets_.addAll(other.recordSets_);
}
onChanged();
}
} else {
if (!other.recordSets_.isEmpty()) {
if (recordSetsBuilder_.isEmpty()) {
recordSetsBuilder_.dispose();
recordSetsBuilder_ = null;
recordSets_ = other.recordSets_;
bitField0_ = (bitField0_ & ~0x00000001);
recordSetsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRecordSetsFieldBuilder() : null;
} else {
recordSetsBuilder_.addAllMessages(other.recordSets_);
}
}
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List recordSets_ =
java.util.Collections.emptyList();
private void ensureRecordSetsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
recordSets_ = new java.util.ArrayList(recordSets_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder> recordSetsBuilder_;
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
public java.util.List getRecordSetsList() {
if (recordSetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(recordSets_);
} else {
return recordSetsBuilder_.getMessageList();
}
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
public int getRecordSetsCount() {
if (recordSetsBuilder_ == null) {
return recordSets_.size();
} else {
return recordSetsBuilder_.getCount();
}
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getRecordSets(int index) {
if (recordSetsBuilder_ == null) {
return recordSets_.get(index);
} else {
return recordSetsBuilder_.getMessage(index);
}
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
public Builder setRecordSets(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (recordSetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordSetsIsMutable();
recordSets_.set(index, value);
onChanged();
} else {
recordSetsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
public Builder setRecordSets(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (recordSetsBuilder_ == null) {
ensureRecordSetsIsMutable();
recordSets_.set(index, builderForValue.build());
onChanged();
} else {
recordSetsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
public Builder addRecordSets(yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (recordSetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordSetsIsMutable();
recordSets_.add(value);
onChanged();
} else {
recordSetsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
public Builder addRecordSets(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (recordSetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordSetsIsMutable();
recordSets_.add(index, value);
onChanged();
} else {
recordSetsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
public Builder addRecordSets(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (recordSetsBuilder_ == null) {
ensureRecordSetsIsMutable();
recordSets_.add(builderForValue.build());
onChanged();
} else {
recordSetsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
public Builder addRecordSets(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (recordSetsBuilder_ == null) {
ensureRecordSetsIsMutable();
recordSets_.add(index, builderForValue.build());
onChanged();
} else {
recordSetsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
public Builder addAllRecordSets(
java.lang.Iterable extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet> values) {
if (recordSetsBuilder_ == null) {
ensureRecordSetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, recordSets_);
onChanged();
} else {
recordSetsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
public Builder clearRecordSets() {
if (recordSetsBuilder_ == null) {
recordSets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
recordSetsBuilder_.clear();
}
return this;
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
public Builder removeRecordSets(int index) {
if (recordSetsBuilder_ == null) {
ensureRecordSetsIsMutable();
recordSets_.remove(index);
onChanged();
} else {
recordSetsBuilder_.remove(index);
}
return this;
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder getRecordSetsBuilder(
int index) {
return getRecordSetsFieldBuilder().getBuilder(index);
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getRecordSetsOrBuilder(
int index) {
if (recordSetsBuilder_ == null) {
return recordSets_.get(index); } else {
return recordSetsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
public java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getRecordSetsOrBuilderList() {
if (recordSetsBuilder_ != null) {
return recordSetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(recordSets_);
}
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder addRecordSetsBuilder() {
return getRecordSetsFieldBuilder().addBuilder(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.getDefaultInstance());
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder addRecordSetsBuilder(
int index) {
return getRecordSetsFieldBuilder().addBuilder(
index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.getDefaultInstance());
}
/**
*
* List of record sets in the specified DNS zone.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet record_sets = 1;
*/
public java.util.List
getRecordSetsBuilderList() {
return getRecordSetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getRecordSetsFieldBuilder() {
if (recordSetsBuilder_ == null) {
recordSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>(
recordSets_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
recordSets_ = null;
}
return recordSetsBuilder_;
}
private java.lang.Object nextPageToken_ = "";
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZoneRecordSetsRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZoneRecordSetsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZoneRecordSetsRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZoneRecordSetsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZoneRecordSetsRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZoneRecordSetsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nextPageToken_ = value;
onChanged();
return this;
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZoneRecordSetsRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZoneRecordSetsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
nextPageToken_ = getDefaultInstance().getNextPageToken();
onChanged();
return this;
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZoneRecordSetsRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZoneRecordSetsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The bytes for nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nextPageToken_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.dns.v1.ListDnsZoneRecordSetsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.ListDnsZoneRecordSetsResponse)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListDnsZoneRecordSetsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListDnsZoneRecordSetsResponse(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneRecordSetsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateRecordSetsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.UpdateRecordSetsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the DNS zone to update record sets in.
*
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
java.lang.String getDnsZoneId();
/**
*
* ID of the DNS zone to update record sets in.
*
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
com.google.protobuf.ByteString
getDnsZoneIdBytes();
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
java.util.List
getDeletionsList();
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getDeletions(int index);
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
int getDeletionsCount();
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getDeletionsOrBuilderList();
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getDeletionsOrBuilder(
int index);
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
java.util.List
getAdditionsList();
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getAdditions(int index);
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
int getAdditionsCount();
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getAdditionsOrBuilderList();
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getAdditionsOrBuilder(
int index);
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.UpdateRecordSetsRequest}
*/
public static final class UpdateRecordSetsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.UpdateRecordSetsRequest)
UpdateRecordSetsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateRecordSetsRequest.newBuilder() to construct.
private UpdateRecordSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateRecordSetsRequest() {
dnsZoneId_ = "";
deletions_ = java.util.Collections.emptyList();
additions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateRecordSetsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateRecordSetsRequest(
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: {
java.lang.String s = input.readStringRequireUtf8();
dnsZoneId_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
deletions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
deletions_.add(
input.readMessage(yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
additions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
additions_.add(
input.readMessage(yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.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)) {
deletions_ = java.util.Collections.unmodifiableList(deletions_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
additions_ = java.util.Collections.unmodifiableList(additions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateRecordSetsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateRecordSetsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest.Builder.class);
}
public static final int DNS_ZONE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object dnsZoneId_;
/**
*
* ID of the DNS zone to update record sets in.
*
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
@java.lang.Override
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
}
}
/**
*
* ID of the DNS zone to update record sets in.
*
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DELETIONS_FIELD_NUMBER = 2;
private java.util.List deletions_;
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public java.util.List getDeletionsList() {
return deletions_;
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getDeletionsOrBuilderList() {
return deletions_;
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public int getDeletionsCount() {
return deletions_.size();
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getDeletions(int index) {
return deletions_.get(index);
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getDeletionsOrBuilder(
int index) {
return deletions_.get(index);
}
public static final int ADDITIONS_FIELD_NUMBER = 3;
private java.util.List additions_;
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public java.util.List getAdditionsList() {
return additions_;
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getAdditionsOrBuilderList() {
return additions_;
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public int getAdditionsCount() {
return additions_.size();
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getAdditions(int index) {
return additions_.get(index);
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getAdditionsOrBuilder(
int index) {
return additions_.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 {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dnsZoneId_);
}
for (int i = 0; i < deletions_.size(); i++) {
output.writeMessage(2, deletions_.get(i));
}
for (int i = 0; i < additions_.size(); i++) {
output.writeMessage(3, additions_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dnsZoneId_);
}
for (int i = 0; i < deletions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, deletions_.get(i));
}
for (int i = 0; i < additions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, additions_.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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest) obj;
if (!getDnsZoneId()
.equals(other.getDnsZoneId())) return false;
if (!getDeletionsList()
.equals(other.getDeletionsList())) return false;
if (!getAdditionsList()
.equals(other.getAdditionsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DNS_ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDnsZoneId().hashCode();
if (getDeletionsCount() > 0) {
hash = (37 * hash) + DELETIONS_FIELD_NUMBER;
hash = (53 * hash) + getDeletionsList().hashCode();
}
if (getAdditionsCount() > 0) {
hash = (37 * hash) + ADDITIONS_FIELD_NUMBER;
hash = (53 * hash) + getAdditionsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.UpdateRecordSetsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.UpdateRecordSetsRequest)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateRecordSetsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateRecordSetsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDeletionsFieldBuilder();
getAdditionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
dnsZoneId_ = "";
if (deletionsBuilder_ == null) {
deletions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
deletionsBuilder_.clear();
}
if (additionsBuilder_ == null) {
additions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
additionsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateRecordSetsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest(this);
int from_bitField0_ = bitField0_;
result.dnsZoneId_ = dnsZoneId_;
if (deletionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
deletions_ = java.util.Collections.unmodifiableList(deletions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.deletions_ = deletions_;
} else {
result.deletions_ = deletionsBuilder_.build();
}
if (additionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
additions_ = java.util.Collections.unmodifiableList(additions_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.additions_ = additions_;
} else {
result.additions_ = additionsBuilder_.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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest.getDefaultInstance()) return this;
if (!other.getDnsZoneId().isEmpty()) {
dnsZoneId_ = other.dnsZoneId_;
onChanged();
}
if (deletionsBuilder_ == null) {
if (!other.deletions_.isEmpty()) {
if (deletions_.isEmpty()) {
deletions_ = other.deletions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDeletionsIsMutable();
deletions_.addAll(other.deletions_);
}
onChanged();
}
} else {
if (!other.deletions_.isEmpty()) {
if (deletionsBuilder_.isEmpty()) {
deletionsBuilder_.dispose();
deletionsBuilder_ = null;
deletions_ = other.deletions_;
bitField0_ = (bitField0_ & ~0x00000001);
deletionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDeletionsFieldBuilder() : null;
} else {
deletionsBuilder_.addAllMessages(other.deletions_);
}
}
}
if (additionsBuilder_ == null) {
if (!other.additions_.isEmpty()) {
if (additions_.isEmpty()) {
additions_ = other.additions_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAdditionsIsMutable();
additions_.addAll(other.additions_);
}
onChanged();
}
} else {
if (!other.additions_.isEmpty()) {
if (additionsBuilder_.isEmpty()) {
additionsBuilder_.dispose();
additionsBuilder_ = null;
additions_ = other.additions_;
bitField0_ = (bitField0_ & ~0x00000002);
additionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAdditionsFieldBuilder() : null;
} else {
additionsBuilder_.addAllMessages(other.additions_);
}
}
}
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 {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object dnsZoneId_ = "";
/**
*
* ID of the DNS zone to update record sets in.
*
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the DNS zone to update record sets in.
*
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the DNS zone to update record sets in.
*
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @param value The dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dnsZoneId_ = value;
onChanged();
return this;
}
/**
*
* ID of the DNS zone to update record sets in.
*
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return This builder for chaining.
*/
public Builder clearDnsZoneId() {
dnsZoneId_ = getDefaultInstance().getDnsZoneId();
onChanged();
return this;
}
/**
*
* ID of the DNS zone to update record sets in.
*
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @param value The bytes for dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dnsZoneId_ = value;
onChanged();
return this;
}
private java.util.List deletions_ =
java.util.Collections.emptyList();
private void ensureDeletionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
deletions_ = new java.util.ArrayList(deletions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder> deletionsBuilder_;
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public java.util.List getDeletionsList() {
if (deletionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(deletions_);
} else {
return deletionsBuilder_.getMessageList();
}
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public int getDeletionsCount() {
if (deletionsBuilder_ == null) {
return deletions_.size();
} else {
return deletionsBuilder_.getCount();
}
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getDeletions(int index) {
if (deletionsBuilder_ == null) {
return deletions_.get(index);
} else {
return deletionsBuilder_.getMessage(index);
}
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder setDeletions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (deletionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeletionsIsMutable();
deletions_.set(index, value);
onChanged();
} else {
deletionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder setDeletions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (deletionsBuilder_ == null) {
ensureDeletionsIsMutable();
deletions_.set(index, builderForValue.build());
onChanged();
} else {
deletionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addDeletions(yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (deletionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeletionsIsMutable();
deletions_.add(value);
onChanged();
} else {
deletionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addDeletions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (deletionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeletionsIsMutable();
deletions_.add(index, value);
onChanged();
} else {
deletionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addDeletions(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (deletionsBuilder_ == null) {
ensureDeletionsIsMutable();
deletions_.add(builderForValue.build());
onChanged();
} else {
deletionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addDeletions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (deletionsBuilder_ == null) {
ensureDeletionsIsMutable();
deletions_.add(index, builderForValue.build());
onChanged();
} else {
deletionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addAllDeletions(
java.lang.Iterable extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet> values) {
if (deletionsBuilder_ == null) {
ensureDeletionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, deletions_);
onChanged();
} else {
deletionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder clearDeletions() {
if (deletionsBuilder_ == null) {
deletions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
deletionsBuilder_.clear();
}
return this;
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder removeDeletions(int index) {
if (deletionsBuilder_ == null) {
ensureDeletionsIsMutable();
deletions_.remove(index);
onChanged();
} else {
deletionsBuilder_.remove(index);
}
return this;
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder getDeletionsBuilder(
int index) {
return getDeletionsFieldBuilder().getBuilder(index);
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getDeletionsOrBuilder(
int index) {
if (deletionsBuilder_ == null) {
return deletions_.get(index); } else {
return deletionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getDeletionsOrBuilderList() {
if (deletionsBuilder_ != null) {
return deletionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(deletions_);
}
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder addDeletionsBuilder() {
return getDeletionsFieldBuilder().addBuilder(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.getDefaultInstance());
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder addDeletionsBuilder(
int index) {
return getDeletionsFieldBuilder().addBuilder(
index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.getDefaultInstance());
}
/**
*
* List of record sets to delete.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public java.util.List
getDeletionsBuilderList() {
return getDeletionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getDeletionsFieldBuilder() {
if (deletionsBuilder_ == null) {
deletionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>(
deletions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
deletions_ = null;
}
return deletionsBuilder_;
}
private java.util.List additions_ =
java.util.Collections.emptyList();
private void ensureAdditionsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
additions_ = new java.util.ArrayList(additions_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder> additionsBuilder_;
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public java.util.List getAdditionsList() {
if (additionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(additions_);
} else {
return additionsBuilder_.getMessageList();
}
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public int getAdditionsCount() {
if (additionsBuilder_ == null) {
return additions_.size();
} else {
return additionsBuilder_.getCount();
}
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getAdditions(int index) {
if (additionsBuilder_ == null) {
return additions_.get(index);
} else {
return additionsBuilder_.getMessage(index);
}
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder setAdditions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (additionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionsIsMutable();
additions_.set(index, value);
onChanged();
} else {
additionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder setAdditions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (additionsBuilder_ == null) {
ensureAdditionsIsMutable();
additions_.set(index, builderForValue.build());
onChanged();
} else {
additionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addAdditions(yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (additionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionsIsMutable();
additions_.add(value);
onChanged();
} else {
additionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addAdditions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (additionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionsIsMutable();
additions_.add(index, value);
onChanged();
} else {
additionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addAdditions(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (additionsBuilder_ == null) {
ensureAdditionsIsMutable();
additions_.add(builderForValue.build());
onChanged();
} else {
additionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addAdditions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (additionsBuilder_ == null) {
ensureAdditionsIsMutable();
additions_.add(index, builderForValue.build());
onChanged();
} else {
additionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addAllAdditions(
java.lang.Iterable extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet> values) {
if (additionsBuilder_ == null) {
ensureAdditionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, additions_);
onChanged();
} else {
additionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder clearAdditions() {
if (additionsBuilder_ == null) {
additions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
additionsBuilder_.clear();
}
return this;
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder removeAdditions(int index) {
if (additionsBuilder_ == null) {
ensureAdditionsIsMutable();
additions_.remove(index);
onChanged();
} else {
additionsBuilder_.remove(index);
}
return this;
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder getAdditionsBuilder(
int index) {
return getAdditionsFieldBuilder().getBuilder(index);
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getAdditionsOrBuilder(
int index) {
if (additionsBuilder_ == null) {
return additions_.get(index); } else {
return additionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getAdditionsOrBuilderList() {
if (additionsBuilder_ != null) {
return additionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(additions_);
}
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder addAdditionsBuilder() {
return getAdditionsFieldBuilder().addBuilder(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.getDefaultInstance());
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder addAdditionsBuilder(
int index) {
return getAdditionsFieldBuilder().addBuilder(
index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.getDefaultInstance());
}
/**
*
* List of record sets to add.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public java.util.List
getAdditionsBuilderList() {
return getAdditionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getAdditionsFieldBuilder() {
if (additionsBuilder_ == null) {
additionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>(
additions_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
additions_ = null;
}
return additionsBuilder_;
}
@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:yandex.cloud.dns.v1.UpdateRecordSetsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.UpdateRecordSetsRequest)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateRecordSetsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateRecordSetsRequest(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateRecordSetsMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.UpdateRecordSetsMetadata)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.UpdateRecordSetsMetadata}
*/
public static final class UpdateRecordSetsMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.UpdateRecordSetsMetadata)
UpdateRecordSetsMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateRecordSetsMetadata.newBuilder() to construct.
private UpdateRecordSetsMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateRecordSetsMetadata() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateRecordSetsMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateRecordSetsMetadata(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateRecordSetsMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateRecordSetsMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.UpdateRecordSetsMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.UpdateRecordSetsMetadata)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateRecordSetsMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateRecordSetsMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpdateRecordSetsMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata(this);
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata.getDefaultInstance()) return this;
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 {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.dns.v1.UpdateRecordSetsMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.UpdateRecordSetsMetadata)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateRecordSetsMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateRecordSetsMetadata(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpdateRecordSetsMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpsertRecordSetsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.UpsertRecordSetsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the DNS zone to upsert record sets to.
*
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
java.lang.String getDnsZoneId();
/**
*
* ID of the DNS zone to upsert record sets to.
*
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
com.google.protobuf.ByteString
getDnsZoneIdBytes();
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
java.util.List
getDeletionsList();
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getDeletions(int index);
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
int getDeletionsCount();
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getDeletionsOrBuilderList();
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getDeletionsOrBuilder(
int index);
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
java.util.List
getReplacementsList();
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getReplacements(int index);
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
int getReplacementsCount();
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getReplacementsOrBuilderList();
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getReplacementsOrBuilder(
int index);
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
java.util.List
getMergesList();
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getMerges(int index);
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
int getMergesCount();
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getMergesOrBuilderList();
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getMergesOrBuilder(
int index);
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.UpsertRecordSetsRequest}
*/
public static final class UpsertRecordSetsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.UpsertRecordSetsRequest)
UpsertRecordSetsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpsertRecordSetsRequest.newBuilder() to construct.
private UpsertRecordSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpsertRecordSetsRequest() {
dnsZoneId_ = "";
deletions_ = java.util.Collections.emptyList();
replacements_ = java.util.Collections.emptyList();
merges_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpsertRecordSetsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpsertRecordSetsRequest(
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: {
java.lang.String s = input.readStringRequireUtf8();
dnsZoneId_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
deletions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
deletions_.add(
input.readMessage(yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
replacements_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
replacements_.add(
input.readMessage(yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.parser(), extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
merges_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
merges_.add(
input.readMessage(yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.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)) {
deletions_ = java.util.Collections.unmodifiableList(deletions_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
replacements_ = java.util.Collections.unmodifiableList(replacements_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
merges_ = java.util.Collections.unmodifiableList(merges_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpsertRecordSetsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpsertRecordSetsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest.Builder.class);
}
public static final int DNS_ZONE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object dnsZoneId_;
/**
*
* ID of the DNS zone to upsert record sets to.
*
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
@java.lang.Override
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
}
}
/**
*
* ID of the DNS zone to upsert record sets to.
*
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DELETIONS_FIELD_NUMBER = 2;
private java.util.List deletions_;
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public java.util.List getDeletionsList() {
return deletions_;
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getDeletionsOrBuilderList() {
return deletions_;
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public int getDeletionsCount() {
return deletions_.size();
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getDeletions(int index) {
return deletions_.get(index);
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getDeletionsOrBuilder(
int index) {
return deletions_.get(index);
}
public static final int REPLACEMENTS_FIELD_NUMBER = 3;
private java.util.List replacements_;
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public java.util.List getReplacementsList() {
return replacements_;
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getReplacementsOrBuilderList() {
return replacements_;
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public int getReplacementsCount() {
return replacements_.size();
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getReplacements(int index) {
return replacements_.get(index);
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getReplacementsOrBuilder(
int index) {
return replacements_.get(index);
}
public static final int MERGES_FIELD_NUMBER = 4;
private java.util.List merges_;
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public java.util.List getMergesList() {
return merges_;
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getMergesOrBuilderList() {
return merges_;
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public int getMergesCount() {
return merges_.size();
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getMerges(int index) {
return merges_.get(index);
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getMergesOrBuilder(
int index) {
return merges_.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 {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dnsZoneId_);
}
for (int i = 0; i < deletions_.size(); i++) {
output.writeMessage(2, deletions_.get(i));
}
for (int i = 0; i < replacements_.size(); i++) {
output.writeMessage(3, replacements_.get(i));
}
for (int i = 0; i < merges_.size(); i++) {
output.writeMessage(4, merges_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dnsZoneId_);
}
for (int i = 0; i < deletions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, deletions_.get(i));
}
for (int i = 0; i < replacements_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, replacements_.get(i));
}
for (int i = 0; i < merges_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, merges_.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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest) obj;
if (!getDnsZoneId()
.equals(other.getDnsZoneId())) return false;
if (!getDeletionsList()
.equals(other.getDeletionsList())) return false;
if (!getReplacementsList()
.equals(other.getReplacementsList())) return false;
if (!getMergesList()
.equals(other.getMergesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DNS_ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDnsZoneId().hashCode();
if (getDeletionsCount() > 0) {
hash = (37 * hash) + DELETIONS_FIELD_NUMBER;
hash = (53 * hash) + getDeletionsList().hashCode();
}
if (getReplacementsCount() > 0) {
hash = (37 * hash) + REPLACEMENTS_FIELD_NUMBER;
hash = (53 * hash) + getReplacementsList().hashCode();
}
if (getMergesCount() > 0) {
hash = (37 * hash) + MERGES_FIELD_NUMBER;
hash = (53 * hash) + getMergesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.UpsertRecordSetsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.UpsertRecordSetsRequest)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpsertRecordSetsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpsertRecordSetsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDeletionsFieldBuilder();
getReplacementsFieldBuilder();
getMergesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
dnsZoneId_ = "";
if (deletionsBuilder_ == null) {
deletions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
deletionsBuilder_.clear();
}
if (replacementsBuilder_ == null) {
replacements_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
replacementsBuilder_.clear();
}
if (mergesBuilder_ == null) {
merges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
mergesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpsertRecordSetsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest(this);
int from_bitField0_ = bitField0_;
result.dnsZoneId_ = dnsZoneId_;
if (deletionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
deletions_ = java.util.Collections.unmodifiableList(deletions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.deletions_ = deletions_;
} else {
result.deletions_ = deletionsBuilder_.build();
}
if (replacementsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
replacements_ = java.util.Collections.unmodifiableList(replacements_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.replacements_ = replacements_;
} else {
result.replacements_ = replacementsBuilder_.build();
}
if (mergesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
merges_ = java.util.Collections.unmodifiableList(merges_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.merges_ = merges_;
} else {
result.merges_ = mergesBuilder_.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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest.getDefaultInstance()) return this;
if (!other.getDnsZoneId().isEmpty()) {
dnsZoneId_ = other.dnsZoneId_;
onChanged();
}
if (deletionsBuilder_ == null) {
if (!other.deletions_.isEmpty()) {
if (deletions_.isEmpty()) {
deletions_ = other.deletions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDeletionsIsMutable();
deletions_.addAll(other.deletions_);
}
onChanged();
}
} else {
if (!other.deletions_.isEmpty()) {
if (deletionsBuilder_.isEmpty()) {
deletionsBuilder_.dispose();
deletionsBuilder_ = null;
deletions_ = other.deletions_;
bitField0_ = (bitField0_ & ~0x00000001);
deletionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDeletionsFieldBuilder() : null;
} else {
deletionsBuilder_.addAllMessages(other.deletions_);
}
}
}
if (replacementsBuilder_ == null) {
if (!other.replacements_.isEmpty()) {
if (replacements_.isEmpty()) {
replacements_ = other.replacements_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureReplacementsIsMutable();
replacements_.addAll(other.replacements_);
}
onChanged();
}
} else {
if (!other.replacements_.isEmpty()) {
if (replacementsBuilder_.isEmpty()) {
replacementsBuilder_.dispose();
replacementsBuilder_ = null;
replacements_ = other.replacements_;
bitField0_ = (bitField0_ & ~0x00000002);
replacementsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getReplacementsFieldBuilder() : null;
} else {
replacementsBuilder_.addAllMessages(other.replacements_);
}
}
}
if (mergesBuilder_ == null) {
if (!other.merges_.isEmpty()) {
if (merges_.isEmpty()) {
merges_ = other.merges_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureMergesIsMutable();
merges_.addAll(other.merges_);
}
onChanged();
}
} else {
if (!other.merges_.isEmpty()) {
if (mergesBuilder_.isEmpty()) {
mergesBuilder_.dispose();
mergesBuilder_ = null;
merges_ = other.merges_;
bitField0_ = (bitField0_ & ~0x00000004);
mergesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMergesFieldBuilder() : null;
} else {
mergesBuilder_.addAllMessages(other.merges_);
}
}
}
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 {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object dnsZoneId_ = "";
/**
*
* ID of the DNS zone to upsert record sets to.
*
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the DNS zone to upsert record sets to.
*
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the DNS zone to upsert record sets to.
*
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @param value The dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dnsZoneId_ = value;
onChanged();
return this;
}
/**
*
* ID of the DNS zone to upsert record sets to.
*
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return This builder for chaining.
*/
public Builder clearDnsZoneId() {
dnsZoneId_ = getDefaultInstance().getDnsZoneId();
onChanged();
return this;
}
/**
*
* ID of the DNS zone to upsert record sets to.
*
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @param value The bytes for dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dnsZoneId_ = value;
onChanged();
return this;
}
private java.util.List deletions_ =
java.util.Collections.emptyList();
private void ensureDeletionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
deletions_ = new java.util.ArrayList(deletions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder> deletionsBuilder_;
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public java.util.List getDeletionsList() {
if (deletionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(deletions_);
} else {
return deletionsBuilder_.getMessageList();
}
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public int getDeletionsCount() {
if (deletionsBuilder_ == null) {
return deletions_.size();
} else {
return deletionsBuilder_.getCount();
}
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getDeletions(int index) {
if (deletionsBuilder_ == null) {
return deletions_.get(index);
} else {
return deletionsBuilder_.getMessage(index);
}
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder setDeletions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (deletionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeletionsIsMutable();
deletions_.set(index, value);
onChanged();
} else {
deletionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder setDeletions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (deletionsBuilder_ == null) {
ensureDeletionsIsMutable();
deletions_.set(index, builderForValue.build());
onChanged();
} else {
deletionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addDeletions(yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (deletionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeletionsIsMutable();
deletions_.add(value);
onChanged();
} else {
deletionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addDeletions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (deletionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeletionsIsMutable();
deletions_.add(index, value);
onChanged();
} else {
deletionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addDeletions(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (deletionsBuilder_ == null) {
ensureDeletionsIsMutable();
deletions_.add(builderForValue.build());
onChanged();
} else {
deletionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addDeletions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (deletionsBuilder_ == null) {
ensureDeletionsIsMutable();
deletions_.add(index, builderForValue.build());
onChanged();
} else {
deletionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addAllDeletions(
java.lang.Iterable extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet> values) {
if (deletionsBuilder_ == null) {
ensureDeletionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, deletions_);
onChanged();
} else {
deletionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder clearDeletions() {
if (deletionsBuilder_ == null) {
deletions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
deletionsBuilder_.clear();
}
return this;
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder removeDeletions(int index) {
if (deletionsBuilder_ == null) {
ensureDeletionsIsMutable();
deletions_.remove(index);
onChanged();
} else {
deletionsBuilder_.remove(index);
}
return this;
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder getDeletionsBuilder(
int index) {
return getDeletionsFieldBuilder().getBuilder(index);
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getDeletionsOrBuilder(
int index) {
if (deletionsBuilder_ == null) {
return deletions_.get(index); } else {
return deletionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getDeletionsOrBuilderList() {
if (deletionsBuilder_ != null) {
return deletionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(deletions_);
}
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder addDeletionsBuilder() {
return getDeletionsFieldBuilder().addBuilder(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.getDefaultInstance());
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder addDeletionsBuilder(
int index) {
return getDeletionsFieldBuilder().addBuilder(
index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.getDefaultInstance());
}
/**
*
* Delete only specified records from corresponding record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2 [(.yandex.cloud.size) = "<=1000"];
*/
public java.util.List
getDeletionsBuilderList() {
return getDeletionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getDeletionsFieldBuilder() {
if (deletionsBuilder_ == null) {
deletionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>(
deletions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
deletions_ = null;
}
return deletionsBuilder_;
}
private java.util.List replacements_ =
java.util.Collections.emptyList();
private void ensureReplacementsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
replacements_ = new java.util.ArrayList(replacements_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder> replacementsBuilder_;
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public java.util.List getReplacementsList() {
if (replacementsBuilder_ == null) {
return java.util.Collections.unmodifiableList(replacements_);
} else {
return replacementsBuilder_.getMessageList();
}
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public int getReplacementsCount() {
if (replacementsBuilder_ == null) {
return replacements_.size();
} else {
return replacementsBuilder_.getCount();
}
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getReplacements(int index) {
if (replacementsBuilder_ == null) {
return replacements_.get(index);
} else {
return replacementsBuilder_.getMessage(index);
}
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder setReplacements(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (replacementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureReplacementsIsMutable();
replacements_.set(index, value);
onChanged();
} else {
replacementsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder setReplacements(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (replacementsBuilder_ == null) {
ensureReplacementsIsMutable();
replacements_.set(index, builderForValue.build());
onChanged();
} else {
replacementsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addReplacements(yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (replacementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureReplacementsIsMutable();
replacements_.add(value);
onChanged();
} else {
replacementsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addReplacements(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (replacementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureReplacementsIsMutable();
replacements_.add(index, value);
onChanged();
} else {
replacementsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addReplacements(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (replacementsBuilder_ == null) {
ensureReplacementsIsMutable();
replacements_.add(builderForValue.build());
onChanged();
} else {
replacementsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addReplacements(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (replacementsBuilder_ == null) {
ensureReplacementsIsMutable();
replacements_.add(index, builderForValue.build());
onChanged();
} else {
replacementsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addAllReplacements(
java.lang.Iterable extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet> values) {
if (replacementsBuilder_ == null) {
ensureReplacementsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, replacements_);
onChanged();
} else {
replacementsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder clearReplacements() {
if (replacementsBuilder_ == null) {
replacements_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
replacementsBuilder_.clear();
}
return this;
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder removeReplacements(int index) {
if (replacementsBuilder_ == null) {
ensureReplacementsIsMutable();
replacements_.remove(index);
onChanged();
} else {
replacementsBuilder_.remove(index);
}
return this;
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder getReplacementsBuilder(
int index) {
return getReplacementsFieldBuilder().getBuilder(index);
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getReplacementsOrBuilder(
int index) {
if (replacementsBuilder_ == null) {
return replacements_.get(index); } else {
return replacementsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getReplacementsOrBuilderList() {
if (replacementsBuilder_ != null) {
return replacementsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(replacements_);
}
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder addReplacementsBuilder() {
return getReplacementsFieldBuilder().addBuilder(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.getDefaultInstance());
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder addReplacementsBuilder(
int index) {
return getReplacementsFieldBuilder().addBuilder(
index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.getDefaultInstance());
}
/**
*
* Entirely replace specified record sets.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet replacements = 3 [(.yandex.cloud.size) = "<=1000"];
*/
public java.util.List
getReplacementsBuilderList() {
return getReplacementsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getReplacementsFieldBuilder() {
if (replacementsBuilder_ == null) {
replacementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>(
replacements_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
replacements_ = null;
}
return replacementsBuilder_;
}
private java.util.List merges_ =
java.util.Collections.emptyList();
private void ensureMergesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
merges_ = new java.util.ArrayList(merges_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder> mergesBuilder_;
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
public java.util.List getMergesList() {
if (mergesBuilder_ == null) {
return java.util.Collections.unmodifiableList(merges_);
} else {
return mergesBuilder_.getMessageList();
}
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
public int getMergesCount() {
if (mergesBuilder_ == null) {
return merges_.size();
} else {
return mergesBuilder_.getCount();
}
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getMerges(int index) {
if (mergesBuilder_ == null) {
return merges_.get(index);
} else {
return mergesBuilder_.getMessage(index);
}
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder setMerges(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (mergesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMergesIsMutable();
merges_.set(index, value);
onChanged();
} else {
mergesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder setMerges(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (mergesBuilder_ == null) {
ensureMergesIsMutable();
merges_.set(index, builderForValue.build());
onChanged();
} else {
mergesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addMerges(yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (mergesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMergesIsMutable();
merges_.add(value);
onChanged();
} else {
mergesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addMerges(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (mergesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMergesIsMutable();
merges_.add(index, value);
onChanged();
} else {
mergesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addMerges(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (mergesBuilder_ == null) {
ensureMergesIsMutable();
merges_.add(builderForValue.build());
onChanged();
} else {
mergesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addMerges(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (mergesBuilder_ == null) {
ensureMergesIsMutable();
merges_.add(index, builderForValue.build());
onChanged();
} else {
mergesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder addAllMerges(
java.lang.Iterable extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet> values) {
if (mergesBuilder_ == null) {
ensureMergesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, merges_);
onChanged();
} else {
mergesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder clearMerges() {
if (mergesBuilder_ == null) {
merges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
mergesBuilder_.clear();
}
return this;
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
public Builder removeMerges(int index) {
if (mergesBuilder_ == null) {
ensureMergesIsMutable();
merges_.remove(index);
onChanged();
} else {
mergesBuilder_.remove(index);
}
return this;
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder getMergesBuilder(
int index) {
return getMergesFieldBuilder().getBuilder(index);
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getMergesOrBuilder(
int index) {
if (mergesBuilder_ == null) {
return merges_.get(index); } else {
return mergesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
public java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getMergesOrBuilderList() {
if (mergesBuilder_ != null) {
return mergesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(merges_);
}
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder addMergesBuilder() {
return getMergesFieldBuilder().addBuilder(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.getDefaultInstance());
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder addMergesBuilder(
int index) {
return getMergesFieldBuilder().addBuilder(
index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.getDefaultInstance());
}
/**
*
* Replace specified records or add new ones if no such record sets exists.
*
*
* repeated .yandex.cloud.dns.v1.RecordSet merges = 4 [(.yandex.cloud.size) = "<=1000"];
*/
public java.util.List
getMergesBuilderList() {
return getMergesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getMergesFieldBuilder() {
if (mergesBuilder_ == null) {
mergesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>(
merges_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
merges_ = null;
}
return mergesBuilder_;
}
@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:yandex.cloud.dns.v1.UpsertRecordSetsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.UpsertRecordSetsRequest)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpsertRecordSetsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpsertRecordSetsRequest(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpsertRecordSetsMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.UpsertRecordSetsMetadata)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.UpsertRecordSetsMetadata}
*/
public static final class UpsertRecordSetsMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.UpsertRecordSetsMetadata)
UpsertRecordSetsMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpsertRecordSetsMetadata.newBuilder() to construct.
private UpsertRecordSetsMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpsertRecordSetsMetadata() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpsertRecordSetsMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpsertRecordSetsMetadata(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpsertRecordSetsMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpsertRecordSetsMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.UpsertRecordSetsMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.UpsertRecordSetsMetadata)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpsertRecordSetsMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpsertRecordSetsMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_UpsertRecordSetsMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata(this);
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata.getDefaultInstance()) return this;
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 {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.dns.v1.UpsertRecordSetsMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.UpsertRecordSetsMetadata)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpsertRecordSetsMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpsertRecordSetsMetadata(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.UpsertRecordSetsMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RecordSetDiffOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.RecordSetDiff)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
java.util.List
getAdditionsList();
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getAdditions(int index);
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
int getAdditionsCount();
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getAdditionsOrBuilderList();
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getAdditionsOrBuilder(
int index);
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
java.util.List
getDeletionsList();
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getDeletions(int index);
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
int getDeletionsCount();
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getDeletionsOrBuilderList();
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getDeletionsOrBuilder(
int index);
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.RecordSetDiff}
*/
public static final class RecordSetDiff extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.RecordSetDiff)
RecordSetDiffOrBuilder {
private static final long serialVersionUID = 0L;
// Use RecordSetDiff.newBuilder() to construct.
private RecordSetDiff(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RecordSetDiff() {
additions_ = java.util.Collections.emptyList();
deletions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RecordSetDiff();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RecordSetDiff(
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)) {
additions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
additions_.add(
input.readMessage(yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.parser(), extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
deletions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
deletions_.add(
input.readMessage(yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.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)) {
additions_ = java.util.Collections.unmodifiableList(additions_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
deletions_ = java.util.Collections.unmodifiableList(deletions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_RecordSetDiff_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_RecordSetDiff_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff.Builder.class);
}
public static final int ADDITIONS_FIELD_NUMBER = 1;
private java.util.List additions_;
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
@java.lang.Override
public java.util.List getAdditionsList() {
return additions_;
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getAdditionsOrBuilderList() {
return additions_;
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
@java.lang.Override
public int getAdditionsCount() {
return additions_.size();
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getAdditions(int index) {
return additions_.get(index);
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getAdditionsOrBuilder(
int index) {
return additions_.get(index);
}
public static final int DELETIONS_FIELD_NUMBER = 2;
private java.util.List deletions_;
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
@java.lang.Override
public java.util.List getDeletionsList() {
return deletions_;
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getDeletionsOrBuilderList() {
return deletions_;
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
@java.lang.Override
public int getDeletionsCount() {
return deletions_.size();
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getDeletions(int index) {
return deletions_.get(index);
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getDeletionsOrBuilder(
int index) {
return deletions_.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 < additions_.size(); i++) {
output.writeMessage(1, additions_.get(i));
}
for (int i = 0; i < deletions_.size(); i++) {
output.writeMessage(2, deletions_.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 < additions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, additions_.get(i));
}
for (int i = 0; i < deletions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, deletions_.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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff) obj;
if (!getAdditionsList()
.equals(other.getAdditionsList())) return false;
if (!getDeletionsList()
.equals(other.getDeletionsList())) 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 (getAdditionsCount() > 0) {
hash = (37 * hash) + ADDITIONS_FIELD_NUMBER;
hash = (53 * hash) + getAdditionsList().hashCode();
}
if (getDeletionsCount() > 0) {
hash = (37 * hash) + DELETIONS_FIELD_NUMBER;
hash = (53 * hash) + getDeletionsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.RecordSetDiff}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.RecordSetDiff)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiffOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_RecordSetDiff_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_RecordSetDiff_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAdditionsFieldBuilder();
getDeletionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (additionsBuilder_ == null) {
additions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
additionsBuilder_.clear();
}
if (deletionsBuilder_ == null) {
deletions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
deletionsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_RecordSetDiff_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff(this);
int from_bitField0_ = bitField0_;
if (additionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
additions_ = java.util.Collections.unmodifiableList(additions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.additions_ = additions_;
} else {
result.additions_ = additionsBuilder_.build();
}
if (deletionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
deletions_ = java.util.Collections.unmodifiableList(deletions_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.deletions_ = deletions_;
} else {
result.deletions_ = deletionsBuilder_.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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff.getDefaultInstance()) return this;
if (additionsBuilder_ == null) {
if (!other.additions_.isEmpty()) {
if (additions_.isEmpty()) {
additions_ = other.additions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAdditionsIsMutable();
additions_.addAll(other.additions_);
}
onChanged();
}
} else {
if (!other.additions_.isEmpty()) {
if (additionsBuilder_.isEmpty()) {
additionsBuilder_.dispose();
additionsBuilder_ = null;
additions_ = other.additions_;
bitField0_ = (bitField0_ & ~0x00000001);
additionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAdditionsFieldBuilder() : null;
} else {
additionsBuilder_.addAllMessages(other.additions_);
}
}
}
if (deletionsBuilder_ == null) {
if (!other.deletions_.isEmpty()) {
if (deletions_.isEmpty()) {
deletions_ = other.deletions_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDeletionsIsMutable();
deletions_.addAll(other.deletions_);
}
onChanged();
}
} else {
if (!other.deletions_.isEmpty()) {
if (deletionsBuilder_.isEmpty()) {
deletionsBuilder_.dispose();
deletionsBuilder_ = null;
deletions_ = other.deletions_;
bitField0_ = (bitField0_ & ~0x00000002);
deletionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDeletionsFieldBuilder() : null;
} else {
deletionsBuilder_.addAllMessages(other.deletions_);
}
}
}
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 {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List additions_ =
java.util.Collections.emptyList();
private void ensureAdditionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
additions_ = new java.util.ArrayList(additions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder> additionsBuilder_;
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
public java.util.List getAdditionsList() {
if (additionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(additions_);
} else {
return additionsBuilder_.getMessageList();
}
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
public int getAdditionsCount() {
if (additionsBuilder_ == null) {
return additions_.size();
} else {
return additionsBuilder_.getCount();
}
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getAdditions(int index) {
if (additionsBuilder_ == null) {
return additions_.get(index);
} else {
return additionsBuilder_.getMessage(index);
}
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
public Builder setAdditions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (additionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionsIsMutable();
additions_.set(index, value);
onChanged();
} else {
additionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
public Builder setAdditions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (additionsBuilder_ == null) {
ensureAdditionsIsMutable();
additions_.set(index, builderForValue.build());
onChanged();
} else {
additionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
public Builder addAdditions(yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (additionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionsIsMutable();
additions_.add(value);
onChanged();
} else {
additionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
public Builder addAdditions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (additionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdditionsIsMutable();
additions_.add(index, value);
onChanged();
} else {
additionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
public Builder addAdditions(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (additionsBuilder_ == null) {
ensureAdditionsIsMutable();
additions_.add(builderForValue.build());
onChanged();
} else {
additionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
public Builder addAdditions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (additionsBuilder_ == null) {
ensureAdditionsIsMutable();
additions_.add(index, builderForValue.build());
onChanged();
} else {
additionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
public Builder addAllAdditions(
java.lang.Iterable extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet> values) {
if (additionsBuilder_ == null) {
ensureAdditionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, additions_);
onChanged();
} else {
additionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
public Builder clearAdditions() {
if (additionsBuilder_ == null) {
additions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
additionsBuilder_.clear();
}
return this;
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
public Builder removeAdditions(int index) {
if (additionsBuilder_ == null) {
ensureAdditionsIsMutable();
additions_.remove(index);
onChanged();
} else {
additionsBuilder_.remove(index);
}
return this;
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder getAdditionsBuilder(
int index) {
return getAdditionsFieldBuilder().getBuilder(index);
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getAdditionsOrBuilder(
int index) {
if (additionsBuilder_ == null) {
return additions_.get(index); } else {
return additionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
public java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getAdditionsOrBuilderList() {
if (additionsBuilder_ != null) {
return additionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(additions_);
}
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder addAdditionsBuilder() {
return getAdditionsFieldBuilder().addBuilder(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.getDefaultInstance());
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder addAdditionsBuilder(
int index) {
return getAdditionsFieldBuilder().addBuilder(
index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.getDefaultInstance());
}
/**
*
* List of record sets that were added
*
*
* repeated .yandex.cloud.dns.v1.RecordSet additions = 1;
*/
public java.util.List
getAdditionsBuilderList() {
return getAdditionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getAdditionsFieldBuilder() {
if (additionsBuilder_ == null) {
additionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>(
additions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
additions_ = null;
}
return additionsBuilder_;
}
private java.util.List deletions_ =
java.util.Collections.emptyList();
private void ensureDeletionsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
deletions_ = new java.util.ArrayList(deletions_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder> deletionsBuilder_;
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
public java.util.List getDeletionsList() {
if (deletionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(deletions_);
} else {
return deletionsBuilder_.getMessageList();
}
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
public int getDeletionsCount() {
if (deletionsBuilder_ == null) {
return deletions_.size();
} else {
return deletionsBuilder_.getCount();
}
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getDeletions(int index) {
if (deletionsBuilder_ == null) {
return deletions_.get(index);
} else {
return deletionsBuilder_.getMessage(index);
}
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
public Builder setDeletions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (deletionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeletionsIsMutable();
deletions_.set(index, value);
onChanged();
} else {
deletionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
public Builder setDeletions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (deletionsBuilder_ == null) {
ensureDeletionsIsMutable();
deletions_.set(index, builderForValue.build());
onChanged();
} else {
deletionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
public Builder addDeletions(yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (deletionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeletionsIsMutable();
deletions_.add(value);
onChanged();
} else {
deletionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
public Builder addDeletions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet value) {
if (deletionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeletionsIsMutable();
deletions_.add(index, value);
onChanged();
} else {
deletionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
public Builder addDeletions(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (deletionsBuilder_ == null) {
ensureDeletionsIsMutable();
deletions_.add(builderForValue.build());
onChanged();
} else {
deletionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
public Builder addDeletions(
int index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder builderForValue) {
if (deletionsBuilder_ == null) {
ensureDeletionsIsMutable();
deletions_.add(index, builderForValue.build());
onChanged();
} else {
deletionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
public Builder addAllDeletions(
java.lang.Iterable extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet> values) {
if (deletionsBuilder_ == null) {
ensureDeletionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, deletions_);
onChanged();
} else {
deletionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
public Builder clearDeletions() {
if (deletionsBuilder_ == null) {
deletions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
deletionsBuilder_.clear();
}
return this;
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
public Builder removeDeletions(int index) {
if (deletionsBuilder_ == null) {
ensureDeletionsIsMutable();
deletions_.remove(index);
onChanged();
} else {
deletionsBuilder_.remove(index);
}
return this;
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder getDeletionsBuilder(
int index) {
return getDeletionsFieldBuilder().getBuilder(index);
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder getDeletionsOrBuilder(
int index) {
if (deletionsBuilder_ == null) {
return deletions_.get(index); } else {
return deletionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
public java.util.List extends yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getDeletionsOrBuilderList() {
if (deletionsBuilder_ != null) {
return deletionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(deletions_);
}
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder addDeletionsBuilder() {
return getDeletionsFieldBuilder().addBuilder(
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.getDefaultInstance());
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder addDeletionsBuilder(
int index) {
return getDeletionsFieldBuilder().addBuilder(
index, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.getDefaultInstance());
}
/**
*
* List of record sets that were deleted
*
*
* repeated .yandex.cloud.dns.v1.RecordSet deletions = 2;
*/
public java.util.List
getDeletionsBuilderList() {
return getDeletionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>
getDeletionsFieldBuilder() {
if (deletionsBuilder_ == null) {
deletionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder>(
deletions_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
deletions_ = null;
}
return deletionsBuilder_;
}
@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:yandex.cloud.dns.v1.RecordSetDiff)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.RecordSetDiff)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RecordSetDiff parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RecordSetDiff(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.RecordSetDiff getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListDnsZoneOperationsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.ListDnsZoneOperationsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the DNS zone to list operations for.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
java.lang.String getDnsZoneId();
/**
*
* ID of the DNS zone to list operations for.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
com.google.protobuf.ByteString
getDnsZoneIdBytes();
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size], the service returns a [ListDnsZoneOperationsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. To get the next page of results, set [page_token] to the
* [ListDnsZoneOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
*
* Page token. To get the next page of results, set [page_token] to the
* [ListDnsZoneOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
/**
*
* A filter expression that filters DNS zones listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on the [DnsZone.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-dns-zone`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
java.lang.String getFilter();
/**
*
* A filter expression that filters DNS zones listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on the [DnsZone.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-dns-zone`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
com.google.protobuf.ByteString
getFilterBytes();
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.ListDnsZoneOperationsRequest}
*/
public static final class ListDnsZoneOperationsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.ListDnsZoneOperationsRequest)
ListDnsZoneOperationsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListDnsZoneOperationsRequest.newBuilder() to construct.
private ListDnsZoneOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListDnsZoneOperationsRequest() {
dnsZoneId_ = "";
pageToken_ = "";
filter_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListDnsZoneOperationsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListDnsZoneOperationsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
dnsZoneId_ = s;
break;
}
case 16: {
pageSize_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pageToken_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
filter_ = 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest.Builder.class);
}
public static final int DNS_ZONE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object dnsZoneId_;
/**
*
* ID of the DNS zone to list operations for.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
@java.lang.Override
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
}
}
/**
*
* ID of the DNS zone to list operations for.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
private long pageSize_;
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size], the service returns a [ListDnsZoneOperationsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
private volatile java.lang.Object pageToken_;
/**
*
* Page token. To get the next page of results, set [page_token] to the
* [ListDnsZoneOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The pageToken.
*/
@java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
}
}
/**
*
* Page token. To get the next page of results, set [page_token] to the
* [ListDnsZoneOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for pageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FILTER_FIELD_NUMBER = 4;
private volatile java.lang.Object filter_;
/**
*
* A filter expression that filters DNS zones listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on the [DnsZone.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-dns-zone`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
@java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filter_ = s;
return s;
}
}
/**
*
* A filter expression that filters DNS zones listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on the [DnsZone.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-dns-zone`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dnsZoneId_);
}
if (pageSize_ != 0L) {
output.writeInt64(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dnsZoneId_);
}
if (pageSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_);
}
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest) obj;
if (!getDnsZoneId()
.equals(other.getDnsZoneId())) return false;
if (getPageSize()
!= other.getPageSize()) return false;
if (!getPageToken()
.equals(other.getPageToken())) return false;
if (!getFilter()
.equals(other.getFilter())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DNS_ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDnsZoneId().hashCode();
hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPageSize());
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.ListDnsZoneOperationsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.ListDnsZoneOperationsRequest)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
dnsZoneId_ = "";
pageSize_ = 0L;
pageToken_ = "";
filter_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest(this);
result.dnsZoneId_ = dnsZoneId_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
result.filter_ = filter_;
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest.getDefaultInstance()) return this;
if (!other.getDnsZoneId().isEmpty()) {
dnsZoneId_ = other.dnsZoneId_;
onChanged();
}
if (other.getPageSize() != 0L) {
setPageSize(other.getPageSize());
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
onChanged();
}
if (!other.getFilter().isEmpty()) {
filter_ = other.filter_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object dnsZoneId_ = "";
/**
*
* ID of the DNS zone to list operations for.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The dnsZoneId.
*/
public java.lang.String getDnsZoneId() {
java.lang.Object ref = dnsZoneId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dnsZoneId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the DNS zone to list operations for.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return The bytes for dnsZoneId.
*/
public com.google.protobuf.ByteString
getDnsZoneIdBytes() {
java.lang.Object ref = dnsZoneId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dnsZoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the DNS zone to list operations for.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @param value The dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dnsZoneId_ = value;
onChanged();
return this;
}
/**
*
* ID of the DNS zone to list operations for.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @return This builder for chaining.
*/
public Builder clearDnsZoneId() {
dnsZoneId_ = getDefaultInstance().getDnsZoneId();
onChanged();
return this;
}
/**
*
* ID of the DNS zone to list operations for.
* To get a DNS zone ID, make a [DnsZoneService.List] request.
*
*
* string dns_zone_id = 1 [(.yandex.cloud.length) = "20"];
* @param value The bytes for dnsZoneId to set.
* @return This builder for chaining.
*/
public Builder setDnsZoneIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dnsZoneId_ = value;
onChanged();
return this;
}
private long pageSize_ ;
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size], the service returns a [ListDnsZoneOperationsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size], the service returns a [ListDnsZoneOperationsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @param value The pageSize to set.
* @return This builder for chaining.
*/
public Builder setPageSize(long value) {
pageSize_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size], the service returns a [ListDnsZoneOperationsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return This builder for chaining.
*/
public Builder clearPageSize() {
pageSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object pageToken_ = "";
/**
*
* Page token. To get the next page of results, set [page_token] to the
* [ListDnsZoneOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The pageToken.
*/
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Page token. To get the next page of results, set [page_token] to the
* [ListDnsZoneOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for pageToken.
*/
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Page token. To get the next page of results, set [page_token] to the
* [ListDnsZoneOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @param value The pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pageToken_ = value;
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set [page_token] to the
* [ListDnsZoneOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set [page_token] to the
* [ListDnsZoneOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @param value The bytes for pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pageToken_ = value;
onChanged();
return this;
}
private java.lang.Object filter_ = "";
/**
*
* A filter expression that filters DNS zones listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on the [DnsZone.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-dns-zone`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A filter expression that filters DNS zones listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on the [DnsZone.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-dns-zone`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A filter expression that filters DNS zones listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on the [DnsZone.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-dns-zone`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @param value The filter to set.
* @return This builder for chaining.
*/
public Builder setFilter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
return this;
}
/**
*
* A filter expression that filters DNS zones listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on the [DnsZone.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-dns-zone`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return This builder for chaining.
*/
public Builder clearFilter() {
filter_ = getDefaultInstance().getFilter();
onChanged();
return this;
}
/**
*
* A filter expression that filters DNS zones listed in the response.
* The expression must specify:
* 1. The field name. Currently you can use filtering only on the [DnsZone.name] field.
* 2. An `=` operator.
* 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
* Example of a filter: `name=my-dns-zone`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @param value The bytes for filter to set.
* @return This builder for chaining.
*/
public Builder setFilterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
filter_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.dns.v1.ListDnsZoneOperationsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.ListDnsZoneOperationsRequest)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListDnsZoneOperationsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListDnsZoneOperationsRequest(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListDnsZoneOperationsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.ListDnsZoneOperationsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
java.util.List
getOperationsList();
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index);
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
int getOperationsCount();
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
java.util.List extends yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>
getOperationsOrBuilderList();
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder(
int index);
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZoneOperationsRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZoneOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
java.lang.String getNextPageToken();
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZoneOperationsRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZoneOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
com.google.protobuf.ByteString
getNextPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.ListDnsZoneOperationsResponse}
*/
public static final class ListDnsZoneOperationsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.ListDnsZoneOperationsResponse)
ListDnsZoneOperationsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListDnsZoneOperationsResponse.newBuilder() to construct.
private ListDnsZoneOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListDnsZoneOperationsResponse() {
operations_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListDnsZoneOperationsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListDnsZoneOperationsResponse(
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)) {
operations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
operations_.add(
input.readMessage(yandex.cloud.api.operation.OperationOuterClass.Operation.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nextPageToken_ = 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)) {
operations_ = java.util.Collections.unmodifiableList(operations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse.Builder.class);
}
public static final int OPERATIONS_FIELD_NUMBER = 1;
private java.util.List operations_;
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public java.util.List getOperationsList() {
return operations_;
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>
getOperationsOrBuilderList() {
return operations_;
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public int getOperationsCount() {
return operations_.size();
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index) {
return operations_.get(index);
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder(
int index) {
return operations_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextPageToken_;
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZoneOperationsRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZoneOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
@java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZoneOperationsRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZoneOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < operations_.size(); i++) {
output.writeMessage(1, operations_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < operations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, operations_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse other = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse) obj;
if (!getOperationsList()
.equals(other.getOperationsList())) return false;
if (!getNextPageToken()
.equals(other.getNextPageToken())) 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 (getOperationsCount() > 0) {
hash = (37 * hash) + OPERATIONS_FIELD_NUMBER;
hash = (53 * hash) + getOperationsList().hashCode();
}
hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse 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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse 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(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse 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;
}
/**
* Protobuf type {@code yandex.cloud.dns.v1.ListDnsZoneOperationsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.ListDnsZoneOperationsResponse)
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse.class, yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse.Builder.class);
}
// Construct using yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOperationsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationsBuilder_ == null) {
operations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
operationsBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse getDefaultInstanceForType() {
return yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse build() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse buildPartial() {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse result = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse(this);
int from_bitField0_ = bitField0_;
if (operationsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
operations_ = java.util.Collections.unmodifiableList(operations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.operations_ = operations_;
} else {
result.operations_ = operationsBuilder_.build();
}
result.nextPageToken_ = nextPageToken_;
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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse) {
return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse other) {
if (other == yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse.getDefaultInstance()) return this;
if (operationsBuilder_ == null) {
if (!other.operations_.isEmpty()) {
if (operations_.isEmpty()) {
operations_ = other.operations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOperationsIsMutable();
operations_.addAll(other.operations_);
}
onChanged();
}
} else {
if (!other.operations_.isEmpty()) {
if (operationsBuilder_.isEmpty()) {
operationsBuilder_.dispose();
operationsBuilder_ = null;
operations_ = other.operations_;
bitField0_ = (bitField0_ & ~0x00000001);
operationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOperationsFieldBuilder() : null;
} else {
operationsBuilder_.addAllMessages(other.operations_);
}
}
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List operations_ =
java.util.Collections.emptyList();
private void ensureOperationsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
operations_ = new java.util.ArrayList(operations_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder> operationsBuilder_;
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public java.util.List getOperationsList() {
if (operationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(operations_);
} else {
return operationsBuilder_.getMessageList();
}
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public int getOperationsCount() {
if (operationsBuilder_ == null) {
return operations_.size();
} else {
return operationsBuilder_.getCount();
}
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index) {
if (operationsBuilder_ == null) {
return operations_.get(index);
} else {
return operationsBuilder_.getMessage(index);
}
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder setOperations(
int index, yandex.cloud.api.operation.OperationOuterClass.Operation value) {
if (operationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.set(index, value);
onChanged();
} else {
operationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder setOperations(
int index, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.set(index, builderForValue.build());
onChanged();
} else {
operationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addOperations(yandex.cloud.api.operation.OperationOuterClass.Operation value) {
if (operationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.add(value);
onChanged();
} else {
operationsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addOperations(
int index, yandex.cloud.api.operation.OperationOuterClass.Operation value) {
if (operationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.add(index, value);
onChanged();
} else {
operationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addOperations(
yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.add(builderForValue.build());
onChanged();
} else {
operationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addOperations(
int index, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.add(index, builderForValue.build());
onChanged();
} else {
operationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addAllOperations(
java.lang.Iterable extends yandex.cloud.api.operation.OperationOuterClass.Operation> values) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, operations_);
onChanged();
} else {
operationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder clearOperations() {
if (operationsBuilder_ == null) {
operations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
operationsBuilder_.clear();
}
return this;
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder removeOperations(int index) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.remove(index);
onChanged();
} else {
operationsBuilder_.remove(index);
}
return this;
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder getOperationsBuilder(
int index) {
return getOperationsFieldBuilder().getBuilder(index);
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder(
int index) {
if (operationsBuilder_ == null) {
return operations_.get(index); } else {
return operationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public java.util.List extends yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>
getOperationsOrBuilderList() {
if (operationsBuilder_ != null) {
return operationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(operations_);
}
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder addOperationsBuilder() {
return getOperationsFieldBuilder().addBuilder(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance());
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder addOperationsBuilder(
int index) {
return getOperationsFieldBuilder().addBuilder(
index, yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance());
}
/**
*
* List of operations for the specified DNS zone.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public java.util.List
getOperationsBuilderList() {
return getOperationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>
getOperationsFieldBuilder() {
if (operationsBuilder_ == null) {
operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>(
operations_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
operations_ = null;
}
return operationsBuilder_;
}
private java.lang.Object nextPageToken_ = "";
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZoneOperationsRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZoneOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZoneOperationsRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZoneOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZoneOperationsRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZoneOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nextPageToken_ = value;
onChanged();
return this;
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZoneOperationsRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZoneOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
nextPageToken_ = getDefaultInstance().getNextPageToken();
onChanged();
return this;
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDnsZoneOperationsRequest.page_size], use `next_page_token` as the value
* for the [ListDnsZoneOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The bytes for nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nextPageToken_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.dns.v1.ListDnsZoneOperationsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.ListDnsZoneOperationsResponse)
private static final yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse();
}
public static yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListDnsZoneOperationsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListDnsZoneOperationsResponse(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 yandex.cloud.api.dns.v1.DnsZoneServiceOuterClass.ListDnsZoneOperationsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_GetDnsZoneRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_GetDnsZoneRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_ListDnsZonesRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_ListDnsZonesRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_ListDnsZonesResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_ListDnsZonesResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_CreateDnsZoneRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_CreateDnsZoneRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_CreateDnsZoneRequest_LabelsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_CreateDnsZoneRequest_LabelsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_CreateDnsZoneMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_CreateDnsZoneMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_UpdateDnsZoneRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_UpdateDnsZoneRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_UpdateDnsZoneRequest_LabelsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_UpdateDnsZoneRequest_LabelsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_UpdateDnsZoneMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_UpdateDnsZoneMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_DeleteDnsZoneRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_DeleteDnsZoneRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_DeleteDnsZoneMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_DeleteDnsZoneMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_GetDnsZoneRecordSetRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_GetDnsZoneRecordSetRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_UpdateRecordSetsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_UpdateRecordSetsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_UpdateRecordSetsMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_UpdateRecordSetsMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_UpsertRecordSetsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_UpsertRecordSetsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_UpsertRecordSetsMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_UpsertRecordSetsMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_RecordSetDiff_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_RecordSetDiff_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n*yandex/cloud/dns/v1/dns_zone_service.p" +
"roto\022\023yandex.cloud.dns.v1\032\034google/api/an" +
"notations.proto\032 google/protobuf/field_m" +
"ask.proto\032 yandex/cloud/access/access.pr" +
"oto\032 yandex/cloud/api/operation.proto\032\"y" +
"andex/cloud/dns/v1/dns_zone.proto\032&yande" +
"x/cloud/operation/operation.proto\032\035yande" +
"x/cloud/validation.proto\"\206\001\n#UpdateDnsZo" +
"nePrivateNetworksRequest\022\023\n\013dns_zone_id\030" +
"\001 \001(\t\022$\n\034private_network_id_additions\030\002 " +
"\003(\t\022$\n\034private_network_id_deletions\030\003 \003(" +
"\t\";\n$UpdateDnsZonePrivateNetworksMetadat" +
"a\022\023\n\013dns_zone_id\030\001 \001(\t\".\n\021GetDnsZoneRequ" +
"est\022\031\n\013dns_zone_id\030\001 \001(\tB\004\350\3071\001\"\211\001\n\023ListD" +
"nsZonesRequest\022\027\n\tfolder_id\030\001 \001(\tB\004\350\3071\001\022" +
"\035\n\tpage_size\030\002 \001(\003B\n\372\3071\006<=1000\022\036\n\npage_t" +
"oken\030\003 \001(\tB\n\212\3101\006<=1000\022\032\n\006filter\030\004 \001(\tB\n" +
"\212\3101\006<=1000\"`\n\024ListDnsZonesResponse\022/\n\tdn" +
"s_zones\030\001 \003(\0132\034.yandex.cloud.dns.v1.DnsZ" +
"one\022\027\n\017next_page_token\030\002 \001(\t\"\213\004\n\024CreateD" +
"nsZoneRequest\022\037\n\tfolder_id\030\001 \001(\tB\014\212\3101\004<=" +
"50\350\3071\001\0222\n\004name\030\002 \001(\tB$\362\3071 |[a-z]([-a-z0-" +
"9]{0,61}[a-z0-9])?\022\036\n\013description\030\003 \001(\tB" +
"\t\212\3101\005<=256\022\216\001\n\006labels\030\004 \003(\01325.yandex.clo" +
"ud.dns.v1.CreateDnsZoneRequest.LabelsEnt" +
"ryBG\202\3101\004<=64\212\3101\004<=63\362\3071\017[-_./\\@0-9a-z]*\262" +
"\3101\006\032\0041-63\262\3101\026\022\024[a-z][-_./\\@0-9a-z]*\0228\n\004z" +
"one\030\005 \001(\tB*\350\3071\001\212\3101\005<=255\362\3071\031[.]|[a-z0-9]" +
"[-a-z0-9.]*\\.\022B\n\022private_visibility\030\006 \001(" +
"\0132&.yandex.cloud.dns.v1.PrivateVisibilit" +
"y\022@\n\021public_visibility\030\007 \001(\0132%.yandex.cl" +
"oud.dns.v1.PublicVisibility\032-\n\013LabelsEnt" +
"ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\",\n\025Cr" +
"eateDnsZoneMetadata\022\023\n\013dns_zone_id\030\001 \001(\t" +
"\"\376\003\n\024UpdateDnsZoneRequest\022\033\n\013dns_zone_id" +
"\030\001 \001(\tB\006\212\3101\00220\022/\n\013update_mask\030\002 \001(\0132\032.go" +
"ogle.protobuf.FieldMask\0222\n\004name\030\003 \001(\tB$\362" +
"\3071 |[a-z]([-a-z0-9]{0,61}[a-z0-9])?\022\036\n\013d" +
"escription\030\004 \001(\tB\t\212\3101\005<=256\022\216\001\n\006labels\030\005" +
" \003(\01325.yandex.cloud.dns.v1.UpdateDnsZone" +
"Request.LabelsEntryBG\202\3101\004<=64\212\3101\004<=63\362\3071" +
"\017[-_./\\@0-9a-z]*\262\3101\006\032\0041-63\262\3101\026\022\024[a-z][-_" +
"./\\@0-9a-z]*\022B\n\022private_visibility\030\006 \001(\013" +
"2&.yandex.cloud.dns.v1.PrivateVisibility" +
"\022@\n\021public_visibility\030\007 \001(\0132%.yandex.clo" +
"ud.dns.v1.PublicVisibility\032-\n\013LabelsEntr" +
"y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\",\n\025Upd" +
"ateDnsZoneMetadata\022\023\n\013dns_zone_id\030\001 \001(\t\"" +
"3\n\024DeleteDnsZoneRequest\022\033\n\013dns_zone_id\030\001" +
" \001(\tB\006\212\3101\00220\",\n\025DeleteDnsZoneMetadata\022\023\n" +
"\013dns_zone_id\030\001 \001(\t\"r\n\032GetDnsZoneRecordSe" +
"tRequest\022\033\n\013dns_zone_id\030\001 \001(\tB\006\212\3101\00220\022\033\n" +
"\004name\030\002 \001(\tB\r\350\3071\001\212\3101\005<=255\022\032\n\004type\030\003 \001(\t" +
"B\014\350\3071\001\212\3101\004<=10\"\226\001\n\034ListDnsZoneRecordSets" +
"Request\022\033\n\013dns_zone_id\030\001 \001(\tB\006\212\3101\00220\022\035\n\t" +
"page_size\030\002 \001(\003B\n\372\3071\006<=1000\022\036\n\npage_toke" +
"n\030\003 \001(\tB\n\212\3101\006<=1000\022\032\n\006filter\030\004 \001(\tB\n\212\3101" +
"\006<=1000\"m\n\035ListDnsZoneRecordSetsResponse" +
"\0223\n\013record_sets\030\001 \003(\0132\036.yandex.cloud.dns" +
".v1.RecordSet\022\027\n\017next_page_token\030\002 \001(\t\"\264" +
"\001\n\027UpdateRecordSetsRequest\022\033\n\013dns_zone_i" +
"d\030\001 \001(\tB\006\212\3101\00220\022=\n\tdeletions\030\002 \003(\0132\036.yan" +
"dex.cloud.dns.v1.RecordSetB\n\202\3101\006<=1000\022=" +
"\n\tadditions\030\003 \003(\0132\036.yandex.cloud.dns.v1." +
"RecordSetB\n\202\3101\006<=1000\"\032\n\030UpdateRecordSet" +
"sMetadata\"\363\001\n\027UpsertRecordSetsRequest\022\033\n" +
"\013dns_zone_id\030\001 \001(\tB\006\212\3101\00220\022=\n\tdeletions\030" +
"\002 \003(\0132\036.yandex.cloud.dns.v1.RecordSetB\n\202" +
"\3101\006<=1000\022@\n\014replacements\030\003 \003(\0132\036.yandex" +
".cloud.dns.v1.RecordSetB\n\202\3101\006<=1000\022:\n\006m" +
"erges\030\004 \003(\0132\036.yandex.cloud.dns.v1.Record" +
"SetB\n\202\3101\006<=1000\"\032\n\030UpsertRecordSetsMetad" +
"ata\"u\n\rRecordSetDiff\0221\n\tadditions\030\001 \003(\0132" +
"\036.yandex.cloud.dns.v1.RecordSet\0221\n\tdelet" +
"ions\030\002 \003(\0132\036.yandex.cloud.dns.v1.RecordS" +
"et\"\226\001\n\034ListDnsZoneOperationsRequest\022\033\n\013d" +
"ns_zone_id\030\001 \001(\tB\006\212\3101\00220\022\035\n\tpage_size\030\002 " +
"\001(\003B\n\372\3071\0060-1000\022\036\n\npage_token\030\003 \001(\tB\n\212\3101" +
"\006<=1000\022\032\n\006filter\030\004 \001(\tB\n\212\3101\006<=1000\"o\n\035L" +
"istDnsZoneOperationsResponse\0225\n\noperatio" +
"ns\030\001 \003(\0132!.yandex.cloud.operation.Operat" +
"ion\022\027\n\017next_page_token\030\002 \001(\t2\310\023\n\016DnsZone" +
"Service\022p\n\003Get\022&.yandex.cloud.dns.v1.Get" +
"DnsZoneRequest\032\034.yandex.cloud.dns.v1.Dns" +
"Zone\"#\202\323\344\223\002\035\022\033/dns/v1/zones/{dns_zone_id" +
"}\022r\n\004List\022(.yandex.cloud.dns.v1.ListDnsZ" +
"onesRequest\032).yandex.cloud.dns.v1.ListDn" +
"sZonesResponse\"\025\202\323\344\223\002\017\022\r/dns/v1/zones\022\224\001" +
"\n\006Create\022).yandex.cloud.dns.v1.CreateDns" +
"ZoneRequest\032!.yandex.cloud.operation.Ope" +
"ration\"<\202\323\344\223\002\022\"\r/dns/v1/zones:\001*\262\322* \n\025Cr" +
"eateDnsZoneMetadata\022\007DnsZone\022\242\001\n\006Update\022" +
").yandex.cloud.dns.v1.UpdateDnsZoneReque" +
"st\032!.yandex.cloud.operation.Operation\"J\202" +
"\323\344\223\002 2\033/dns/v1/zones/{dns_zone_id}:\001*\262\322*" +
" \n\025UpdateDnsZoneMetadata\022\007DnsZone\022\255\001\n\006De" +
"lete\022).yandex.cloud.dns.v1.DeleteDnsZone" +
"Request\032!.yandex.cloud.operation.Operati" +
"on\"U\202\323\344\223\002\035*\033/dns/v1/zones/{dns_zone_id}\262" +
"\322*.\n\025DeleteDnsZoneMetadata\022\025google.proto" +
"buf.Empty\022\221\001\n\014GetRecordSet\022/.yandex.clou" +
"d.dns.v1.GetDnsZoneRecordSetRequest\032\036.ya" +
"ndex.cloud.dns.v1.RecordSet\"0\202\323\344\223\002*\022(/dn" +
"s/v1/zones/{dns_zone_id}:getRecordSet\022\253\001" +
"\n\016ListRecordSets\0221.yandex.cloud.dns.v1.L" +
"istDnsZoneRecordSetsRequest\0322.yandex.clo" +
"ud.dns.v1.ListDnsZoneRecordSetsResponse\"" +
"2\202\323\344\223\002,\022*/dns/v1/zones/{dns_zone_id}:lis" +
"tRecordSets\022\311\001\n\020UpdateRecordSets\022,.yande" +
"x.cloud.dns.v1.UpdateRecordSetsRequest\032!" +
".yandex.cloud.operation.Operation\"d\202\323\344\223\002" +
"1\",/dns/v1/zones/{dns_zone_id}:updateRec" +
"ordSets:\001*\262\322*)\n\030UpdateRecordSetsMetadata" +
"\022\rRecordSetDiff\022\311\001\n\020UpsertRecordSets\022,.y" +
"andex.cloud.dns.v1.UpsertRecordSetsReque" +
"st\032!.yandex.cloud.operation.Operation\"d\202" +
"\323\344\223\0021\",/dns/v1/zones/{dns_zone_id}:upser" +
"tRecordSets:\001*\262\322*)\n\030UpsertRecordSetsMeta" +
"data\022\rRecordSetDiff\022\247\001\n\016ListOperations\0221" +
".yandex.cloud.dns.v1.ListDnsZoneOperatio" +
"nsRequest\0322.yandex.cloud.dns.v1.ListDnsZ" +
"oneOperationsResponse\".\202\323\344\223\002(\022&/dns/v1/z" +
"ones/{dns_zone_id}/operations\022\255\001\n\022ListAc" +
"cessBindings\022..yandex.cloud.access.ListA" +
"ccessBindingsRequest\032/.yandex.cloud.acce" +
"ss.ListAccessBindingsResponse\"6\202\323\344\223\0020\022./" +
"dns/v1/zones/{resource_id}:listAccessBin" +
"dings\022\334\001\n\021SetAccessBindings\022-.yandex.clo" +
"ud.access.SetAccessBindingsRequest\032!.yan" +
"dex.cloud.operation.Operation\"u\202\323\344\223\0022\"-/" +
"dns/v1/zones/{resource_id}:setAccessBind" +
"ings:\001*\262\322*9\n access.SetAccessBindingsMet" +
"adata\022\025google.protobuf.Empty\022\350\001\n\024UpdateA" +
"ccessBindings\0220.yandex.cloud.access.Upda" +
"teAccessBindingsRequest\032!.yandex.cloud.o" +
"peration.Operation\"{\202\323\344\223\0025\"0/dns/v1/zone" +
"s/{resource_id}:updateAccessBindings:\001*\262" +
"\322*<\n#access.UpdateAccessBindingsMetadata" +
"\022\025google.protobuf.Empty\022\345\001\n\025UpdatePrivat" +
"eNetworks\0228.yandex.cloud.dns.v1.UpdateDn" +
"sZonePrivateNetworksRequest\032!.yandex.clo" +
"ud.operation.Operation\"o\202\323\344\223\002621/dns/v1/" +
"zones/{dns_zone_id}:updatePrivateNetwork" +
"s:\001*\262\322*/\n$UpdateDnsZonePrivateNetworksMe" +
"tadata\022\007DnsZoneBV\n\027yandex.cloud.api.dns." +
"v1Z;github.com/yandex-cloud/go-genproto/" +
"yandex/cloud/dns/v1;dnsb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
com.google.protobuf.FieldMaskProto.getDescriptor(),
yandex.cloud.api.access.Access.getDescriptor(),
yandex.cloud.api.OperationOuterClass.getDescriptor(),
yandex.cloud.api.dns.v1.DnsZoneOuterClass.getDescriptor(),
yandex.cloud.api.operation.OperationOuterClass.getDescriptor(),
yandex.cloud.api.Validation.getDescriptor(),
});
internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksRequest_descriptor,
new java.lang.String[] { "DnsZoneId", "PrivateNetworkIdAdditions", "PrivateNetworkIdDeletions", });
internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksMetadata_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_UpdateDnsZonePrivateNetworksMetadata_descriptor,
new java.lang.String[] { "DnsZoneId", });
internal_static_yandex_cloud_dns_v1_GetDnsZoneRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_dns_v1_GetDnsZoneRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_GetDnsZoneRequest_descriptor,
new java.lang.String[] { "DnsZoneId", });
internal_static_yandex_cloud_dns_v1_ListDnsZonesRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yandex_cloud_dns_v1_ListDnsZonesRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_ListDnsZonesRequest_descriptor,
new java.lang.String[] { "FolderId", "PageSize", "PageToken", "Filter", });
internal_static_yandex_cloud_dns_v1_ListDnsZonesResponse_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_yandex_cloud_dns_v1_ListDnsZonesResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_ListDnsZonesResponse_descriptor,
new java.lang.String[] { "DnsZones", "NextPageToken", });
internal_static_yandex_cloud_dns_v1_CreateDnsZoneRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_yandex_cloud_dns_v1_CreateDnsZoneRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_CreateDnsZoneRequest_descriptor,
new java.lang.String[] { "FolderId", "Name", "Description", "Labels", "Zone", "PrivateVisibility", "PublicVisibility", });
internal_static_yandex_cloud_dns_v1_CreateDnsZoneRequest_LabelsEntry_descriptor =
internal_static_yandex_cloud_dns_v1_CreateDnsZoneRequest_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_dns_v1_CreateDnsZoneRequest_LabelsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_CreateDnsZoneRequest_LabelsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_dns_v1_CreateDnsZoneMetadata_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_yandex_cloud_dns_v1_CreateDnsZoneMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_CreateDnsZoneMetadata_descriptor,
new java.lang.String[] { "DnsZoneId", });
internal_static_yandex_cloud_dns_v1_UpdateDnsZoneRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_yandex_cloud_dns_v1_UpdateDnsZoneRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_UpdateDnsZoneRequest_descriptor,
new java.lang.String[] { "DnsZoneId", "UpdateMask", "Name", "Description", "Labels", "PrivateVisibility", "PublicVisibility", });
internal_static_yandex_cloud_dns_v1_UpdateDnsZoneRequest_LabelsEntry_descriptor =
internal_static_yandex_cloud_dns_v1_UpdateDnsZoneRequest_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_dns_v1_UpdateDnsZoneRequest_LabelsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_UpdateDnsZoneRequest_LabelsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_dns_v1_UpdateDnsZoneMetadata_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_yandex_cloud_dns_v1_UpdateDnsZoneMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_UpdateDnsZoneMetadata_descriptor,
new java.lang.String[] { "DnsZoneId", });
internal_static_yandex_cloud_dns_v1_DeleteDnsZoneRequest_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_yandex_cloud_dns_v1_DeleteDnsZoneRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_DeleteDnsZoneRequest_descriptor,
new java.lang.String[] { "DnsZoneId", });
internal_static_yandex_cloud_dns_v1_DeleteDnsZoneMetadata_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_yandex_cloud_dns_v1_DeleteDnsZoneMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_DeleteDnsZoneMetadata_descriptor,
new java.lang.String[] { "DnsZoneId", });
internal_static_yandex_cloud_dns_v1_GetDnsZoneRecordSetRequest_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_yandex_cloud_dns_v1_GetDnsZoneRecordSetRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_GetDnsZoneRecordSetRequest_descriptor,
new java.lang.String[] { "DnsZoneId", "Name", "Type", });
internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsRequest_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsRequest_descriptor,
new java.lang.String[] { "DnsZoneId", "PageSize", "PageToken", "Filter", });
internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsResponse_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_ListDnsZoneRecordSetsResponse_descriptor,
new java.lang.String[] { "RecordSets", "NextPageToken", });
internal_static_yandex_cloud_dns_v1_UpdateRecordSetsRequest_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_yandex_cloud_dns_v1_UpdateRecordSetsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_UpdateRecordSetsRequest_descriptor,
new java.lang.String[] { "DnsZoneId", "Deletions", "Additions", });
internal_static_yandex_cloud_dns_v1_UpdateRecordSetsMetadata_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_yandex_cloud_dns_v1_UpdateRecordSetsMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_UpdateRecordSetsMetadata_descriptor,
new java.lang.String[] { });
internal_static_yandex_cloud_dns_v1_UpsertRecordSetsRequest_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_yandex_cloud_dns_v1_UpsertRecordSetsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_UpsertRecordSetsRequest_descriptor,
new java.lang.String[] { "DnsZoneId", "Deletions", "Replacements", "Merges", });
internal_static_yandex_cloud_dns_v1_UpsertRecordSetsMetadata_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_yandex_cloud_dns_v1_UpsertRecordSetsMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_UpsertRecordSetsMetadata_descriptor,
new java.lang.String[] { });
internal_static_yandex_cloud_dns_v1_RecordSetDiff_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_yandex_cloud_dns_v1_RecordSetDiff_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_RecordSetDiff_descriptor,
new java.lang.String[] { "Additions", "Deletions", });
internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsRequest_descriptor =
getDescriptor().getMessageTypes().get(19);
internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsRequest_descriptor,
new java.lang.String[] { "DnsZoneId", "PageSize", "PageToken", "Filter", });
internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsResponse_descriptor =
getDescriptor().getMessageTypes().get(20);
internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_dns_v1_ListDnsZoneOperationsResponse_descriptor,
new java.lang.String[] { "Operations", "NextPageToken", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.AnnotationsProto.http);
registry.add(yandex.cloud.api.OperationOuterClass.operation);
registry.add(yandex.cloud.api.Validation.length);
registry.add(yandex.cloud.api.Validation.mapKey);
registry.add(yandex.cloud.api.Validation.pattern);
registry.add(yandex.cloud.api.Validation.required);
registry.add(yandex.cloud.api.Validation.size);
registry.add(yandex.cloud.api.Validation.value);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
com.google.protobuf.FieldMaskProto.getDescriptor();
yandex.cloud.api.access.Access.getDescriptor();
yandex.cloud.api.OperationOuterClass.getDescriptor();
yandex.cloud.api.dns.v1.DnsZoneOuterClass.getDescriptor();
yandex.cloud.api.operation.OperationOuterClass.getDescriptor();
yandex.cloud.api.Validation.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy