io.bloombox.schema.media.MediaOrientation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Java RPCAPI client for the Bloombox Cloud.
/*
* Copyright 2017, Bloombox, 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
*
* http://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: media/MediaOrientation.proto
package io.bloombox.schema.media;
/**
* Protobuf enum {@code media.MediaOrientation}
*/
public enum MediaOrientation
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UP = 0;
*/
UP(0),
/**
* DOWN = 1;
*/
DOWN(1),
/**
* LEFT = 2;
*/
LEFT(2),
/**
* RIGHT = 3;
*/
RIGHT(3),
/**
* UP_MIRRORED = 4;
*/
UP_MIRRORED(4),
/**
* DOWN_MIRRORED = 5;
*/
DOWN_MIRRORED(5),
/**
* LEFT_MIRRORED = 6;
*/
LEFT_MIRRORED(6),
/**
* RIGHT_MIRRORED = 7;
*/
RIGHT_MIRRORED(7),
UNRECOGNIZED(-1),
;
/**
* UP = 0;
*/
public static final int UP_VALUE = 0;
/**
* DOWN = 1;
*/
public static final int DOWN_VALUE = 1;
/**
* LEFT = 2;
*/
public static final int LEFT_VALUE = 2;
/**
* RIGHT = 3;
*/
public static final int RIGHT_VALUE = 3;
/**
* UP_MIRRORED = 4;
*/
public static final int UP_MIRRORED_VALUE = 4;
/**
* DOWN_MIRRORED = 5;
*/
public static final int DOWN_MIRRORED_VALUE = 5;
/**
* LEFT_MIRRORED = 6;
*/
public static final int LEFT_MIRRORED_VALUE = 6;
/**
* RIGHT_MIRRORED = 7;
*/
public static final int RIGHT_MIRRORED_VALUE = 7;
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 MediaOrientation valueOf(int value) {
return forNumber(value);
}
public static MediaOrientation forNumber(int value) {
switch (value) {
case 0: return UP;
case 1: return DOWN;
case 2: return LEFT;
case 3: return RIGHT;
case 4: return UP_MIRRORED;
case 5: return DOWN_MIRRORED;
case 6: return LEFT_MIRRORED;
case 7: return RIGHT_MIRRORED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
MediaOrientation> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public MediaOrientation findValueByNumber(int number) {
return MediaOrientation.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.media.MediaOrientationOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final MediaOrientation[] VALUES = values();
public static MediaOrientation 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 MediaOrientation(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:media.MediaOrientation)
}