
io.opencannabis.schema.media.MediaItemOrientation 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.
The newest version!
/*
* Copyright 2019, Momentum Ideas Co.
*
* 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.opencannabis.schema.media;
public final class MediaItemOrientation {
private MediaItemOrientation() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
* Orientation status of a piece of media. Provided by camera operations on mobile devices,
* in some cases, and also stored along with media sometimes.
*
*
* Protobuf enum {@code opencannabis.media.MediaOrientation}
*/
public enum MediaOrientation
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Media is oriented 'up'.
*
*
* UP = 0;
*/
UP(0),
/**
*
* Media is oriented 'down'.
*
*
* DOWN = 1;
*/
DOWN(1),
/**
*
* Media is oriented 'left'.
*
*
* LEFT = 2;
*/
LEFT(2),
/**
*
* Media is oriented 'right'.
*
*
* RIGHT = 3;
*/
RIGHT(3),
/**
*
* Media is oriented 'up,' and mirrored.
*
*
* UP_MIRRORED = 4;
*/
UP_MIRRORED(4),
/**
*
* Media is oriented 'down,' and mirrored.
*
*
* DOWN_MIRRORED = 5;
*/
DOWN_MIRRORED(5),
/**
*
* Media is oriented 'left,' and mirrored.
*
*
* LEFT_MIRRORED = 6;
*/
LEFT_MIRRORED(6),
/**
*
* Media is oriented 'right,' and mirrored.
*
*
* RIGHT_MIRRORED = 7;
*/
RIGHT_MIRRORED(7),
UNRECOGNIZED(-1),
;
/**
*
* Media is oriented 'up'.
*
*
* UP = 0;
*/
public static final int UP_VALUE = 0;
/**
*
* Media is oriented 'down'.
*
*
* DOWN = 1;
*/
public static final int DOWN_VALUE = 1;
/**
*
* Media is oriented 'left'.
*
*
* LEFT = 2;
*/
public static final int LEFT_VALUE = 2;
/**
*
* Media is oriented 'right'.
*
*
* RIGHT = 3;
*/
public static final int RIGHT_VALUE = 3;
/**
*
* Media is oriented 'up,' and mirrored.
*
*
* UP_MIRRORED = 4;
*/
public static final int UP_MIRRORED_VALUE = 4;
/**
*
* Media is oriented 'down,' and mirrored.
*
*
* DOWN_MIRRORED = 5;
*/
public static final int DOWN_MIRRORED_VALUE = 5;
/**
*
* Media is oriented 'left,' and mirrored.
*
*
* LEFT_MIRRORED = 6;
*/
public static final int LEFT_MIRRORED_VALUE = 6;
/**
*
* Media is oriented 'right,' and mirrored.
*
*
* 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.opencannabis.schema.media.MediaItemOrientation.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:opencannabis.media.MediaOrientation)
}
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\034media/MediaOrientation.proto\022\022opencann" +
"abis.media*\204\001\n\020MediaOrientation\022\006\n\002UP\020\000\022" +
"\010\n\004DOWN\020\001\022\010\n\004LEFT\020\002\022\t\n\005RIGHT\020\003\022\017\n\013UP_MIR" +
"RORED\020\004\022\021\n\rDOWN_MIRRORED\020\005\022\021\n\rLEFT_MIRRO" +
"RED\020\006\022\022\n\016RIGHT_MIRRORED\020\007B>\n\034io.opencann" +
"abis.schema.mediaB\024MediaItemOrientationH" +
"\001P\000\242\002\003OCSb\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