
io.opencannabis.schema.crypto.primitives.InitializationVector Maven / Gradle / Ivy
/*
* Copyright 2018, 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: crypto/primitives/Keys.proto
package io.opencannabis.schema.crypto.primitives;
/**
*
* Specifies information about an initialization vector value. IV lifecycle and use is governed by the specific
* application or use case.
*
*
* Protobuf type {@code opencannabis.crypto.InitializationVector}
*/
public final class InitializationVector extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opencannabis.crypto.InitializationVector)
InitializationVectorOrBuilder {
private static final long serialVersionUID = 0L;
// Use InitializationVector.newBuilder() to construct.
private InitializationVector(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InitializationVector() {
mode_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private InitializationVector(
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();
mode_ = rawValue;
break;
}
case 82: {
valueCase_ = 10;
value_ = input.readBytes();
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
valueCase_ = 11;
value_ = s;
break;
}
case 96: {
valueCase_ = 12;
value_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownFieldProto3(
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.opencannabis.schema.crypto.primitives.Keys.internal_static_opencannabis_crypto_InitializationVector_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencannabis.schema.crypto.primitives.Keys.internal_static_opencannabis_crypto_InitializationVector_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencannabis.schema.crypto.primitives.InitializationVector.class, io.opencannabis.schema.crypto.primitives.InitializationVector.Builder.class);
}
private int valueCase_ = 0;
private java.lang.Object value_;
public enum ValueCase
implements com.google.protobuf.Internal.EnumLite {
RAW(10),
B64(11),
NUMBER(12),
VALUE_NOT_SET(0);
private final int value;
private ValueCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ValueCase valueOf(int value) {
return forNumber(value);
}
public static ValueCase forNumber(int value) {
switch (value) {
case 10: return RAW;
case 11: return B64;
case 12: return NUMBER;
case 0: return VALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public static final int MODE_FIELD_NUMBER = 1;
private int mode_;
/**
*
* Specifies the operating mode for this IV, if applicable.
*
*
* .opencannabis.crypto.InitializationVectorMode mode = 1;
*/
public int getModeValue() {
return mode_;
}
/**
*
* Specifies the operating mode for this IV, if applicable.
*
*
* .opencannabis.crypto.InitializationVectorMode mode = 1;
*/
public io.opencannabis.schema.crypto.primitives.InitializationVectorMode getMode() {
@SuppressWarnings("deprecation")
io.opencannabis.schema.crypto.primitives.InitializationVectorMode result = io.opencannabis.schema.crypto.primitives.InitializationVectorMode.valueOf(mode_);
return result == null ? io.opencannabis.schema.crypto.primitives.InitializationVectorMode.UNRECOGNIZED : result;
}
public static final int RAW_FIELD_NUMBER = 10;
/**
*
* Raw bytes for the vector.
*
*
* bytes raw = 10;
*/
public com.google.protobuf.ByteString getRaw() {
if (valueCase_ == 10) {
return (com.google.protobuf.ByteString) value_;
}
return com.google.protobuf.ByteString.EMPTY;
}
public static final int B64_FIELD_NUMBER = 11;
/**
*
* Base64-encoded raw bytes for the vector.
*
*
* string b64 = 11;
*/
public java.lang.String getB64() {
java.lang.Object ref = "";
if (valueCase_ == 11) {
ref = value_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (valueCase_ == 11) {
value_ = s;
}
return s;
}
}
/**
*
* Base64-encoded raw bytes for the vector.
*
*
* string b64 = 11;
*/
public com.google.protobuf.ByteString
getB64Bytes() {
java.lang.Object ref = "";
if (valueCase_ == 11) {
ref = value_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (valueCase_ == 11) {
value_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NUMBER_FIELD_NUMBER = 12;
/**
*
* Initialization number.
*
*
* uint32 number = 12;
*/
public int getNumber() {
if (valueCase_ == 12) {
return (java.lang.Integer) value_;
}
return 0;
}
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 (mode_ != io.opencannabis.schema.crypto.primitives.InitializationVectorMode.STATIC_IV.getNumber()) {
output.writeEnum(1, mode_);
}
if (valueCase_ == 10) {
output.writeBytes(
10, (com.google.protobuf.ByteString) value_);
}
if (valueCase_ == 11) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, value_);
}
if (valueCase_ == 12) {
output.writeUInt32(
12, (int)((java.lang.Integer) value_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (mode_ != io.opencannabis.schema.crypto.primitives.InitializationVectorMode.STATIC_IV.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, mode_);
}
if (valueCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
10, (com.google.protobuf.ByteString) value_);
}
if (valueCase_ == 11) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, value_);
}
if (valueCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(
12, (int)((java.lang.Integer) value_));
}
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.opencannabis.schema.crypto.primitives.InitializationVector)) {
return super.equals(obj);
}
io.opencannabis.schema.crypto.primitives.InitializationVector other = (io.opencannabis.schema.crypto.primitives.InitializationVector) obj;
boolean result = true;
result = result && mode_ == other.mode_;
result = result && getValueCase().equals(
other.getValueCase());
if (!result) return false;
switch (valueCase_) {
case 10:
result = result && getRaw()
.equals(other.getRaw());
break;
case 11:
result = result && getB64()
.equals(other.getB64());
break;
case 12:
result = result && (getNumber()
== other.getNumber());
break;
case 0:
default:
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MODE_FIELD_NUMBER;
hash = (53 * hash) + mode_;
switch (valueCase_) {
case 10:
hash = (37 * hash) + RAW_FIELD_NUMBER;
hash = (53 * hash) + getRaw().hashCode();
break;
case 11:
hash = (37 * hash) + B64_FIELD_NUMBER;
hash = (53 * hash) + getB64().hashCode();
break;
case 12:
hash = (37 * hash) + NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getNumber();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.opencannabis.schema.crypto.primitives.InitializationVector parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencannabis.schema.crypto.primitives.InitializationVector parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opencannabis.schema.crypto.primitives.InitializationVector parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencannabis.schema.crypto.primitives.InitializationVector parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opencannabis.schema.crypto.primitives.InitializationVector parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencannabis.schema.crypto.primitives.InitializationVector parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opencannabis.schema.crypto.primitives.InitializationVector parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opencannabis.schema.crypto.primitives.InitializationVector 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.opencannabis.schema.crypto.primitives.InitializationVector parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.opencannabis.schema.crypto.primitives.InitializationVector 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.opencannabis.schema.crypto.primitives.InitializationVector parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opencannabis.schema.crypto.primitives.InitializationVector 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.opencannabis.schema.crypto.primitives.InitializationVector 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;
}
/**
*
* Specifies information about an initialization vector value. IV lifecycle and use is governed by the specific
* application or use case.
*
*
* Protobuf type {@code opencannabis.crypto.InitializationVector}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:opencannabis.crypto.InitializationVector)
io.opencannabis.schema.crypto.primitives.InitializationVectorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opencannabis.schema.crypto.primitives.Keys.internal_static_opencannabis_crypto_InitializationVector_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencannabis.schema.crypto.primitives.Keys.internal_static_opencannabis_crypto_InitializationVector_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencannabis.schema.crypto.primitives.InitializationVector.class, io.opencannabis.schema.crypto.primitives.InitializationVector.Builder.class);
}
// Construct using io.opencannabis.schema.crypto.primitives.InitializationVector.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();
mode_ = 0;
valueCase_ = 0;
value_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.opencannabis.schema.crypto.primitives.Keys.internal_static_opencannabis_crypto_InitializationVector_descriptor;
}
@java.lang.Override
public io.opencannabis.schema.crypto.primitives.InitializationVector getDefaultInstanceForType() {
return io.opencannabis.schema.crypto.primitives.InitializationVector.getDefaultInstance();
}
@java.lang.Override
public io.opencannabis.schema.crypto.primitives.InitializationVector build() {
io.opencannabis.schema.crypto.primitives.InitializationVector result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.opencannabis.schema.crypto.primitives.InitializationVector buildPartial() {
io.opencannabis.schema.crypto.primitives.InitializationVector result = new io.opencannabis.schema.crypto.primitives.InitializationVector(this);
result.mode_ = mode_;
if (valueCase_ == 10) {
result.value_ = value_;
}
if (valueCase_ == 11) {
result.value_ = value_;
}
if (valueCase_ == 12) {
result.value_ = value_;
}
result.valueCase_ = valueCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.opencannabis.schema.crypto.primitives.InitializationVector) {
return mergeFrom((io.opencannabis.schema.crypto.primitives.InitializationVector)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.opencannabis.schema.crypto.primitives.InitializationVector other) {
if (other == io.opencannabis.schema.crypto.primitives.InitializationVector.getDefaultInstance()) return this;
if (other.mode_ != 0) {
setModeValue(other.getModeValue());
}
switch (other.getValueCase()) {
case RAW: {
setRaw(other.getRaw());
break;
}
case B64: {
valueCase_ = 11;
value_ = other.value_;
onChanged();
break;
}
case NUMBER: {
setNumber(other.getNumber());
break;
}
case VALUE_NOT_SET: {
break;
}
}
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.opencannabis.schema.crypto.primitives.InitializationVector parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.opencannabis.schema.crypto.primitives.InitializationVector) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int valueCase_ = 0;
private java.lang.Object value_;
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public Builder clearValue() {
valueCase_ = 0;
value_ = null;
onChanged();
return this;
}
private int mode_ = 0;
/**
*
* Specifies the operating mode for this IV, if applicable.
*
*
* .opencannabis.crypto.InitializationVectorMode mode = 1;
*/
public int getModeValue() {
return mode_;
}
/**
*
* Specifies the operating mode for this IV, if applicable.
*
*
* .opencannabis.crypto.InitializationVectorMode mode = 1;
*/
public Builder setModeValue(int value) {
mode_ = value;
onChanged();
return this;
}
/**
*
* Specifies the operating mode for this IV, if applicable.
*
*
* .opencannabis.crypto.InitializationVectorMode mode = 1;
*/
public io.opencannabis.schema.crypto.primitives.InitializationVectorMode getMode() {
@SuppressWarnings("deprecation")
io.opencannabis.schema.crypto.primitives.InitializationVectorMode result = io.opencannabis.schema.crypto.primitives.InitializationVectorMode.valueOf(mode_);
return result == null ? io.opencannabis.schema.crypto.primitives.InitializationVectorMode.UNRECOGNIZED : result;
}
/**
*
* Specifies the operating mode for this IV, if applicable.
*
*
* .opencannabis.crypto.InitializationVectorMode mode = 1;
*/
public Builder setMode(io.opencannabis.schema.crypto.primitives.InitializationVectorMode value) {
if (value == null) {
throw new NullPointerException();
}
mode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Specifies the operating mode for this IV, if applicable.
*
*
* .opencannabis.crypto.InitializationVectorMode mode = 1;
*/
public Builder clearMode() {
mode_ = 0;
onChanged();
return this;
}
/**
*
* Raw bytes for the vector.
*
*
* bytes raw = 10;
*/
public com.google.protobuf.ByteString getRaw() {
if (valueCase_ == 10) {
return (com.google.protobuf.ByteString) value_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
*
* Raw bytes for the vector.
*
*
* bytes raw = 10;
*/
public Builder setRaw(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
valueCase_ = 10;
value_ = value;
onChanged();
return this;
}
/**
*
* Raw bytes for the vector.
*
*
* bytes raw = 10;
*/
public Builder clearRaw() {
if (valueCase_ == 10) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
*
* Base64-encoded raw bytes for the vector.
*
*
* string b64 = 11;
*/
public java.lang.String getB64() {
java.lang.Object ref = "";
if (valueCase_ == 11) {
ref = value_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (valueCase_ == 11) {
value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Base64-encoded raw bytes for the vector.
*
*
* string b64 = 11;
*/
public com.google.protobuf.ByteString
getB64Bytes() {
java.lang.Object ref = "";
if (valueCase_ == 11) {
ref = value_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (valueCase_ == 11) {
value_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Base64-encoded raw bytes for the vector.
*
*
* string b64 = 11;
*/
public Builder setB64(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
valueCase_ = 11;
value_ = value;
onChanged();
return this;
}
/**
*
* Base64-encoded raw bytes for the vector.
*
*
* string b64 = 11;
*/
public Builder clearB64() {
if (valueCase_ == 11) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
*
* Base64-encoded raw bytes for the vector.
*
*
* string b64 = 11;
*/
public Builder setB64Bytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
valueCase_ = 11;
value_ = value;
onChanged();
return this;
}
/**
*
* Initialization number.
*
*
* uint32 number = 12;
*/
public int getNumber() {
if (valueCase_ == 12) {
return (java.lang.Integer) value_;
}
return 0;
}
/**
*
* Initialization number.
*
*
* uint32 number = 12;
*/
public Builder setNumber(int value) {
valueCase_ = 12;
value_ = value;
onChanged();
return this;
}
/**
*
* Initialization number.
*
*
* uint32 number = 12;
*/
public Builder clearNumber() {
if (valueCase_ == 12) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:opencannabis.crypto.InitializationVector)
}
// @@protoc_insertion_point(class_scope:opencannabis.crypto.InitializationVector)
private static final io.opencannabis.schema.crypto.primitives.InitializationVector DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.opencannabis.schema.crypto.primitives.InitializationVector();
}
public static io.opencannabis.schema.crypto.primitives.InitializationVector getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InitializationVector parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new InitializationVector(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.opencannabis.schema.crypto.primitives.InitializationVector getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy