All Downloads are FREE. Search and download functionalities are using the official Maven repository.

yandex.cloud.api.dns.v1.DnsZoneOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/dns/v1/dns_zone.proto

package yandex.cloud.api.dns.v1;

public final class DnsZoneOuterClass {
  private DnsZoneOuterClass() {}
  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 DnsZoneOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.DnsZone)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * ID of the DNS zone. Generated at creation time.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the DNS zone. Generated at creation time.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of the folder that the DNS zone belongs to.
     * 
* * string folder_id = 2; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder that the DNS zone belongs to.
     * 
* * string folder_id = 2; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Name of the DNS zone. 
     * The name is unique within the folder.
     * 
* * string name = 4; * @return The name. */ java.lang.String getName(); /** *
     * Name of the DNS zone. 
     * The name is unique within the folder.
     * 
* * string name = 4; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the DNS zone.
     * 
* * string description = 5; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the DNS zone.
     * 
* * string description = 5; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * DNS zone labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ int getLabelsCount(); /** *
     * DNS zone labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ 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 = 6; */ java.util.Map getLabelsMap(); /** *
     * DNS zone labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * DNS zone labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
     * DNS zone suffix.
     * 
* * string zone = 7; * @return The zone. */ java.lang.String getZone(); /** *
     * DNS zone suffix.
     * 
* * string zone = 7; * @return The bytes for zone. */ com.google.protobuf.ByteString getZoneBytes(); /** *
     * Privately visible zone settings.
     * Specifies whether records within the zone are visible from a VPC networks only.
     * 
* * .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 8; * @return Whether the privateVisibility field is set. */ boolean hasPrivateVisibility(); /** *
     * Privately visible zone settings.
     * Specifies whether records within the zone are visible from a VPC networks only.
     * 
* * .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 8; * @return The privateVisibility. */ yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility getPrivateVisibility(); /** *
     * Privately visible zone settings.
     * Specifies whether records within the zone are visible from a VPC networks only.
     * 
* * .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 8; */ yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibilityOrBuilder getPrivateVisibilityOrBuilder(); /** *
     * Publicly visible zone settings. 
     * Indicates whether records within the zone are publicly visible.
     * 
* * .yandex.cloud.dns.v1.PublicVisibility public_visibility = 9; * @return Whether the publicVisibility field is set. */ boolean hasPublicVisibility(); /** *
     * Publicly visible zone settings. 
     * Indicates whether records within the zone are publicly visible.
     * 
* * .yandex.cloud.dns.v1.PublicVisibility public_visibility = 9; * @return The publicVisibility. */ yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility getPublicVisibility(); /** *
     * Publicly visible zone settings. 
     * Indicates whether records within the zone are publicly visible.
     * 
* * .yandex.cloud.dns.v1.PublicVisibility public_visibility = 9; */ yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibilityOrBuilder getPublicVisibilityOrBuilder(); } /** *
   * A DNS zone. For details about the concept, see [DNS zones](/docs/dns/concepts/dns-zone).
   * 
* * Protobuf type {@code yandex.cloud.dns.v1.DnsZone} */ public static final class DnsZone extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.DnsZone) DnsZoneOrBuilder { private static final long serialVersionUID = 0L; // Use DnsZone.newBuilder() to construct. private DnsZone(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DnsZone() { id_ = ""; folderId_ = ""; name_ = ""; description_ = ""; zone_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DnsZone(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DnsZone( 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(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); folderId_ = s; break; } case 26: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 50: { 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 58: { java.lang.String s = input.readStringRequireUtf8(); zone_ = s; break; } case 66: { 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 74: { 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.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_DnsZone_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: 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.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_DnsZone_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone.class, yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the DNS zone. Generated at creation time.
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
     * ID of the DNS zone. Generated at creation time.
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOLDER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object folderId_; /** *
     * ID of the folder that the DNS zone belongs to.
     * 
* * string folder_id = 2; * @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 that the DNS zone belongs to.
     * 
* * string folder_id = 2; * @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 CREATED_AT_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createdAt_; /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int NAME_FIELD_NUMBER = 4; private volatile java.lang.Object name_; /** *
     * Name of the DNS zone. 
     * The name is unique within the folder.
     * 
* * string name = 4; * @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 is unique within the folder.
     * 
* * string name = 4; * @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 = 5; private volatile java.lang.Object description_; /** *
     * Description of the DNS zone.
     * 
* * string description = 5; * @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 = 5; * @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 = 6; 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.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_DnsZone_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 = 6; */ @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 = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * DNS zone labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ @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 = 6; */ @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 = 7; private volatile java.lang.Object zone_; /** *
     * DNS zone suffix.
     * 
* * string zone = 7; * @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 = 7; * @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 = 8; private yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility privateVisibility_; /** *
     * Privately visible zone settings.
     * Specifies whether records within the zone are visible from a VPC networks only.
     * 
* * .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 8; * @return Whether the privateVisibility field is set. */ @java.lang.Override public boolean hasPrivateVisibility() { return privateVisibility_ != null; } /** *
     * Privately visible zone settings.
     * Specifies whether records within the zone are visible from a VPC networks only.
     * 
* * .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 8; * @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.
     * Specifies whether records within the zone are visible from a VPC networks only.
     * 
* * .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 8; */ @java.lang.Override public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibilityOrBuilder getPrivateVisibilityOrBuilder() { return getPrivateVisibility(); } public static final int PUBLIC_VISIBILITY_FIELD_NUMBER = 9; private yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility publicVisibility_; /** *
     * Publicly visible zone settings. 
     * Indicates whether records within the zone are publicly visible.
     * 
* * .yandex.cloud.dns.v1.PublicVisibility public_visibility = 9; * @return Whether the publicVisibility field is set. */ @java.lang.Override public boolean hasPublicVisibility() { return publicVisibility_ != null; } /** *
     * Publicly visible zone settings. 
     * Indicates whether records within the zone are publicly visible.
     * 
* * .yandex.cloud.dns.v1.PublicVisibility public_visibility = 9; * @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. 
     * Indicates whether records within the zone are publicly visible.
     * 
* * .yandex.cloud.dns.v1.PublicVisibility public_visibility = 9; */ @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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, folderId_); } if (createdAt_ != null) { output.writeMessage(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, zone_); } if (privateVisibility_ != null) { output.writeMessage(8, getPrivateVisibility()); } if (publicVisibility_ != null) { output.writeMessage(9, 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, folderId_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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(6, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, zone_); } if (privateVisibility_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getPrivateVisibility()); } if (publicVisibility_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, 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.DnsZoneOuterClass.DnsZone)) { return super.equals(obj); } yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone other = (yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone) obj; if (!getId() .equals(other.getId())) return false; if (!getFolderId() .equals(other.getFolderId())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().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.DnsZoneOuterClass.DnsZone parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone 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.DnsZoneOuterClass.DnsZone parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone 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.DnsZoneOuterClass.DnsZone parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone 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.DnsZoneOuterClass.DnsZone parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone 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.DnsZoneOuterClass.DnsZone parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone 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.DnsZoneOuterClass.DnsZone 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.DnsZoneOuterClass.DnsZone 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.DnsZoneOuterClass.DnsZone 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; } /** *
     * A DNS zone. For details about the concept, see [DNS zones](/docs/dns/concepts/dns-zone).
     * 
* * Protobuf type {@code yandex.cloud.dns.v1.DnsZone} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.DnsZone) yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZoneOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.dns.v1.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_DnsZone_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 6: 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.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_DnsZone_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone.class, yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone.Builder.class); } // Construct using yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone.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(); id_ = ""; folderId_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } 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.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_DnsZone_descriptor; } @java.lang.Override public yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone getDefaultInstanceForType() { return yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone build() { yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone buildPartial() { yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone result = new yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.folderId_ = folderId_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } 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.DnsZoneOuterClass.DnsZone) { return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone other) { if (other == yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } 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.DnsZoneOuterClass.DnsZone parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the DNS zone. Generated at creation time.
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the DNS zone. Generated at creation time.
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the DNS zone. Generated at creation time.
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * ID of the DNS zone. Generated at creation time.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the DNS zone. Generated at creation time.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object folderId_ = ""; /** *
       * ID of the folder that the DNS zone belongs to.
       * 
* * string folder_id = 2; * @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 that the DNS zone belongs to.
       * 
* * string folder_id = 2; * @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 that the DNS zone belongs to.
       * 
* * string folder_id = 2; * @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 that the DNS zone belongs to.
       * 
* * string folder_id = 2; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * ID of the folder that the DNS zone belongs to.
       * 
* * string folder_id = 2; * @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 com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private java.lang.Object name_ = ""; /** *
       * Name of the DNS zone. 
       * The name is unique within the folder.
       * 
* * string name = 4; * @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 is unique within the folder.
       * 
* * string name = 4; * @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 is unique within the folder.
       * 
* * string name = 4; * @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 is unique within the folder.
       * 
* * string name = 4; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the DNS zone. 
       * The name is unique within the folder.
       * 
* * string name = 4; * @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 = 5; * @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 = 5; * @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 = 5; * @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 = 5; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the DNS zone.
       * 
* * string description = 5; * @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 = 6; */ @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 = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * DNS zone labels as `key:value` pairs.
       * 
* * map<string, string> labels = 6; */ @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 = 6; */ @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 = 6; */ 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 = 6; */ 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 = 6; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private java.lang.Object zone_ = ""; /** *
       * DNS zone suffix.
       * 
* * string zone = 7; * @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 = 7; * @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 = 7; * @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 = 7; * @return This builder for chaining. */ public Builder clearZone() { zone_ = getDefaultInstance().getZone(); onChanged(); return this; } /** *
       * DNS zone suffix.
       * 
* * string zone = 7; * @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.
       * Specifies whether records within the zone are visible from a VPC networks only.
       * 
* * .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 8; * @return Whether the privateVisibility field is set. */ public boolean hasPrivateVisibility() { return privateVisibilityBuilder_ != null || privateVisibility_ != null; } /** *
       * Privately visible zone settings.
       * Specifies whether records within the zone are visible from a VPC networks only.
       * 
* * .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 8; * @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.
       * Specifies whether records within the zone are visible from a VPC networks only.
       * 
* * .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 8; */ 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.
       * Specifies whether records within the zone are visible from a VPC networks only.
       * 
* * .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 8; */ 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.
       * Specifies whether records within the zone are visible from a VPC networks only.
       * 
* * .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 8; */ 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.
       * Specifies whether records within the zone are visible from a VPC networks only.
       * 
* * .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 8; */ public Builder clearPrivateVisibility() { if (privateVisibilityBuilder_ == null) { privateVisibility_ = null; onChanged(); } else { privateVisibility_ = null; privateVisibilityBuilder_ = null; } return this; } /** *
       * Privately visible zone settings.
       * Specifies whether records within the zone are visible from a VPC networks only.
       * 
* * .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 8; */ public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.Builder getPrivateVisibilityBuilder() { onChanged(); return getPrivateVisibilityFieldBuilder().getBuilder(); } /** *
       * Privately visible zone settings.
       * Specifies whether records within the zone are visible from a VPC networks only.
       * 
* * .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 8; */ 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.
       * Specifies whether records within the zone are visible from a VPC networks only.
       * 
* * .yandex.cloud.dns.v1.PrivateVisibility private_visibility = 8; */ 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. 
       * Indicates whether records within the zone are publicly visible.
       * 
* * .yandex.cloud.dns.v1.PublicVisibility public_visibility = 9; * @return Whether the publicVisibility field is set. */ public boolean hasPublicVisibility() { return publicVisibilityBuilder_ != null || publicVisibility_ != null; } /** *
       * Publicly visible zone settings. 
       * Indicates whether records within the zone are publicly visible.
       * 
* * .yandex.cloud.dns.v1.PublicVisibility public_visibility = 9; * @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. 
       * Indicates whether records within the zone are publicly visible.
       * 
* * .yandex.cloud.dns.v1.PublicVisibility public_visibility = 9; */ 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. 
       * Indicates whether records within the zone are publicly visible.
       * 
* * .yandex.cloud.dns.v1.PublicVisibility public_visibility = 9; */ 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. 
       * Indicates whether records within the zone are publicly visible.
       * 
* * .yandex.cloud.dns.v1.PublicVisibility public_visibility = 9; */ 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. 
       * Indicates whether records within the zone are publicly visible.
       * 
* * .yandex.cloud.dns.v1.PublicVisibility public_visibility = 9; */ public Builder clearPublicVisibility() { if (publicVisibilityBuilder_ == null) { publicVisibility_ = null; onChanged(); } else { publicVisibility_ = null; publicVisibilityBuilder_ = null; } return this; } /** *
       * Publicly visible zone settings. 
       * Indicates whether records within the zone are publicly visible.
       * 
* * .yandex.cloud.dns.v1.PublicVisibility public_visibility = 9; */ public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.Builder getPublicVisibilityBuilder() { onChanged(); return getPublicVisibilityFieldBuilder().getBuilder(); } /** *
       * Publicly visible zone settings. 
       * Indicates whether records within the zone are publicly visible.
       * 
* * .yandex.cloud.dns.v1.PublicVisibility public_visibility = 9; */ 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. 
       * Indicates whether records within the zone are publicly visible.
       * 
* * .yandex.cloud.dns.v1.PublicVisibility public_visibility = 9; */ 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.DnsZone) } // @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.DnsZone) private static final yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone(); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.DnsZone getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DnsZone parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DnsZone(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.DnsZoneOuterClass.DnsZone getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecordSetOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.RecordSet) com.google.protobuf.MessageOrBuilder { /** *
     * Domain name.
     * 
* * string name = 1 [(.yandex.cloud.length) = "1-254"]; * @return The name. */ java.lang.String getName(); /** *
     * Domain name.
     * 
* * string name = 1 [(.yandex.cloud.length) = "1-254"]; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Record type.
     * 
* * string type = 2 [(.yandex.cloud.length) = "1-20"]; * @return The type. */ java.lang.String getType(); /** *
     * Record type.
     * 
* * string type = 2 [(.yandex.cloud.length) = "1-20"]; * @return The bytes for type. */ com.google.protobuf.ByteString getTypeBytes(); /** *
     * Time to live in seconds.
     * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-2147483647"]; * @return The ttl. */ long getTtl(); /** *
     * Data of the record set.
     * 
* * repeated string data = 4 [(.yandex.cloud.size) = "1-100", (.yandex.cloud.length) = "1-255", (.yandex.cloud.unique) = true]; * @return A list containing the data. */ java.util.List getDataList(); /** *
     * Data of the record set.
     * 
* * repeated string data = 4 [(.yandex.cloud.size) = "1-100", (.yandex.cloud.length) = "1-255", (.yandex.cloud.unique) = true]; * @return The count of data. */ int getDataCount(); /** *
     * Data of the record set.
     * 
* * repeated string data = 4 [(.yandex.cloud.size) = "1-100", (.yandex.cloud.length) = "1-255", (.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The data at the given index. */ java.lang.String getData(int index); /** *
     * Data of the record set.
     * 
* * repeated string data = 4 [(.yandex.cloud.size) = "1-100", (.yandex.cloud.length) = "1-255", (.yandex.cloud.unique) = true]; * @param index The index of the value to return. * @return The bytes of the data at the given index. */ com.google.protobuf.ByteString getDataBytes(int index); } /** *
   * A record set. For details about the concept, see [Resource record](/docs/dns/concepts/resource-record).
   * 
* * Protobuf type {@code yandex.cloud.dns.v1.RecordSet} */ public static final class RecordSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.RecordSet) RecordSetOrBuilder { private static final long serialVersionUID = 0L; // Use RecordSet.newBuilder() to construct. private RecordSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecordSet() { name_ = ""; type_ = ""; data_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RecordSet(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecordSet( 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(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); type_ = s; break; } case 24: { ttl_ = input.readInt64(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { data_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } data_.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)) { data_ = data_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.dns.v1.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_RecordSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.dns.v1.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_RecordSet_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.class, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Domain name.
     * 
* * string name = 1 [(.yandex.cloud.length) = "1-254"]; * @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; } } /** *
     * Domain name.
     * 
* * string name = 1 [(.yandex.cloud.length) = "1-254"]; * @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 = 2; private volatile java.lang.Object type_; /** *
     * Record type.
     * 
* * string type = 2 [(.yandex.cloud.length) = "1-20"]; * @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; } } /** *
     * Record type.
     * 
* * string type = 2 [(.yandex.cloud.length) = "1-20"]; * @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; } } public static final int TTL_FIELD_NUMBER = 3; private long ttl_; /** *
     * Time to live in seconds.
     * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-2147483647"]; * @return The ttl. */ @java.lang.Override public long getTtl() { return ttl_; } public static final int DATA_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList data_; /** *
     * Data of the record set.
     * 
* * repeated string data = 4 [(.yandex.cloud.size) = "1-100", (.yandex.cloud.length) = "1-255", (.yandex.cloud.unique) = true]; * @return A list containing the data. */ public com.google.protobuf.ProtocolStringList getDataList() { return data_; } /** *
     * Data of the record set.
     * 
* * repeated string data = 4 [(.yandex.cloud.size) = "1-100", (.yandex.cloud.length) = "1-255", (.yandex.cloud.unique) = true]; * @return The count of data. */ public int getDataCount() { return data_.size(); } /** *
     * Data of the record set.
     * 
* * repeated string data = 4 [(.yandex.cloud.size) = "1-100", (.yandex.cloud.length) = "1-255", (.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The data at the given index. */ public java.lang.String getData(int index) { return data_.get(index); } /** *
     * Data of the record set.
     * 
* * repeated string data = 4 [(.yandex.cloud.size) = "1-100", (.yandex.cloud.length) = "1-255", (.yandex.cloud.unique) = true]; * @param index The index of the value to return. * @return The bytes of the data at the given index. */ public com.google.protobuf.ByteString getDataBytes(int index) { return data_.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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); } if (ttl_ != 0L) { output.writeInt64(3, ttl_); } for (int i = 0; i < data_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, data_.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(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); } if (ttl_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, ttl_); } { int dataSize = 0; for (int i = 0; i < data_.size(); i++) { dataSize += computeStringSizeNoTag(data_.getRaw(i)); } size += dataSize; size += 1 * getDataList().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.DnsZoneOuterClass.RecordSet)) { return super.equals(obj); } yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet other = (yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet) obj; if (!getName() .equals(other.getName())) return false; if (!getType() .equals(other.getType())) return false; if (getTtl() != other.getTtl()) return false; if (!getDataList() .equals(other.getDataList())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTtl()); if (getDataCount() > 0) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getDataList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet 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.DnsZoneOuterClass.RecordSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet 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.DnsZoneOuterClass.RecordSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet 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.DnsZoneOuterClass.RecordSet parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet 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.DnsZoneOuterClass.RecordSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet 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.DnsZoneOuterClass.RecordSet 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.DnsZoneOuterClass.RecordSet 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.DnsZoneOuterClass.RecordSet 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; } /** *
     * A record set. For details about the concept, see [Resource record](/docs/dns/concepts/resource-record).
     * 
* * Protobuf type {@code yandex.cloud.dns.v1.RecordSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.RecordSet) yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.dns.v1.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_RecordSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.dns.v1.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_RecordSet_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.class, yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.Builder.class); } // Construct using yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.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(); name_ = ""; type_ = ""; ttl_ = 0L; data_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.dns.v1.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_RecordSet_descriptor; } @java.lang.Override public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getDefaultInstanceForType() { return yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet build() { yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet buildPartial() { yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet result = new yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.type_ = type_; result.ttl_ = ttl_; if (((bitField0_ & 0x00000001) != 0)) { data_ = data_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.data_ = data_; 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.DnsZoneOuterClass.RecordSet) { return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet other) { if (other == yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getType().isEmpty()) { type_ = other.type_; onChanged(); } if (other.getTtl() != 0L) { setTtl(other.getTtl()); } if (!other.data_.isEmpty()) { if (data_.isEmpty()) { data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDataIsMutable(); data_.addAll(other.data_); } 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.DnsZoneOuterClass.RecordSet parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * Domain name.
       * 
* * string name = 1 [(.yandex.cloud.length) = "1-254"]; * @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; } } /** *
       * Domain name.
       * 
* * string name = 1 [(.yandex.cloud.length) = "1-254"]; * @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; } } /** *
       * Domain name.
       * 
* * string name = 1 [(.yandex.cloud.length) = "1-254"]; * @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; } /** *
       * Domain name.
       * 
* * string name = 1 [(.yandex.cloud.length) = "1-254"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Domain name.
       * 
* * string name = 1 [(.yandex.cloud.length) = "1-254"]; * @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_ = ""; /** *
       * Record type.
       * 
* * string type = 2 [(.yandex.cloud.length) = "1-20"]; * @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; } } /** *
       * Record type.
       * 
* * string type = 2 [(.yandex.cloud.length) = "1-20"]; * @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; } } /** *
       * Record type.
       * 
* * string type = 2 [(.yandex.cloud.length) = "1-20"]; * @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; } /** *
       * Record type.
       * 
* * string type = 2 [(.yandex.cloud.length) = "1-20"]; * @return This builder for chaining. */ public Builder clearType() { type_ = getDefaultInstance().getType(); onChanged(); return this; } /** *
       * Record type.
       * 
* * string type = 2 [(.yandex.cloud.length) = "1-20"]; * @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; } private long ttl_ ; /** *
       * Time to live in seconds.
       * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-2147483647"]; * @return The ttl. */ @java.lang.Override public long getTtl() { return ttl_; } /** *
       * Time to live in seconds.
       * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-2147483647"]; * @param value The ttl to set. * @return This builder for chaining. */ public Builder setTtl(long value) { ttl_ = value; onChanged(); return this; } /** *
       * Time to live in seconds.
       * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-2147483647"]; * @return This builder for chaining. */ public Builder clearTtl() { ttl_ = 0L; onChanged(); return this; } private com.google.protobuf.LazyStringList data_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDataIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { data_ = new com.google.protobuf.LazyStringArrayList(data_); bitField0_ |= 0x00000001; } } /** *
       * Data of the record set.
       * 
* * repeated string data = 4 [(.yandex.cloud.size) = "1-100", (.yandex.cloud.length) = "1-255", (.yandex.cloud.unique) = true]; * @return A list containing the data. */ public com.google.protobuf.ProtocolStringList getDataList() { return data_.getUnmodifiableView(); } /** *
       * Data of the record set.
       * 
* * repeated string data = 4 [(.yandex.cloud.size) = "1-100", (.yandex.cloud.length) = "1-255", (.yandex.cloud.unique) = true]; * @return The count of data. */ public int getDataCount() { return data_.size(); } /** *
       * Data of the record set.
       * 
* * repeated string data = 4 [(.yandex.cloud.size) = "1-100", (.yandex.cloud.length) = "1-255", (.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The data at the given index. */ public java.lang.String getData(int index) { return data_.get(index); } /** *
       * Data of the record set.
       * 
* * repeated string data = 4 [(.yandex.cloud.size) = "1-100", (.yandex.cloud.length) = "1-255", (.yandex.cloud.unique) = true]; * @param index The index of the value to return. * @return The bytes of the data at the given index. */ public com.google.protobuf.ByteString getDataBytes(int index) { return data_.getByteString(index); } /** *
       * Data of the record set.
       * 
* * repeated string data = 4 [(.yandex.cloud.size) = "1-100", (.yandex.cloud.length) = "1-255", (.yandex.cloud.unique) = true]; * @param index The index to set the value at. * @param value The data to set. * @return This builder for chaining. */ public Builder setData( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.set(index, value); onChanged(); return this; } /** *
       * Data of the record set.
       * 
* * repeated string data = 4 [(.yandex.cloud.size) = "1-100", (.yandex.cloud.length) = "1-255", (.yandex.cloud.unique) = true]; * @param value The data to add. * @return This builder for chaining. */ public Builder addData( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(value); onChanged(); return this; } /** *
       * Data of the record set.
       * 
* * repeated string data = 4 [(.yandex.cloud.size) = "1-100", (.yandex.cloud.length) = "1-255", (.yandex.cloud.unique) = true]; * @param values The data to add. * @return This builder for chaining. */ public Builder addAllData( java.lang.Iterable values) { ensureDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, data_); onChanged(); return this; } /** *
       * Data of the record set.
       * 
* * repeated string data = 4 [(.yandex.cloud.size) = "1-100", (.yandex.cloud.length) = "1-255", (.yandex.cloud.unique) = true]; * @return This builder for chaining. */ public Builder clearData() { data_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Data of the record set.
       * 
* * repeated string data = 4 [(.yandex.cloud.size) = "1-100", (.yandex.cloud.length) = "1-255", (.yandex.cloud.unique) = true]; * @param value The bytes of the data to add. * @return This builder for chaining. */ public Builder addDataBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDataIsMutable(); data_.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.RecordSet) } // @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.RecordSet) private static final yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet(); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.RecordSet getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecordSet parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecordSet(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.DnsZoneOuterClass.RecordSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PrivateVisibilityOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.PrivateVisibility) com.google.protobuf.MessageOrBuilder { /** *
     * Network IDs.
     * 
* * repeated string network_ids = 1 [(.yandex.cloud.size) = "0-100", (.yandex.cloud.length) = "20", (.yandex.cloud.unique) = true]; * @return A list containing the networkIds. */ java.util.List getNetworkIdsList(); /** *
     * Network IDs.
     * 
* * repeated string network_ids = 1 [(.yandex.cloud.size) = "0-100", (.yandex.cloud.length) = "20", (.yandex.cloud.unique) = true]; * @return The count of networkIds. */ int getNetworkIdsCount(); /** *
     * Network IDs.
     * 
* * repeated string network_ids = 1 [(.yandex.cloud.size) = "0-100", (.yandex.cloud.length) = "20", (.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The networkIds at the given index. */ java.lang.String getNetworkIds(int index); /** *
     * Network IDs.
     * 
* * repeated string network_ids = 1 [(.yandex.cloud.size) = "0-100", (.yandex.cloud.length) = "20", (.yandex.cloud.unique) = true]; * @param index The index of the value to return. * @return The bytes of the networkIds at the given index. */ com.google.protobuf.ByteString getNetworkIdsBytes(int index); } /** *
   * Configuration for privately visible zones.
   * 
* * Protobuf type {@code yandex.cloud.dns.v1.PrivateVisibility} */ public static final class PrivateVisibility extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.PrivateVisibility) PrivateVisibilityOrBuilder { private static final long serialVersionUID = 0L; // Use PrivateVisibility.newBuilder() to construct. private PrivateVisibility(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrivateVisibility() { networkIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PrivateVisibility(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PrivateVisibility( 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(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { networkIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } networkIds_.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)) { networkIds_ = networkIds_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.dns.v1.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_PrivateVisibility_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.dns.v1.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_PrivateVisibility_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.class, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.Builder.class); } public static final int NETWORK_IDS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList networkIds_; /** *
     * Network IDs.
     * 
* * repeated string network_ids = 1 [(.yandex.cloud.size) = "0-100", (.yandex.cloud.length) = "20", (.yandex.cloud.unique) = true]; * @return A list containing the networkIds. */ public com.google.protobuf.ProtocolStringList getNetworkIdsList() { return networkIds_; } /** *
     * Network IDs.
     * 
* * repeated string network_ids = 1 [(.yandex.cloud.size) = "0-100", (.yandex.cloud.length) = "20", (.yandex.cloud.unique) = true]; * @return The count of networkIds. */ public int getNetworkIdsCount() { return networkIds_.size(); } /** *
     * Network IDs.
     * 
* * repeated string network_ids = 1 [(.yandex.cloud.size) = "0-100", (.yandex.cloud.length) = "20", (.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The networkIds at the given index. */ public java.lang.String getNetworkIds(int index) { return networkIds_.get(index); } /** *
     * Network IDs.
     * 
* * repeated string network_ids = 1 [(.yandex.cloud.size) = "0-100", (.yandex.cloud.length) = "20", (.yandex.cloud.unique) = true]; * @param index The index of the value to return. * @return The bytes of the networkIds at the given index. */ public com.google.protobuf.ByteString getNetworkIdsBytes(int index) { return networkIds_.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 { for (int i = 0; i < networkIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, networkIds_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < networkIds_.size(); i++) { dataSize += computeStringSizeNoTag(networkIds_.getRaw(i)); } size += dataSize; size += 1 * getNetworkIdsList().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.DnsZoneOuterClass.PrivateVisibility)) { return super.equals(obj); } yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility other = (yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility) obj; if (!getNetworkIdsList() .equals(other.getNetworkIdsList())) 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 (getNetworkIdsCount() > 0) { hash = (37 * hash) + NETWORK_IDS_FIELD_NUMBER; hash = (53 * hash) + getNetworkIdsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility 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.DnsZoneOuterClass.PrivateVisibility parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility 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.DnsZoneOuterClass.PrivateVisibility parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility 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.DnsZoneOuterClass.PrivateVisibility parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility 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.DnsZoneOuterClass.PrivateVisibility parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility 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.DnsZoneOuterClass.PrivateVisibility 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.DnsZoneOuterClass.PrivateVisibility 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.DnsZoneOuterClass.PrivateVisibility 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; } /** *
     * Configuration for privately visible zones.
     * 
* * Protobuf type {@code yandex.cloud.dns.v1.PrivateVisibility} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.PrivateVisibility) yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibilityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.dns.v1.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_PrivateVisibility_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.dns.v1.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_PrivateVisibility_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.class, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.Builder.class); } // Construct using yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.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(); networkIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.dns.v1.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_PrivateVisibility_descriptor; } @java.lang.Override public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility getDefaultInstanceForType() { return yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility build() { yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility buildPartial() { yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility result = new yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { networkIds_ = networkIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.networkIds_ = networkIds_; 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.DnsZoneOuterClass.PrivateVisibility) { return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility other) { if (other == yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility.getDefaultInstance()) return this; if (!other.networkIds_.isEmpty()) { if (networkIds_.isEmpty()) { networkIds_ = other.networkIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNetworkIdsIsMutable(); networkIds_.addAll(other.networkIds_); } 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.DnsZoneOuterClass.PrivateVisibility parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList networkIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNetworkIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { networkIds_ = new com.google.protobuf.LazyStringArrayList(networkIds_); bitField0_ |= 0x00000001; } } /** *
       * Network IDs.
       * 
* * repeated string network_ids = 1 [(.yandex.cloud.size) = "0-100", (.yandex.cloud.length) = "20", (.yandex.cloud.unique) = true]; * @return A list containing the networkIds. */ public com.google.protobuf.ProtocolStringList getNetworkIdsList() { return networkIds_.getUnmodifiableView(); } /** *
       * Network IDs.
       * 
* * repeated string network_ids = 1 [(.yandex.cloud.size) = "0-100", (.yandex.cloud.length) = "20", (.yandex.cloud.unique) = true]; * @return The count of networkIds. */ public int getNetworkIdsCount() { return networkIds_.size(); } /** *
       * Network IDs.
       * 
* * repeated string network_ids = 1 [(.yandex.cloud.size) = "0-100", (.yandex.cloud.length) = "20", (.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The networkIds at the given index. */ public java.lang.String getNetworkIds(int index) { return networkIds_.get(index); } /** *
       * Network IDs.
       * 
* * repeated string network_ids = 1 [(.yandex.cloud.size) = "0-100", (.yandex.cloud.length) = "20", (.yandex.cloud.unique) = true]; * @param index The index of the value to return. * @return The bytes of the networkIds at the given index. */ public com.google.protobuf.ByteString getNetworkIdsBytes(int index) { return networkIds_.getByteString(index); } /** *
       * Network IDs.
       * 
* * repeated string network_ids = 1 [(.yandex.cloud.size) = "0-100", (.yandex.cloud.length) = "20", (.yandex.cloud.unique) = true]; * @param index The index to set the value at. * @param value The networkIds to set. * @return This builder for chaining. */ public Builder setNetworkIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNetworkIdsIsMutable(); networkIds_.set(index, value); onChanged(); return this; } /** *
       * Network IDs.
       * 
* * repeated string network_ids = 1 [(.yandex.cloud.size) = "0-100", (.yandex.cloud.length) = "20", (.yandex.cloud.unique) = true]; * @param value The networkIds to add. * @return This builder for chaining. */ public Builder addNetworkIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNetworkIdsIsMutable(); networkIds_.add(value); onChanged(); return this; } /** *
       * Network IDs.
       * 
* * repeated string network_ids = 1 [(.yandex.cloud.size) = "0-100", (.yandex.cloud.length) = "20", (.yandex.cloud.unique) = true]; * @param values The networkIds to add. * @return This builder for chaining. */ public Builder addAllNetworkIds( java.lang.Iterable values) { ensureNetworkIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, networkIds_); onChanged(); return this; } /** *
       * Network IDs.
       * 
* * repeated string network_ids = 1 [(.yandex.cloud.size) = "0-100", (.yandex.cloud.length) = "20", (.yandex.cloud.unique) = true]; * @return This builder for chaining. */ public Builder clearNetworkIds() { networkIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Network IDs.
       * 
* * repeated string network_ids = 1 [(.yandex.cloud.size) = "0-100", (.yandex.cloud.length) = "20", (.yandex.cloud.unique) = true]; * @param value The bytes of the networkIds to add. * @return This builder for chaining. */ public Builder addNetworkIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureNetworkIdsIsMutable(); networkIds_.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.PrivateVisibility) } // @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.PrivateVisibility) private static final yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility(); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.PrivateVisibility getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PrivateVisibility parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PrivateVisibility(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.DnsZoneOuterClass.PrivateVisibility getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PublicVisibilityOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.dns.v1.PublicVisibility) com.google.protobuf.MessageOrBuilder { } /** *
   * Configuration for publicly visible zones.
   * 
* * Protobuf type {@code yandex.cloud.dns.v1.PublicVisibility} */ public static final class PublicVisibility extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.dns.v1.PublicVisibility) PublicVisibilityOrBuilder { private static final long serialVersionUID = 0L; // Use PublicVisibility.newBuilder() to construct. private PublicVisibility(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PublicVisibility() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PublicVisibility(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PublicVisibility( 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.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_PublicVisibility_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.dns.v1.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_PublicVisibility_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.class, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.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.DnsZoneOuterClass.PublicVisibility)) { return super.equals(obj); } yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility other = (yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility) 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.DnsZoneOuterClass.PublicVisibility parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility 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.DnsZoneOuterClass.PublicVisibility parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility 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.DnsZoneOuterClass.PublicVisibility parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility 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.DnsZoneOuterClass.PublicVisibility parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility 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.DnsZoneOuterClass.PublicVisibility parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility 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.DnsZoneOuterClass.PublicVisibility 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.DnsZoneOuterClass.PublicVisibility 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.DnsZoneOuterClass.PublicVisibility 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; } /** *
     * Configuration for publicly visible zones.
     * 
* * Protobuf type {@code yandex.cloud.dns.v1.PublicVisibility} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.dns.v1.PublicVisibility) yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibilityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.dns.v1.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_PublicVisibility_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.dns.v1.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_PublicVisibility_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.class, yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.Builder.class); } // Construct using yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.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.DnsZoneOuterClass.internal_static_yandex_cloud_dns_v1_PublicVisibility_descriptor; } @java.lang.Override public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility getDefaultInstanceForType() { return yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility build() { yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility buildPartial() { yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility result = new yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility(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.DnsZoneOuterClass.PublicVisibility) { return mergeFrom((yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility other) { if (other == yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility.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.DnsZoneOuterClass.PublicVisibility parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility) 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.PublicVisibility) } // @@protoc_insertion_point(class_scope:yandex.cloud.dns.v1.PublicVisibility) private static final yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility(); } public static yandex.cloud.api.dns.v1.DnsZoneOuterClass.PublicVisibility getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PublicVisibility parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PublicVisibility(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.DnsZoneOuterClass.PublicVisibility getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_dns_v1_DnsZone_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_dns_v1_DnsZone_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_dns_v1_DnsZone_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_dns_v1_DnsZone_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_dns_v1_RecordSet_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_dns_v1_RecordSet_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_dns_v1_PrivateVisibility_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_dns_v1_PrivateVisibility_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_dns_v1_PublicVisibility_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_dns_v1_PublicVisibility_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.proto\022\023ya" + "ndex.cloud.dns.v1\032\035yandex/cloud/validati" + "on.proto\032\037google/protobuf/timestamp.prot" + "o\"\370\002\n\007DnsZone\022\n\n\002id\030\001 \001(\t\022\021\n\tfolder_id\030\002" + " \001(\t\022.\n\ncreated_at\030\003 \001(\0132\032.google.protob" + "uf.Timestamp\022\014\n\004name\030\004 \001(\t\022\023\n\013descriptio" + "n\030\005 \001(\t\0228\n\006labels\030\006 \003(\0132(.yandex.cloud.d" + "ns.v1.DnsZone.LabelsEntry\022\014\n\004zone\030\007 \001(\t\022" + "B\n\022private_visibility\030\010 \001(\0132&.yandex.clo" + "ud.dns.v1.PrivateVisibility\022@\n\021public_vi" + "sibility\030\t \001(\0132%.yandex.cloud.dns.v1.Pub" + "licVisibility\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\201\001\n\tRecordSet\022\027\n\004na" + "me\030\001 \001(\tB\t\212\3101\0051-254\022\026\n\004type\030\002 \001(\tB\010\212\3101\0041" + "-20\022\035\n\003ttl\030\003 \001(\003B\020\372\3071\0140-2147483647\022$\n\004da" + "ta\030\004 \003(\tB\026\202\3101\0051-100\212\3101\0051-255\220\3101\001\"=\n\021Priv" + "ateVisibility\022(\n\013network_ids\030\001 \003(\tB\023\202\3101\005" + "0-100\212\3101\00220\220\3101\001\"\022\n\020PublicVisibilityBV\n\027y" + "andex.cloud.api.dns.v1Z;github.com/yande" + "x-cloud/go-genproto/yandex/cloud/dns/v1;" + "dnsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { yandex.cloud.api.Validation.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_yandex_cloud_dns_v1_DnsZone_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_dns_v1_DnsZone_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_dns_v1_DnsZone_descriptor, new java.lang.String[] { "Id", "FolderId", "CreatedAt", "Name", "Description", "Labels", "Zone", "PrivateVisibility", "PublicVisibility", }); internal_static_yandex_cloud_dns_v1_DnsZone_LabelsEntry_descriptor = internal_static_yandex_cloud_dns_v1_DnsZone_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_dns_v1_DnsZone_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_dns_v1_DnsZone_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_dns_v1_RecordSet_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_dns_v1_RecordSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_dns_v1_RecordSet_descriptor, new java.lang.String[] { "Name", "Type", "Ttl", "Data", }); internal_static_yandex_cloud_dns_v1_PrivateVisibility_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_dns_v1_PrivateVisibility_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_dns_v1_PrivateVisibility_descriptor, new java.lang.String[] { "NetworkIds", }); internal_static_yandex_cloud_dns_v1_PublicVisibility_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_dns_v1_PublicVisibility_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_dns_v1_PublicVisibility_descriptor, new java.lang.String[] { }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(yandex.cloud.api.Validation.length); registry.add(yandex.cloud.api.Validation.size); registry.add(yandex.cloud.api.Validation.unique); registry.add(yandex.cloud.api.Validation.value); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); yandex.cloud.api.Validation.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy