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

com.google.appengine.v1.DomainMapping Maven / Gradle / Ivy

There is a newer version: 2.54.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/appengine/v1/domain_mapping.proto

// Protobuf Java Version: 3.25.5
package com.google.appengine.v1;

/**
 *
 *
 * 
 * A domain serving an App Engine application.
 * 
* * Protobuf type {@code google.appengine.v1.DomainMapping} */ public final class DomainMapping extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.appengine.v1.DomainMapping) DomainMappingOrBuilder { private static final long serialVersionUID = 0L; // Use DomainMapping.newBuilder() to construct. private DomainMapping(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DomainMapping() { name_ = ""; id_ = ""; resourceRecords_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DomainMapping(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.v1.DomainMappingProto .internal_static_google_appengine_v1_DomainMapping_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.v1.DomainMappingProto .internal_static_google_appengine_v1_DomainMapping_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.v1.DomainMapping.class, com.google.appengine.v1.DomainMapping.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Full path to the `DomainMapping` resource in the API. Example:
   * `apps/myapp/domainMapping/example.com`.
   *
   * @OutputOnly
   * 
* * string name = 1; * * @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; } } /** * * *
   * Full path to the `DomainMapping` resource in the API. Example:
   * `apps/myapp/domainMapping/example.com`.
   *
   * @OutputOnly
   * 
* * string name = 1; * * @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 ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** * * *
   * Relative name of the domain serving the application. Example:
   * `example.com`.
   * 
* * string id = 2; * * @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; } } /** * * *
   * Relative name of the domain serving the application. Example:
   * `example.com`.
   * 
* * string id = 2; * * @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 SSL_SETTINGS_FIELD_NUMBER = 3; private com.google.appengine.v1.SslSettings sslSettings_; /** * * *
   * SSL configuration for this domain. If unconfigured, this domain will not
   * serve with SSL.
   * 
* * .google.appengine.v1.SslSettings ssl_settings = 3; * * @return Whether the sslSettings field is set. */ @java.lang.Override public boolean hasSslSettings() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * SSL configuration for this domain. If unconfigured, this domain will not
   * serve with SSL.
   * 
* * .google.appengine.v1.SslSettings ssl_settings = 3; * * @return The sslSettings. */ @java.lang.Override public com.google.appengine.v1.SslSettings getSslSettings() { return sslSettings_ == null ? com.google.appengine.v1.SslSettings.getDefaultInstance() : sslSettings_; } /** * * *
   * SSL configuration for this domain. If unconfigured, this domain will not
   * serve with SSL.
   * 
* * .google.appengine.v1.SslSettings ssl_settings = 3; */ @java.lang.Override public com.google.appengine.v1.SslSettingsOrBuilder getSslSettingsOrBuilder() { return sslSettings_ == null ? com.google.appengine.v1.SslSettings.getDefaultInstance() : sslSettings_; } public static final int RESOURCE_RECORDS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List resourceRecords_; /** * * *
   * The resource records required to configure this domain mapping. These
   * records must be added to the domain's DNS configuration in order to
   * serve the application via this domain mapping.
   *
   * @OutputOnly
   * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ @java.lang.Override public java.util.List getResourceRecordsList() { return resourceRecords_; } /** * * *
   * The resource records required to configure this domain mapping. These
   * records must be added to the domain's DNS configuration in order to
   * serve the application via this domain mapping.
   *
   * @OutputOnly
   * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ @java.lang.Override public java.util.List getResourceRecordsOrBuilderList() { return resourceRecords_; } /** * * *
   * The resource records required to configure this domain mapping. These
   * records must be added to the domain's DNS configuration in order to
   * serve the application via this domain mapping.
   *
   * @OutputOnly
   * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ @java.lang.Override public int getResourceRecordsCount() { return resourceRecords_.size(); } /** * * *
   * The resource records required to configure this domain mapping. These
   * records must be added to the domain's DNS configuration in order to
   * serve the application via this domain mapping.
   *
   * @OutputOnly
   * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ @java.lang.Override public com.google.appengine.v1.ResourceRecord getResourceRecords(int index) { return resourceRecords_.get(index); } /** * * *
   * The resource records required to configure this domain mapping. These
   * records must be added to the domain's DNS configuration in order to
   * serve the application via this domain mapping.
   *
   * @OutputOnly
   * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ @java.lang.Override public com.google.appengine.v1.ResourceRecordOrBuilder getResourceRecordsOrBuilder(int index) { return resourceRecords_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getSslSettings()); } for (int i = 0; i < resourceRecords_.size(); i++) { output.writeMessage(4, resourceRecords_.get(i)); } getUnknownFields().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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSslSettings()); } for (int i = 0; i < resourceRecords_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, resourceRecords_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.appengine.v1.DomainMapping)) { return super.equals(obj); } com.google.appengine.v1.DomainMapping other = (com.google.appengine.v1.DomainMapping) obj; if (!getName().equals(other.getName())) return false; if (!getId().equals(other.getId())) return false; if (hasSslSettings() != other.hasSslSettings()) return false; if (hasSslSettings()) { if (!getSslSettings().equals(other.getSslSettings())) return false; } if (!getResourceRecordsList().equals(other.getResourceRecordsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); if (hasSslSettings()) { hash = (37 * hash) + SSL_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSslSettings().hashCode(); } if (getResourceRecordsCount() > 0) { hash = (37 * hash) + RESOURCE_RECORDS_FIELD_NUMBER; hash = (53 * hash) + getResourceRecordsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.v1.DomainMapping parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.DomainMapping parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.appengine.v1.DomainMapping parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.DomainMapping parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.appengine.v1.DomainMapping parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.DomainMapping parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.appengine.v1.DomainMapping parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.appengine.v1.DomainMapping parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.appengine.v1.DomainMapping parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.appengine.v1.DomainMapping parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.appengine.v1.DomainMapping parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.appengine.v1.DomainMapping parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.appengine.v1.DomainMapping 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 domain serving an App Engine application.
   * 
* * Protobuf type {@code google.appengine.v1.DomainMapping} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.appengine.v1.DomainMapping) com.google.appengine.v1.DomainMappingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.v1.DomainMappingProto .internal_static_google_appengine_v1_DomainMapping_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.v1.DomainMappingProto .internal_static_google_appengine_v1_DomainMapping_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.v1.DomainMapping.class, com.google.appengine.v1.DomainMapping.Builder.class); } // Construct using com.google.appengine.v1.DomainMapping.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSslSettingsFieldBuilder(); getResourceRecordsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; id_ = ""; sslSettings_ = null; if (sslSettingsBuilder_ != null) { sslSettingsBuilder_.dispose(); sslSettingsBuilder_ = null; } if (resourceRecordsBuilder_ == null) { resourceRecords_ = java.util.Collections.emptyList(); } else { resourceRecords_ = null; resourceRecordsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.v1.DomainMappingProto .internal_static_google_appengine_v1_DomainMapping_descriptor; } @java.lang.Override public com.google.appengine.v1.DomainMapping getDefaultInstanceForType() { return com.google.appengine.v1.DomainMapping.getDefaultInstance(); } @java.lang.Override public com.google.appengine.v1.DomainMapping build() { com.google.appengine.v1.DomainMapping result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.v1.DomainMapping buildPartial() { com.google.appengine.v1.DomainMapping result = new com.google.appengine.v1.DomainMapping(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.appengine.v1.DomainMapping result) { if (resourceRecordsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { resourceRecords_ = java.util.Collections.unmodifiableList(resourceRecords_); bitField0_ = (bitField0_ & ~0x00000008); } result.resourceRecords_ = resourceRecords_; } else { result.resourceRecords_ = resourceRecordsBuilder_.build(); } } private void buildPartial0(com.google.appengine.v1.DomainMapping result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.id_ = id_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.sslSettings_ = sslSettingsBuilder_ == null ? sslSettings_ : sslSettingsBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.appengine.v1.DomainMapping) { return mergeFrom((com.google.appengine.v1.DomainMapping) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.v1.DomainMapping other) { if (other == com.google.appengine.v1.DomainMapping.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasSslSettings()) { mergeSslSettings(other.getSslSettings()); } if (resourceRecordsBuilder_ == null) { if (!other.resourceRecords_.isEmpty()) { if (resourceRecords_.isEmpty()) { resourceRecords_ = other.resourceRecords_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureResourceRecordsIsMutable(); resourceRecords_.addAll(other.resourceRecords_); } onChanged(); } } else { if (!other.resourceRecords_.isEmpty()) { if (resourceRecordsBuilder_.isEmpty()) { resourceRecordsBuilder_.dispose(); resourceRecordsBuilder_ = null; resourceRecords_ = other.resourceRecords_; bitField0_ = (bitField0_ & ~0x00000008); resourceRecordsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourceRecordsFieldBuilder() : null; } else { resourceRecordsBuilder_.addAllMessages(other.resourceRecords_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getSslSettingsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.google.appengine.v1.ResourceRecord m = input.readMessage( com.google.appengine.v1.ResourceRecord.parser(), extensionRegistry); if (resourceRecordsBuilder_ == null) { ensureResourceRecordsIsMutable(); resourceRecords_.add(m); } else { resourceRecordsBuilder_.addMessage(m); } break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
     * Full path to the `DomainMapping` resource in the API. Example:
     * `apps/myapp/domainMapping/example.com`.
     *
     * @OutputOnly
     * 
* * string name = 1; * * @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; } } /** * * *
     * Full path to the `DomainMapping` resource in the API. Example:
     * `apps/myapp/domainMapping/example.com`.
     *
     * @OutputOnly
     * 
* * string name = 1; * * @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; } } /** * * *
     * Full path to the `DomainMapping` resource in the API. Example:
     * `apps/myapp/domainMapping/example.com`.
     *
     * @OutputOnly
     * 
* * string name = 1; * * @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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Full path to the `DomainMapping` resource in the API. Example:
     * `apps/myapp/domainMapping/example.com`.
     *
     * @OutputOnly
     * 
* * string name = 1; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Full path to the `DomainMapping` resource in the API. Example:
     * `apps/myapp/domainMapping/example.com`.
     *
     * @OutputOnly
     * 
* * string name = 1; * * @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; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object id_ = ""; /** * * *
     * Relative name of the domain serving the application. Example:
     * `example.com`.
     * 
* * string id = 2; * * @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; } } /** * * *
     * Relative name of the domain serving the application. Example:
     * `example.com`.
     * 
* * string id = 2; * * @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; } } /** * * *
     * Relative name of the domain serving the application. Example:
     * `example.com`.
     * 
* * string id = 2; * * @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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Relative name of the domain serving the application. Example:
     * `example.com`.
     * 
* * string id = 2; * * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * Relative name of the domain serving the application. Example:
     * `example.com`.
     * 
* * string id = 2; * * @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; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.appengine.v1.SslSettings sslSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.v1.SslSettings, com.google.appengine.v1.SslSettings.Builder, com.google.appengine.v1.SslSettingsOrBuilder> sslSettingsBuilder_; /** * * *
     * SSL configuration for this domain. If unconfigured, this domain will not
     * serve with SSL.
     * 
* * .google.appengine.v1.SslSettings ssl_settings = 3; * * @return Whether the sslSettings field is set. */ public boolean hasSslSettings() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * SSL configuration for this domain. If unconfigured, this domain will not
     * serve with SSL.
     * 
* * .google.appengine.v1.SslSettings ssl_settings = 3; * * @return The sslSettings. */ public com.google.appengine.v1.SslSettings getSslSettings() { if (sslSettingsBuilder_ == null) { return sslSettings_ == null ? com.google.appengine.v1.SslSettings.getDefaultInstance() : sslSettings_; } else { return sslSettingsBuilder_.getMessage(); } } /** * * *
     * SSL configuration for this domain. If unconfigured, this domain will not
     * serve with SSL.
     * 
* * .google.appengine.v1.SslSettings ssl_settings = 3; */ public Builder setSslSettings(com.google.appengine.v1.SslSettings value) { if (sslSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sslSettings_ = value; } else { sslSettingsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * SSL configuration for this domain. If unconfigured, this domain will not
     * serve with SSL.
     * 
* * .google.appengine.v1.SslSettings ssl_settings = 3; */ public Builder setSslSettings(com.google.appengine.v1.SslSettings.Builder builderForValue) { if (sslSettingsBuilder_ == null) { sslSettings_ = builderForValue.build(); } else { sslSettingsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * SSL configuration for this domain. If unconfigured, this domain will not
     * serve with SSL.
     * 
* * .google.appengine.v1.SslSettings ssl_settings = 3; */ public Builder mergeSslSettings(com.google.appengine.v1.SslSettings value) { if (sslSettingsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && sslSettings_ != null && sslSettings_ != com.google.appengine.v1.SslSettings.getDefaultInstance()) { getSslSettingsBuilder().mergeFrom(value); } else { sslSettings_ = value; } } else { sslSettingsBuilder_.mergeFrom(value); } if (sslSettings_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * SSL configuration for this domain. If unconfigured, this domain will not
     * serve with SSL.
     * 
* * .google.appengine.v1.SslSettings ssl_settings = 3; */ public Builder clearSslSettings() { bitField0_ = (bitField0_ & ~0x00000004); sslSettings_ = null; if (sslSettingsBuilder_ != null) { sslSettingsBuilder_.dispose(); sslSettingsBuilder_ = null; } onChanged(); return this; } /** * * *
     * SSL configuration for this domain. If unconfigured, this domain will not
     * serve with SSL.
     * 
* * .google.appengine.v1.SslSettings ssl_settings = 3; */ public com.google.appengine.v1.SslSettings.Builder getSslSettingsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSslSettingsFieldBuilder().getBuilder(); } /** * * *
     * SSL configuration for this domain. If unconfigured, this domain will not
     * serve with SSL.
     * 
* * .google.appengine.v1.SslSettings ssl_settings = 3; */ public com.google.appengine.v1.SslSettingsOrBuilder getSslSettingsOrBuilder() { if (sslSettingsBuilder_ != null) { return sslSettingsBuilder_.getMessageOrBuilder(); } else { return sslSettings_ == null ? com.google.appengine.v1.SslSettings.getDefaultInstance() : sslSettings_; } } /** * * *
     * SSL configuration for this domain. If unconfigured, this domain will not
     * serve with SSL.
     * 
* * .google.appengine.v1.SslSettings ssl_settings = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.v1.SslSettings, com.google.appengine.v1.SslSettings.Builder, com.google.appengine.v1.SslSettingsOrBuilder> getSslSettingsFieldBuilder() { if (sslSettingsBuilder_ == null) { sslSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.v1.SslSettings, com.google.appengine.v1.SslSettings.Builder, com.google.appengine.v1.SslSettingsOrBuilder>( getSslSettings(), getParentForChildren(), isClean()); sslSettings_ = null; } return sslSettingsBuilder_; } private java.util.List resourceRecords_ = java.util.Collections.emptyList(); private void ensureResourceRecordsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { resourceRecords_ = new java.util.ArrayList(resourceRecords_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.v1.ResourceRecord, com.google.appengine.v1.ResourceRecord.Builder, com.google.appengine.v1.ResourceRecordOrBuilder> resourceRecordsBuilder_; /** * * *
     * The resource records required to configure this domain mapping. These
     * records must be added to the domain's DNS configuration in order to
     * serve the application via this domain mapping.
     *
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ public java.util.List getResourceRecordsList() { if (resourceRecordsBuilder_ == null) { return java.util.Collections.unmodifiableList(resourceRecords_); } else { return resourceRecordsBuilder_.getMessageList(); } } /** * * *
     * The resource records required to configure this domain mapping. These
     * records must be added to the domain's DNS configuration in order to
     * serve the application via this domain mapping.
     *
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ public int getResourceRecordsCount() { if (resourceRecordsBuilder_ == null) { return resourceRecords_.size(); } else { return resourceRecordsBuilder_.getCount(); } } /** * * *
     * The resource records required to configure this domain mapping. These
     * records must be added to the domain's DNS configuration in order to
     * serve the application via this domain mapping.
     *
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ public com.google.appengine.v1.ResourceRecord getResourceRecords(int index) { if (resourceRecordsBuilder_ == null) { return resourceRecords_.get(index); } else { return resourceRecordsBuilder_.getMessage(index); } } /** * * *
     * The resource records required to configure this domain mapping. These
     * records must be added to the domain's DNS configuration in order to
     * serve the application via this domain mapping.
     *
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ public Builder setResourceRecords(int index, com.google.appengine.v1.ResourceRecord value) { if (resourceRecordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourceRecordsIsMutable(); resourceRecords_.set(index, value); onChanged(); } else { resourceRecordsBuilder_.setMessage(index, value); } return this; } /** * * *
     * The resource records required to configure this domain mapping. These
     * records must be added to the domain's DNS configuration in order to
     * serve the application via this domain mapping.
     *
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ public Builder setResourceRecords( int index, com.google.appengine.v1.ResourceRecord.Builder builderForValue) { if (resourceRecordsBuilder_ == null) { ensureResourceRecordsIsMutable(); resourceRecords_.set(index, builderForValue.build()); onChanged(); } else { resourceRecordsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * The resource records required to configure this domain mapping. These
     * records must be added to the domain's DNS configuration in order to
     * serve the application via this domain mapping.
     *
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ public Builder addResourceRecords(com.google.appengine.v1.ResourceRecord value) { if (resourceRecordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourceRecordsIsMutable(); resourceRecords_.add(value); onChanged(); } else { resourceRecordsBuilder_.addMessage(value); } return this; } /** * * *
     * The resource records required to configure this domain mapping. These
     * records must be added to the domain's DNS configuration in order to
     * serve the application via this domain mapping.
     *
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ public Builder addResourceRecords(int index, com.google.appengine.v1.ResourceRecord value) { if (resourceRecordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourceRecordsIsMutable(); resourceRecords_.add(index, value); onChanged(); } else { resourceRecordsBuilder_.addMessage(index, value); } return this; } /** * * *
     * The resource records required to configure this domain mapping. These
     * records must be added to the domain's DNS configuration in order to
     * serve the application via this domain mapping.
     *
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ public Builder addResourceRecords( com.google.appengine.v1.ResourceRecord.Builder builderForValue) { if (resourceRecordsBuilder_ == null) { ensureResourceRecordsIsMutable(); resourceRecords_.add(builderForValue.build()); onChanged(); } else { resourceRecordsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * The resource records required to configure this domain mapping. These
     * records must be added to the domain's DNS configuration in order to
     * serve the application via this domain mapping.
     *
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ public Builder addResourceRecords( int index, com.google.appengine.v1.ResourceRecord.Builder builderForValue) { if (resourceRecordsBuilder_ == null) { ensureResourceRecordsIsMutable(); resourceRecords_.add(index, builderForValue.build()); onChanged(); } else { resourceRecordsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * The resource records required to configure this domain mapping. These
     * records must be added to the domain's DNS configuration in order to
     * serve the application via this domain mapping.
     *
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ public Builder addAllResourceRecords( java.lang.Iterable values) { if (resourceRecordsBuilder_ == null) { ensureResourceRecordsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceRecords_); onChanged(); } else { resourceRecordsBuilder_.addAllMessages(values); } return this; } /** * * *
     * The resource records required to configure this domain mapping. These
     * records must be added to the domain's DNS configuration in order to
     * serve the application via this domain mapping.
     *
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ public Builder clearResourceRecords() { if (resourceRecordsBuilder_ == null) { resourceRecords_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { resourceRecordsBuilder_.clear(); } return this; } /** * * *
     * The resource records required to configure this domain mapping. These
     * records must be added to the domain's DNS configuration in order to
     * serve the application via this domain mapping.
     *
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ public Builder removeResourceRecords(int index) { if (resourceRecordsBuilder_ == null) { ensureResourceRecordsIsMutable(); resourceRecords_.remove(index); onChanged(); } else { resourceRecordsBuilder_.remove(index); } return this; } /** * * *
     * The resource records required to configure this domain mapping. These
     * records must be added to the domain's DNS configuration in order to
     * serve the application via this domain mapping.
     *
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ public com.google.appengine.v1.ResourceRecord.Builder getResourceRecordsBuilder(int index) { return getResourceRecordsFieldBuilder().getBuilder(index); } /** * * *
     * The resource records required to configure this domain mapping. These
     * records must be added to the domain's DNS configuration in order to
     * serve the application via this domain mapping.
     *
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ public com.google.appengine.v1.ResourceRecordOrBuilder getResourceRecordsOrBuilder(int index) { if (resourceRecordsBuilder_ == null) { return resourceRecords_.get(index); } else { return resourceRecordsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * The resource records required to configure this domain mapping. These
     * records must be added to the domain's DNS configuration in order to
     * serve the application via this domain mapping.
     *
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ public java.util.List getResourceRecordsOrBuilderList() { if (resourceRecordsBuilder_ != null) { return resourceRecordsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resourceRecords_); } } /** * * *
     * The resource records required to configure this domain mapping. These
     * records must be added to the domain's DNS configuration in order to
     * serve the application via this domain mapping.
     *
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ public com.google.appengine.v1.ResourceRecord.Builder addResourceRecordsBuilder() { return getResourceRecordsFieldBuilder() .addBuilder(com.google.appengine.v1.ResourceRecord.getDefaultInstance()); } /** * * *
     * The resource records required to configure this domain mapping. These
     * records must be added to the domain's DNS configuration in order to
     * serve the application via this domain mapping.
     *
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ public com.google.appengine.v1.ResourceRecord.Builder addResourceRecordsBuilder(int index) { return getResourceRecordsFieldBuilder() .addBuilder(index, com.google.appengine.v1.ResourceRecord.getDefaultInstance()); } /** * * *
     * The resource records required to configure this domain mapping. These
     * records must be added to the domain's DNS configuration in order to
     * serve the application via this domain mapping.
     *
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.ResourceRecord resource_records = 4; */ public java.util.List getResourceRecordsBuilderList() { return getResourceRecordsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.v1.ResourceRecord, com.google.appengine.v1.ResourceRecord.Builder, com.google.appengine.v1.ResourceRecordOrBuilder> getResourceRecordsFieldBuilder() { if (resourceRecordsBuilder_ == null) { resourceRecordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.v1.ResourceRecord, com.google.appengine.v1.ResourceRecord.Builder, com.google.appengine.v1.ResourceRecordOrBuilder>( resourceRecords_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); resourceRecords_ = null; } return resourceRecordsBuilder_; } @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:google.appengine.v1.DomainMapping) } // @@protoc_insertion_point(class_scope:google.appengine.v1.DomainMapping) private static final com.google.appengine.v1.DomainMapping DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.v1.DomainMapping(); } public static com.google.appengine.v1.DomainMapping getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DomainMapping parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.appengine.v1.DomainMapping getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy