io.opencannabis.schema.product.struct.Genetics 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: structs/Genetics.proto
package io.opencannabis.schema.product.struct;
/**
*
* Specifies genetics for a particular plant or flower item.
*
*
* Protobuf type {@code opencannabis.structs.Genetics}
*/
public final class Genetics extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opencannabis.structs.Genetics)
GeneticsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Genetics.newBuilder() to construct.
private Genetics(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Genetics() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Genetics(
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 10: {
io.opencannabis.schema.base.BaseProductKey.ProductReference.Builder subBuilder = null;
if (male_ != null) {
subBuilder = male_.toBuilder();
}
male_ = input.readMessage(io.opencannabis.schema.base.BaseProductKey.ProductReference.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(male_);
male_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.opencannabis.schema.base.BaseProductKey.ProductReference.Builder subBuilder = null;
if (female_ != null) {
subBuilder = female_.toBuilder();
}
female_ = input.readMessage(io.opencannabis.schema.base.BaseProductKey.ProductReference.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(female_);
female_ = subBuilder.buildPartial();
}
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.opencannabis.schema.product.struct.GeneticsStructs.internal_static_opencannabis_structs_Genetics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencannabis.schema.product.struct.GeneticsStructs.internal_static_opencannabis_structs_Genetics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencannabis.schema.product.struct.Genetics.class, io.opencannabis.schema.product.struct.Genetics.Builder.class);
}
public static final int MALE_FIELD_NUMBER = 1;
private io.opencannabis.schema.base.BaseProductKey.ProductReference male_;
/**
*
* Specifies the male side of an item's genetics.
*
*
* .opencannabis.base.ProductReference male = 1;
*/
public boolean hasMale() {
return male_ != null;
}
/**
*
* Specifies the male side of an item's genetics.
*
*
* .opencannabis.base.ProductReference male = 1;
*/
public io.opencannabis.schema.base.BaseProductKey.ProductReference getMale() {
return male_ == null ? io.opencannabis.schema.base.BaseProductKey.ProductReference.getDefaultInstance() : male_;
}
/**
*
* Specifies the male side of an item's genetics.
*
*
* .opencannabis.base.ProductReference male = 1;
*/
public io.opencannabis.schema.base.BaseProductKey.ProductReferenceOrBuilder getMaleOrBuilder() {
return getMale();
}
public static final int FEMALE_FIELD_NUMBER = 2;
private io.opencannabis.schema.base.BaseProductKey.ProductReference female_;
/**
*
* Specifies the female side of an item's genetics.
*
*
* .opencannabis.base.ProductReference female = 2;
*/
public boolean hasFemale() {
return female_ != null;
}
/**
*
* Specifies the female side of an item's genetics.
*
*
* .opencannabis.base.ProductReference female = 2;
*/
public io.opencannabis.schema.base.BaseProductKey.ProductReference getFemale() {
return female_ == null ? io.opencannabis.schema.base.BaseProductKey.ProductReference.getDefaultInstance() : female_;
}
/**
*
* Specifies the female side of an item's genetics.
*
*
* .opencannabis.base.ProductReference female = 2;
*/
public io.opencannabis.schema.base.BaseProductKey.ProductReferenceOrBuilder getFemaleOrBuilder() {
return getFemale();
}
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 (male_ != null) {
output.writeMessage(1, getMale());
}
if (female_ != null) {
output.writeMessage(2, getFemale());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (male_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMale());
}
if (female_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getFemale());
}
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.product.struct.Genetics)) {
return super.equals(obj);
}
io.opencannabis.schema.product.struct.Genetics other = (io.opencannabis.schema.product.struct.Genetics) obj;
if (hasMale() != other.hasMale()) return false;
if (hasMale()) {
if (!getMale()
.equals(other.getMale())) return false;
}
if (hasFemale() != other.hasFemale()) return false;
if (hasFemale()) {
if (!getFemale()
.equals(other.getFemale())) 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();
if (hasMale()) {
hash = (37 * hash) + MALE_FIELD_NUMBER;
hash = (53 * hash) + getMale().hashCode();
}
if (hasFemale()) {
hash = (37 * hash) + FEMALE_FIELD_NUMBER;
hash = (53 * hash) + getFemale().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.opencannabis.schema.product.struct.Genetics parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencannabis.schema.product.struct.Genetics 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.product.struct.Genetics parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencannabis.schema.product.struct.Genetics 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.product.struct.Genetics parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencannabis.schema.product.struct.Genetics parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opencannabis.schema.product.struct.Genetics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opencannabis.schema.product.struct.Genetics 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.product.struct.Genetics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.opencannabis.schema.product.struct.Genetics 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.product.struct.Genetics parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opencannabis.schema.product.struct.Genetics 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.product.struct.Genetics 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 genetics for a particular plant or flower item.
*
*
* Protobuf type {@code opencannabis.structs.Genetics}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:opencannabis.structs.Genetics)
io.opencannabis.schema.product.struct.GeneticsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opencannabis.schema.product.struct.GeneticsStructs.internal_static_opencannabis_structs_Genetics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencannabis.schema.product.struct.GeneticsStructs.internal_static_opencannabis_structs_Genetics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencannabis.schema.product.struct.Genetics.class, io.opencannabis.schema.product.struct.Genetics.Builder.class);
}
// Construct using io.opencannabis.schema.product.struct.Genetics.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();
if (maleBuilder_ == null) {
male_ = null;
} else {
male_ = null;
maleBuilder_ = null;
}
if (femaleBuilder_ == null) {
female_ = null;
} else {
female_ = null;
femaleBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.opencannabis.schema.product.struct.GeneticsStructs.internal_static_opencannabis_structs_Genetics_descriptor;
}
@java.lang.Override
public io.opencannabis.schema.product.struct.Genetics getDefaultInstanceForType() {
return io.opencannabis.schema.product.struct.Genetics.getDefaultInstance();
}
@java.lang.Override
public io.opencannabis.schema.product.struct.Genetics build() {
io.opencannabis.schema.product.struct.Genetics result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.opencannabis.schema.product.struct.Genetics buildPartial() {
io.opencannabis.schema.product.struct.Genetics result = new io.opencannabis.schema.product.struct.Genetics(this);
if (maleBuilder_ == null) {
result.male_ = male_;
} else {
result.male_ = maleBuilder_.build();
}
if (femaleBuilder_ == null) {
result.female_ = female_;
} else {
result.female_ = femaleBuilder_.build();
}
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.opencannabis.schema.product.struct.Genetics) {
return mergeFrom((io.opencannabis.schema.product.struct.Genetics)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.opencannabis.schema.product.struct.Genetics other) {
if (other == io.opencannabis.schema.product.struct.Genetics.getDefaultInstance()) return this;
if (other.hasMale()) {
mergeMale(other.getMale());
}
if (other.hasFemale()) {
mergeFemale(other.getFemale());
}
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.product.struct.Genetics parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.opencannabis.schema.product.struct.Genetics) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.opencannabis.schema.base.BaseProductKey.ProductReference male_;
private com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.base.BaseProductKey.ProductReference, io.opencannabis.schema.base.BaseProductKey.ProductReference.Builder, io.opencannabis.schema.base.BaseProductKey.ProductReferenceOrBuilder> maleBuilder_;
/**
*
* Specifies the male side of an item's genetics.
*
*
* .opencannabis.base.ProductReference male = 1;
*/
public boolean hasMale() {
return maleBuilder_ != null || male_ != null;
}
/**
*
* Specifies the male side of an item's genetics.
*
*
* .opencannabis.base.ProductReference male = 1;
*/
public io.opencannabis.schema.base.BaseProductKey.ProductReference getMale() {
if (maleBuilder_ == null) {
return male_ == null ? io.opencannabis.schema.base.BaseProductKey.ProductReference.getDefaultInstance() : male_;
} else {
return maleBuilder_.getMessage();
}
}
/**
*
* Specifies the male side of an item's genetics.
*
*
* .opencannabis.base.ProductReference male = 1;
*/
public Builder setMale(io.opencannabis.schema.base.BaseProductKey.ProductReference value) {
if (maleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
male_ = value;
onChanged();
} else {
maleBuilder_.setMessage(value);
}
return this;
}
/**
*
* Specifies the male side of an item's genetics.
*
*
* .opencannabis.base.ProductReference male = 1;
*/
public Builder setMale(
io.opencannabis.schema.base.BaseProductKey.ProductReference.Builder builderForValue) {
if (maleBuilder_ == null) {
male_ = builderForValue.build();
onChanged();
} else {
maleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Specifies the male side of an item's genetics.
*
*
* .opencannabis.base.ProductReference male = 1;
*/
public Builder mergeMale(io.opencannabis.schema.base.BaseProductKey.ProductReference value) {
if (maleBuilder_ == null) {
if (male_ != null) {
male_ =
io.opencannabis.schema.base.BaseProductKey.ProductReference.newBuilder(male_).mergeFrom(value).buildPartial();
} else {
male_ = value;
}
onChanged();
} else {
maleBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Specifies the male side of an item's genetics.
*
*
* .opencannabis.base.ProductReference male = 1;
*/
public Builder clearMale() {
if (maleBuilder_ == null) {
male_ = null;
onChanged();
} else {
male_ = null;
maleBuilder_ = null;
}
return this;
}
/**
*
* Specifies the male side of an item's genetics.
*
*
* .opencannabis.base.ProductReference male = 1;
*/
public io.opencannabis.schema.base.BaseProductKey.ProductReference.Builder getMaleBuilder() {
onChanged();
return getMaleFieldBuilder().getBuilder();
}
/**
*
* Specifies the male side of an item's genetics.
*
*
* .opencannabis.base.ProductReference male = 1;
*/
public io.opencannabis.schema.base.BaseProductKey.ProductReferenceOrBuilder getMaleOrBuilder() {
if (maleBuilder_ != null) {
return maleBuilder_.getMessageOrBuilder();
} else {
return male_ == null ?
io.opencannabis.schema.base.BaseProductKey.ProductReference.getDefaultInstance() : male_;
}
}
/**
*
* Specifies the male side of an item's genetics.
*
*
* .opencannabis.base.ProductReference male = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.base.BaseProductKey.ProductReference, io.opencannabis.schema.base.BaseProductKey.ProductReference.Builder, io.opencannabis.schema.base.BaseProductKey.ProductReferenceOrBuilder>
getMaleFieldBuilder() {
if (maleBuilder_ == null) {
maleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.base.BaseProductKey.ProductReference, io.opencannabis.schema.base.BaseProductKey.ProductReference.Builder, io.opencannabis.schema.base.BaseProductKey.ProductReferenceOrBuilder>(
getMale(),
getParentForChildren(),
isClean());
male_ = null;
}
return maleBuilder_;
}
private io.opencannabis.schema.base.BaseProductKey.ProductReference female_;
private com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.base.BaseProductKey.ProductReference, io.opencannabis.schema.base.BaseProductKey.ProductReference.Builder, io.opencannabis.schema.base.BaseProductKey.ProductReferenceOrBuilder> femaleBuilder_;
/**
*
* Specifies the female side of an item's genetics.
*
*
* .opencannabis.base.ProductReference female = 2;
*/
public boolean hasFemale() {
return femaleBuilder_ != null || female_ != null;
}
/**
*
* Specifies the female side of an item's genetics.
*
*
* .opencannabis.base.ProductReference female = 2;
*/
public io.opencannabis.schema.base.BaseProductKey.ProductReference getFemale() {
if (femaleBuilder_ == null) {
return female_ == null ? io.opencannabis.schema.base.BaseProductKey.ProductReference.getDefaultInstance() : female_;
} else {
return femaleBuilder_.getMessage();
}
}
/**
*
* Specifies the female side of an item's genetics.
*
*
* .opencannabis.base.ProductReference female = 2;
*/
public Builder setFemale(io.opencannabis.schema.base.BaseProductKey.ProductReference value) {
if (femaleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
female_ = value;
onChanged();
} else {
femaleBuilder_.setMessage(value);
}
return this;
}
/**
*
* Specifies the female side of an item's genetics.
*
*
* .opencannabis.base.ProductReference female = 2;
*/
public Builder setFemale(
io.opencannabis.schema.base.BaseProductKey.ProductReference.Builder builderForValue) {
if (femaleBuilder_ == null) {
female_ = builderForValue.build();
onChanged();
} else {
femaleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Specifies the female side of an item's genetics.
*
*
* .opencannabis.base.ProductReference female = 2;
*/
public Builder mergeFemale(io.opencannabis.schema.base.BaseProductKey.ProductReference value) {
if (femaleBuilder_ == null) {
if (female_ != null) {
female_ =
io.opencannabis.schema.base.BaseProductKey.ProductReference.newBuilder(female_).mergeFrom(value).buildPartial();
} else {
female_ = value;
}
onChanged();
} else {
femaleBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Specifies the female side of an item's genetics.
*
*
* .opencannabis.base.ProductReference female = 2;
*/
public Builder clearFemale() {
if (femaleBuilder_ == null) {
female_ = null;
onChanged();
} else {
female_ = null;
femaleBuilder_ = null;
}
return this;
}
/**
*
* Specifies the female side of an item's genetics.
*
*
* .opencannabis.base.ProductReference female = 2;
*/
public io.opencannabis.schema.base.BaseProductKey.ProductReference.Builder getFemaleBuilder() {
onChanged();
return getFemaleFieldBuilder().getBuilder();
}
/**
*
* Specifies the female side of an item's genetics.
*
*
* .opencannabis.base.ProductReference female = 2;
*/
public io.opencannabis.schema.base.BaseProductKey.ProductReferenceOrBuilder getFemaleOrBuilder() {
if (femaleBuilder_ != null) {
return femaleBuilder_.getMessageOrBuilder();
} else {
return female_ == null ?
io.opencannabis.schema.base.BaseProductKey.ProductReference.getDefaultInstance() : female_;
}
}
/**
*
* Specifies the female side of an item's genetics.
*
*
* .opencannabis.base.ProductReference female = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.base.BaseProductKey.ProductReference, io.opencannabis.schema.base.BaseProductKey.ProductReference.Builder, io.opencannabis.schema.base.BaseProductKey.ProductReferenceOrBuilder>
getFemaleFieldBuilder() {
if (femaleBuilder_ == null) {
femaleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.base.BaseProductKey.ProductReference, io.opencannabis.schema.base.BaseProductKey.ProductReference.Builder, io.opencannabis.schema.base.BaseProductKey.ProductReferenceOrBuilder>(
getFemale(),
getParentForChildren(),
isClean());
female_ = null;
}
return femaleBuilder_;
}
@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:opencannabis.structs.Genetics)
}
// @@protoc_insertion_point(class_scope:opencannabis.structs.Genetics)
private static final io.opencannabis.schema.product.struct.Genetics DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.opencannabis.schema.product.struct.Genetics();
}
public static io.opencannabis.schema.product.struct.Genetics getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Genetics parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Genetics(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.product.struct.Genetics getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy