io.bloombox.schema.services.media.v1beta1.ImageResizeMode 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. 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: media/v1beta1/MediaTask.proto
package io.bloombox.schema.services.media.v1beta1;
/**
*
* Mode of operation to employ when resizing images.
*
*
* Protobuf enum {@code bloombox.services.media.v1beta1.ImageResizeMode}
*/
public enum ImageResizeMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Don't change the size of the image.
*
*
* NO_RESIZE = 0;
*/
NO_RESIZE(0),
/**
*
* Resize the image to fit.
*
*
* RESIZE = 1;
*/
RESIZE(1),
/**
*
* Crop the image to fit.
*
*
* CROP = 2;
*/
CROP(2),
UNRECOGNIZED(-1),
;
/**
*
* Don't change the size of the image.
*
*
* NO_RESIZE = 0;
*/
public static final int NO_RESIZE_VALUE = 0;
/**
*
* Resize the image to fit.
*
*
* RESIZE = 1;
*/
public static final int RESIZE_VALUE = 1;
/**
*
* Crop the image to fit.
*
*
* CROP = 2;
*/
public static final int CROP_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 ImageResizeMode valueOf(int value) {
return forNumber(value);
}
public static ImageResizeMode forNumber(int value) {
switch (value) {
case 0: return NO_RESIZE;
case 1: return RESIZE;
case 2: return CROP;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ImageResizeMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ImageResizeMode findValueByNumber(int number) {
return ImageResizeMode.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.services.media.v1beta1.MediaTaskOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final ImageResizeMode[] VALUES = values();
public static ImageResizeMode 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 ImageResizeMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:bloombox.services.media.v1beta1.ImageResizeMode)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy