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

io.bloombox.schema.comms.GenericComms Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2019, Momentum Ideas, Co. All rights reserved.
 *
 * Source and object computer code contained herein is the private intellectual
 * property of Momentum Ideas Co., a Delaware Corporation. Use of this
 * code in source form requires permission in writing before use or the
 * assembly, distribution, or publishing of derivative works, for commercial
 * purposes or any other purpose, from a duly authorized officer of Momentum
 * Ideas Co.
 *
 * 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: comms/Comms.proto

package io.bloombox.schema.comms;

public final class GenericComms {
  private GenericComms() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   * Communication channel types.
   * 
* * Protobuf enum {@code bloombox.comms.Channel} */ public enum Channel implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Unspecified, or default, channel type.
     * 
* * UNSPECIFIED = 0; */ UNSPECIFIED(0), /** *
     * Email channel type.
     * 
* * EMAIL = 1; */ EMAIL(1), /** *
     * SMS, or text, channel type.
     * 
* * SMS = 2; */ SMS(2), UNRECOGNIZED(-1), ; /** *
     * Unspecified, or default, channel type.
     * 
* * UNSPECIFIED = 0; */ public static final int UNSPECIFIED_VALUE = 0; /** *
     * Email channel type.
     * 
* * EMAIL = 1; */ public static final int EMAIL_VALUE = 1; /** *
     * SMS, or text, channel type.
     * 
* * SMS = 2; */ public static final int SMS_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Channel valueOf(int value) { return forNumber(value); } public static Channel forNumber(int value) { switch (value) { case 0: return UNSPECIFIED; case 1: return EMAIL; case 2: return SMS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Channel> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Channel findValueByNumber(int number) { return Channel.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.bloombox.schema.comms.GenericComms.getDescriptor().getEnumTypes().get(0); } private static final Channel[] VALUES = values(); public static Channel valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Channel(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:bloombox.comms.Channel) } public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\021comms/Comms.proto\022\016bloombox.comms*.\n\007C" + "hannel\022\017\n\013UNSPECIFIED\020\000\022\t\n\005EMAIL\020\001\022\007\n\003SM" + "S\020\002B2\n\030io.bloombox.schema.commsB\014Generic" + "CommsH\001P\000\242\002\003BBSb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy