• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/domains/v1beta1/domains.proto
18 
19 package com.google.cloud.domains.v1beta1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Notices about special properties of certain domains.
26  * </pre>
27  *
28  * Protobuf enum {@code google.cloud.domains.v1beta1.DomainNotice}
29  */
30 public enum DomainNotice implements com.google.protobuf.ProtocolMessageEnum {
31   /**
32    *
33    *
34    * <pre>
35    * The notice is undefined.
36    * </pre>
37    *
38    * <code>DOMAIN_NOTICE_UNSPECIFIED = 0;</code>
39    */
40   DOMAIN_NOTICE_UNSPECIFIED(0),
41   /**
42    *
43    *
44    * <pre>
45    * Indicates that the domain is preloaded on the HTTP Strict Transport
46    * Security list in browsers. Serving a website on such domain requires
47    * an SSL certificate. For details, see
48    * [how to get an SSL
49    * certificate](https://support.google.com/domains/answer/7638036).
50    * </pre>
51    *
52    * <code>HSTS_PRELOADED = 1;</code>
53    */
54   HSTS_PRELOADED(1),
55   UNRECOGNIZED(-1),
56   ;
57 
58   /**
59    *
60    *
61    * <pre>
62    * The notice is undefined.
63    * </pre>
64    *
65    * <code>DOMAIN_NOTICE_UNSPECIFIED = 0;</code>
66    */
67   public static final int DOMAIN_NOTICE_UNSPECIFIED_VALUE = 0;
68   /**
69    *
70    *
71    * <pre>
72    * Indicates that the domain is preloaded on the HTTP Strict Transport
73    * Security list in browsers. Serving a website on such domain requires
74    * an SSL certificate. For details, see
75    * [how to get an SSL
76    * certificate](https://support.google.com/domains/answer/7638036).
77    * </pre>
78    *
79    * <code>HSTS_PRELOADED = 1;</code>
80    */
81   public static final int HSTS_PRELOADED_VALUE = 1;
82 
getNumber()83   public final int getNumber() {
84     if (this == UNRECOGNIZED) {
85       throw new java.lang.IllegalArgumentException(
86           "Can't get the number of an unknown enum value.");
87     }
88     return value;
89   }
90 
91   /**
92    * @param value The numeric wire value of the corresponding enum entry.
93    * @return The enum associated with the given numeric wire value.
94    * @deprecated Use {@link #forNumber(int)} instead.
95    */
96   @java.lang.Deprecated
valueOf(int value)97   public static DomainNotice valueOf(int value) {
98     return forNumber(value);
99   }
100 
101   /**
102    * @param value The numeric wire value of the corresponding enum entry.
103    * @return The enum associated with the given numeric wire value.
104    */
forNumber(int value)105   public static DomainNotice forNumber(int value) {
106     switch (value) {
107       case 0:
108         return DOMAIN_NOTICE_UNSPECIFIED;
109       case 1:
110         return HSTS_PRELOADED;
111       default:
112         return null;
113     }
114   }
115 
internalGetValueMap()116   public static com.google.protobuf.Internal.EnumLiteMap<DomainNotice> internalGetValueMap() {
117     return internalValueMap;
118   }
119 
120   private static final com.google.protobuf.Internal.EnumLiteMap<DomainNotice> internalValueMap =
121       new com.google.protobuf.Internal.EnumLiteMap<DomainNotice>() {
122         public DomainNotice findValueByNumber(int number) {
123           return DomainNotice.forNumber(number);
124         }
125       };
126 
getValueDescriptor()127   public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
128     if (this == UNRECOGNIZED) {
129       throw new java.lang.IllegalStateException(
130           "Can't get the descriptor of an unrecognized enum value.");
131     }
132     return getDescriptor().getValues().get(ordinal());
133   }
134 
getDescriptorForType()135   public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
136     return getDescriptor();
137   }
138 
getDescriptor()139   public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
140     return com.google.cloud.domains.v1beta1.DomainsProto.getDescriptor().getEnumTypes().get(1);
141   }
142 
143   private static final DomainNotice[] VALUES = values();
144 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)145   public static DomainNotice valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
146     if (desc.getType() != getDescriptor()) {
147       throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
148     }
149     if (desc.getIndex() == -1) {
150       return UNRECOGNIZED;
151     }
152     return VALUES[desc.getIndex()];
153   }
154 
155   private final int value;
156 
DomainNotice(int value)157   private DomainNotice(int value) {
158     this.value = value;
159   }
160 
161   // @@protoc_insertion_point(enum_scope:google.cloud.domains.v1beta1.DomainNotice)
162 }
163