io.bloombox.schema.identity.IdentityMedia 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: identity/IDMedia.proto
package io.bloombox.schema.identity;
public final class IdentityMedia {
private IdentityMedia() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
* Known types of document media that can be attached to an ID.
*
*
* Protobuf enum {@code bloombox.identity.IDMedia}
*/
public enum IDMedia
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Picture of the front of the document.
*
*
* DOCUMENT_FRONT = 0;
*/
DOCUMENT_FRONT(0),
/**
*
* Picture of the back of the document.
*
*
* DOCUMENT_REAR = 1;
*/
DOCUMENT_REAR(1),
/**
*
* Cropped/extracted person portrait from the document.
*
*
* PORTRAIT = 2;
*/
PORTRAIT(2),
UNRECOGNIZED(-1),
;
/**
*
* Picture of the front of the document.
*
*
* DOCUMENT_FRONT = 0;
*/
public static final int DOCUMENT_FRONT_VALUE = 0;
/**
*
* Picture of the back of the document.
*
*
* DOCUMENT_REAR = 1;
*/
public static final int DOCUMENT_REAR_VALUE = 1;
/**
*
* Cropped/extracted person portrait from the document.
*
*
* PORTRAIT = 2;
*/
public static final int PORTRAIT_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 IDMedia valueOf(int value) {
return forNumber(value);
}
public static IDMedia forNumber(int value) {
switch (value) {
case 0: return DOCUMENT_FRONT;
case 1: return DOCUMENT_REAR;
case 2: return PORTRAIT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
IDMedia> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public IDMedia findValueByNumber(int number) {
return IDMedia.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.identity.IdentityMedia.getDescriptor().getEnumTypes().get(0);
}
private static final IDMedia[] VALUES = values();
public static IDMedia 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 IDMedia(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:bloombox.identity.IDMedia)
}
public interface IDMediaAttachmentOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.identity.IDMediaAttachment)
com.google.protobuf.MessageOrBuilder {
/**
*
* Specifies the kind of media being attached.
*
*
* .bloombox.identity.IDMedia type = 1;
*/
int getTypeValue();
/**
*
* Specifies the kind of media being attached.
*
*
* .bloombox.identity.IDMedia type = 1;
*/
io.bloombox.schema.identity.IdentityMedia.IDMedia getType();
/**
*
* Specifies the orientation of the attached media.
*
*
* .opencannabis.media.MediaOrientation orientation = 2;
*/
int getOrientationValue();
/**
*
* Specifies the orientation of the attached media.
*
*
* .opencannabis.media.MediaOrientation orientation = 2;
*/
io.opencannabis.schema.media.MediaItemOrientation.MediaOrientation getOrientation();
/**
*
* Specifies raw data for the attached media.
*
*
* bytes data = 3;
*/
com.google.protobuf.ByteString getData();
/**
*
* Specifies the type of image employed.
*
*
* uint32 image_type = 4;
*/
int getImageType();
/**
*
* Specifies the quality estimate.
*
*
* double quality = 5;
*/
double getQuality();
}
/**
*
* Media attachment that binds some document media to a particular driver's license.
*
*
* Protobuf type {@code bloombox.identity.IDMediaAttachment}
*/
public static final class IDMediaAttachment extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.identity.IDMediaAttachment)
IDMediaAttachmentOrBuilder {
private static final long serialVersionUID = 0L;
// Use IDMediaAttachment.newBuilder() to construct.
private IDMediaAttachment(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IDMediaAttachment() {
type_ = 0;
orientation_ = 0;
data_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IDMediaAttachment(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 16: {
int rawValue = input.readEnum();
orientation_ = rawValue;
break;
}
case 26: {
data_ = input.readBytes();
break;
}
case 32: {
imageType_ = input.readUInt32();
break;
}
case 41: {
quality_ = input.readDouble();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.identity.IdentityMedia.internal_static_bloombox_identity_IDMediaAttachment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.identity.IdentityMedia.internal_static_bloombox_identity_IDMediaAttachment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment.class, io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
*
* Specifies the kind of media being attached.
*
*
* .bloombox.identity.IDMedia type = 1;
*/
public int getTypeValue() {
return type_;
}
/**
*
* Specifies the kind of media being attached.
*
*
* .bloombox.identity.IDMedia type = 1;
*/
public io.bloombox.schema.identity.IdentityMedia.IDMedia getType() {
@SuppressWarnings("deprecation")
io.bloombox.schema.identity.IdentityMedia.IDMedia result = io.bloombox.schema.identity.IdentityMedia.IDMedia.valueOf(type_);
return result == null ? io.bloombox.schema.identity.IdentityMedia.IDMedia.UNRECOGNIZED : result;
}
public static final int ORIENTATION_FIELD_NUMBER = 2;
private int orientation_;
/**
*
* Specifies the orientation of the attached media.
*
*
* .opencannabis.media.MediaOrientation orientation = 2;
*/
public int getOrientationValue() {
return orientation_;
}
/**
*
* Specifies the orientation of the attached media.
*
*
* .opencannabis.media.MediaOrientation orientation = 2;
*/
public io.opencannabis.schema.media.MediaItemOrientation.MediaOrientation getOrientation() {
@SuppressWarnings("deprecation")
io.opencannabis.schema.media.MediaItemOrientation.MediaOrientation result = io.opencannabis.schema.media.MediaItemOrientation.MediaOrientation.valueOf(orientation_);
return result == null ? io.opencannabis.schema.media.MediaItemOrientation.MediaOrientation.UNRECOGNIZED : result;
}
public static final int DATA_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString data_;
/**
*
* Specifies raw data for the attached media.
*
*
* bytes data = 3;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int IMAGE_TYPE_FIELD_NUMBER = 4;
private int imageType_;
/**
*
* Specifies the type of image employed.
*
*
* uint32 image_type = 4;
*/
public int getImageType() {
return imageType_;
}
public static final int QUALITY_FIELD_NUMBER = 5;
private double quality_;
/**
*
* Specifies the quality estimate.
*
*
* double quality = 5;
*/
public double getQuality() {
return quality_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (type_ != io.bloombox.schema.identity.IdentityMedia.IDMedia.DOCUMENT_FRONT.getNumber()) {
output.writeEnum(1, type_);
}
if (orientation_ != io.opencannabis.schema.media.MediaItemOrientation.MediaOrientation.UP.getNumber()) {
output.writeEnum(2, orientation_);
}
if (!data_.isEmpty()) {
output.writeBytes(3, data_);
}
if (imageType_ != 0) {
output.writeUInt32(4, imageType_);
}
if (quality_ != 0D) {
output.writeDouble(5, quality_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != io.bloombox.schema.identity.IdentityMedia.IDMedia.DOCUMENT_FRONT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (orientation_ != io.opencannabis.schema.media.MediaItemOrientation.MediaOrientation.UP.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, orientation_);
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, data_);
}
if (imageType_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, imageType_);
}
if (quality_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, quality_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment)) {
return super.equals(obj);
}
io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment other = (io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment) obj;
if (type_ != other.type_) return false;
if (orientation_ != other.orientation_) return false;
if (!getData()
.equals(other.getData())) return false;
if (getImageType()
!= other.getImageType()) return false;
if (java.lang.Double.doubleToLongBits(getQuality())
!= java.lang.Double.doubleToLongBits(
other.getQuality())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + ORIENTATION_FIELD_NUMBER;
hash = (53 * hash) + orientation_;
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (37 * hash) + IMAGE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getImageType();
hash = (37 * hash) + QUALITY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getQuality()));
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Media attachment that binds some document media to a particular driver's license.
*
*
* Protobuf type {@code bloombox.identity.IDMediaAttachment}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.identity.IDMediaAttachment)
io.bloombox.schema.identity.IdentityMedia.IDMediaAttachmentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.identity.IdentityMedia.internal_static_bloombox_identity_IDMediaAttachment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.identity.IdentityMedia.internal_static_bloombox_identity_IDMediaAttachment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment.class, io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment.Builder.class);
}
// Construct using io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
type_ = 0;
orientation_ = 0;
data_ = com.google.protobuf.ByteString.EMPTY;
imageType_ = 0;
quality_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.bloombox.schema.identity.IdentityMedia.internal_static_bloombox_identity_IDMediaAttachment_descriptor;
}
@java.lang.Override
public io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment getDefaultInstanceForType() {
return io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment build() {
io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment buildPartial() {
io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment result = new io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment(this);
result.type_ = type_;
result.orientation_ = orientation_;
result.data_ = data_;
result.imageType_ = imageType_;
result.quality_ = quality_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment) {
return mergeFrom((io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment other) {
if (other == io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.orientation_ != 0) {
setOrientationValue(other.getOrientationValue());
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (other.getImageType() != 0) {
setImageType(other.getImageType());
}
if (other.getQuality() != 0D) {
setQuality(other.getQuality());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int type_ = 0;
/**
*
* Specifies the kind of media being attached.
*
*
* .bloombox.identity.IDMedia type = 1;
*/
public int getTypeValue() {
return type_;
}
/**
*
* Specifies the kind of media being attached.
*
*
* .bloombox.identity.IDMedia type = 1;
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
*
* Specifies the kind of media being attached.
*
*
* .bloombox.identity.IDMedia type = 1;
*/
public io.bloombox.schema.identity.IdentityMedia.IDMedia getType() {
@SuppressWarnings("deprecation")
io.bloombox.schema.identity.IdentityMedia.IDMedia result = io.bloombox.schema.identity.IdentityMedia.IDMedia.valueOf(type_);
return result == null ? io.bloombox.schema.identity.IdentityMedia.IDMedia.UNRECOGNIZED : result;
}
/**
*
* Specifies the kind of media being attached.
*
*
* .bloombox.identity.IDMedia type = 1;
*/
public Builder setType(io.bloombox.schema.identity.IdentityMedia.IDMedia value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Specifies the kind of media being attached.
*
*
* .bloombox.identity.IDMedia type = 1;
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private int orientation_ = 0;
/**
*
* Specifies the orientation of the attached media.
*
*
* .opencannabis.media.MediaOrientation orientation = 2;
*/
public int getOrientationValue() {
return orientation_;
}
/**
*
* Specifies the orientation of the attached media.
*
*
* .opencannabis.media.MediaOrientation orientation = 2;
*/
public Builder setOrientationValue(int value) {
orientation_ = value;
onChanged();
return this;
}
/**
*
* Specifies the orientation of the attached media.
*
*
* .opencannabis.media.MediaOrientation orientation = 2;
*/
public io.opencannabis.schema.media.MediaItemOrientation.MediaOrientation getOrientation() {
@SuppressWarnings("deprecation")
io.opencannabis.schema.media.MediaItemOrientation.MediaOrientation result = io.opencannabis.schema.media.MediaItemOrientation.MediaOrientation.valueOf(orientation_);
return result == null ? io.opencannabis.schema.media.MediaItemOrientation.MediaOrientation.UNRECOGNIZED : result;
}
/**
*
* Specifies the orientation of the attached media.
*
*
* .opencannabis.media.MediaOrientation orientation = 2;
*/
public Builder setOrientation(io.opencannabis.schema.media.MediaItemOrientation.MediaOrientation value) {
if (value == null) {
throw new NullPointerException();
}
orientation_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Specifies the orientation of the attached media.
*
*
* .opencannabis.media.MediaOrientation orientation = 2;
*/
public Builder clearOrientation() {
orientation_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Specifies raw data for the attached media.
*
*
* bytes data = 3;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* Specifies raw data for the attached media.
*
*
* bytes data = 3;
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* Specifies raw data for the attached media.
*
*
* bytes data = 3;
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private int imageType_ ;
/**
*
* Specifies the type of image employed.
*
*
* uint32 image_type = 4;
*/
public int getImageType() {
return imageType_;
}
/**
*
* Specifies the type of image employed.
*
*
* uint32 image_type = 4;
*/
public Builder setImageType(int value) {
imageType_ = value;
onChanged();
return this;
}
/**
*
* Specifies the type of image employed.
*
*
* uint32 image_type = 4;
*/
public Builder clearImageType() {
imageType_ = 0;
onChanged();
return this;
}
private double quality_ ;
/**
*
* Specifies the quality estimate.
*
*
* double quality = 5;
*/
public double getQuality() {
return quality_;
}
/**
*
* Specifies the quality estimate.
*
*
* double quality = 5;
*/
public Builder setQuality(double value) {
quality_ = value;
onChanged();
return this;
}
/**
*
* Specifies the quality estimate.
*
*
* double quality = 5;
*/
public Builder clearQuality() {
quality_ = 0D;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:bloombox.identity.IDMediaAttachment)
}
// @@protoc_insertion_point(class_scope:bloombox.identity.IDMediaAttachment)
private static final io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment();
}
public static io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IDMediaAttachment parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IDMediaAttachment(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.bloombox.schema.identity.IdentityMedia.IDMediaAttachment getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_bloombox_identity_IDMediaAttachment_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bloombox_identity_IDMediaAttachment_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\026identity/IDMedia.proto\022\021bloombox.ident" +
"ity\032\034media/MediaOrientation.proto\"\253\001\n\021ID" +
"MediaAttachment\022(\n\004type\030\001 \001(\0162\032.bloombox" +
".identity.IDMedia\0229\n\013orientation\030\002 \001(\0162$" +
".opencannabis.media.MediaOrientation\022\014\n\004" +
"data\030\003 \001(\014\022\022\n\nimage_type\030\004 \001(\r\022\017\n\007qualit" +
"y\030\005 \001(\001*>\n\007IDMedia\022\022\n\016DOCUMENT_FRONT\020\000\022\021" +
"\n\rDOCUMENT_REAR\020\001\022\014\n\010PORTRAIT\020\002B6\n\033io.bl" +
"oombox.schema.identityB\rIdentityMediaH\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[] {
io.opencannabis.schema.media.MediaItemOrientation.getDescriptor(),
}, assigner);
internal_static_bloombox_identity_IDMediaAttachment_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_bloombox_identity_IDMediaAttachment_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bloombox_identity_IDMediaAttachment_descriptor,
new java.lang.String[] { "Type", "Orientation", "Data", "ImageType", "Quality", });
io.opencannabis.schema.media.MediaItemOrientation.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy