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

io.bloombox.schema.partner.PartnerScope Maven / Gradle / Ivy

There is a newer version: 1.8
Show newest version
/*
 * Copyright 2017, Bloombox, LLC. All rights reserved.
 *
 * Source and object computer code contained herein is the private intellectual property
 * of Bloombox, a California Limited Liability Corporation. Use of this code in source form
 * requires permission in writing before use or the 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: partner/PartnerScope.proto

package io.bloombox.schema.partner;

/**
 * Protobuf enum {@code partner.PartnerScope}
 */
public enum PartnerScope
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * 
   * - Basic
   * 
* * AUTH = 0; */ AUTH(0), /** * CONTACT = 1; */ CONTACT(1), /** * DASHBOARD = 2; */ DASHBOARD(2), /** *
   * - Menus
   * 
* * MENU_DATA_READ = 10; */ MENU_DATA_READ(10), /** * MENU_DATA_WRITE = 20; */ MENU_DATA_WRITE(20), /** *
   * - Special Scopes
   * 
* * SETTINGS = 50; */ SETTINGS(50), /** * ACCESS = 51; */ ACCESS(51), /** * ADMIN = 100; */ ADMIN(100), UNRECOGNIZED(-1), ; /** *
   * - Basic
   * 
* * AUTH = 0; */ public static final int AUTH_VALUE = 0; /** * CONTACT = 1; */ public static final int CONTACT_VALUE = 1; /** * DASHBOARD = 2; */ public static final int DASHBOARD_VALUE = 2; /** *
   * - Menus
   * 
* * MENU_DATA_READ = 10; */ public static final int MENU_DATA_READ_VALUE = 10; /** * MENU_DATA_WRITE = 20; */ public static final int MENU_DATA_WRITE_VALUE = 20; /** *
   * - Special Scopes
   * 
* * SETTINGS = 50; */ public static final int SETTINGS_VALUE = 50; /** * ACCESS = 51; */ public static final int ACCESS_VALUE = 51; /** * ADMIN = 100; */ public static final int ADMIN_VALUE = 100; 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 PartnerScope valueOf(int value) { return forNumber(value); } public static PartnerScope forNumber(int value) { switch (value) { case 0: return AUTH; case 1: return CONTACT; case 2: return DASHBOARD; case 10: return MENU_DATA_READ; case 20: return MENU_DATA_WRITE; case 50: return SETTINGS; case 51: return ACCESS; case 100: return ADMIN; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PartnerScope> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PartnerScope findValueByNumber(int number) { return PartnerScope.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.partner.PartnerScopeOuterClass.getDescriptor().getEnumTypes().get(0); } private static final PartnerScope[] VALUES = values(); public static PartnerScope 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 PartnerScope(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:partner.PartnerScope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy