cz.proto.Traits Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clickzetta-java Show documentation
Show all versions of clickzetta-java Show documentation
The java SDK for clickzetta's Lakehouse
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: operator.proto
package cz.proto;
/**
* Protobuf type {@code cz.proto.Traits}
*/
public final class Traits extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.Traits)
TraitsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Traits.newBuilder() to construct.
private Traits(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Traits() {
engine_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Traits();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Traits(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
engine_ = rawValue;
break;
}
case 18: {
cz.proto.Distribution.Builder subBuilder = null;
if (distribution_ != null) {
subBuilder = distribution_.toBuilder();
}
distribution_ = input.readMessage(cz.proto.Distribution.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(distribution_);
distribution_ = subBuilder.buildPartial();
}
break;
}
case 26: {
cz.proto.Distribution.Builder subBuilder = null;
if (localDistribution_ != null) {
subBuilder = localDistribution_.toBuilder();
}
localDistribution_ = input.readMessage(cz.proto.Distribution.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localDistribution_);
localDistribution_ = subBuilder.buildPartial();
}
break;
}
case 34: {
cz.proto.Collation.Builder subBuilder = null;
if (collation_ != null) {
subBuilder = collation_.toBuilder();
}
collation_ = input.readMessage(cz.proto.Collation.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(collation_);
collation_ = 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 cz.proto.OperatorProto.internal_static_cz_proto_Traits_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.OperatorProto.internal_static_cz_proto_Traits_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.Traits.class, cz.proto.Traits.Builder.class);
}
/**
* Protobuf enum {@code cz.proto.Traits.EngineType}
*/
public enum EngineType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NONE = 0;
*/
NONE(0),
/**
* CZ = 1;
*/
CZ(1),
UNRECOGNIZED(-1),
;
/**
* NONE = 0;
*/
public static final int NONE_VALUE = 0;
/**
* CZ = 1;
*/
public static final int CZ_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EngineType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static EngineType forNumber(int value) {
switch (value) {
case 0: return NONE;
case 1: return CZ;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
EngineType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public EngineType findValueByNumber(int number) {
return EngineType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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 cz.proto.Traits.getDescriptor().getEnumTypes().get(0);
}
private static final EngineType[] VALUES = values();
public static EngineType 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 EngineType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cz.proto.Traits.EngineType)
}
public static final int ENGINE_FIELD_NUMBER = 1;
private int engine_;
/**
* .cz.proto.Traits.EngineType engine = 1;
* @return The enum numeric value on the wire for engine.
*/
@java.lang.Override public int getEngineValue() {
return engine_;
}
/**
* .cz.proto.Traits.EngineType engine = 1;
* @return The engine.
*/
@java.lang.Override public cz.proto.Traits.EngineType getEngine() {
@SuppressWarnings("deprecation")
cz.proto.Traits.EngineType result = cz.proto.Traits.EngineType.valueOf(engine_);
return result == null ? cz.proto.Traits.EngineType.UNRECOGNIZED : result;
}
public static final int DISTRIBUTION_FIELD_NUMBER = 2;
private cz.proto.Distribution distribution_;
/**
* .cz.proto.Distribution distribution = 2;
* @return Whether the distribution field is set.
*/
@java.lang.Override
public boolean hasDistribution() {
return distribution_ != null;
}
/**
* .cz.proto.Distribution distribution = 2;
* @return The distribution.
*/
@java.lang.Override
public cz.proto.Distribution getDistribution() {
return distribution_ == null ? cz.proto.Distribution.getDefaultInstance() : distribution_;
}
/**
* .cz.proto.Distribution distribution = 2;
*/
@java.lang.Override
public cz.proto.DistributionOrBuilder getDistributionOrBuilder() {
return getDistribution();
}
public static final int LOCAL_DISTRIBUTION_FIELD_NUMBER = 3;
private cz.proto.Distribution localDistribution_;
/**
* .cz.proto.Distribution local_distribution = 3;
* @return Whether the localDistribution field is set.
*/
@java.lang.Override
public boolean hasLocalDistribution() {
return localDistribution_ != null;
}
/**
* .cz.proto.Distribution local_distribution = 3;
* @return The localDistribution.
*/
@java.lang.Override
public cz.proto.Distribution getLocalDistribution() {
return localDistribution_ == null ? cz.proto.Distribution.getDefaultInstance() : localDistribution_;
}
/**
* .cz.proto.Distribution local_distribution = 3;
*/
@java.lang.Override
public cz.proto.DistributionOrBuilder getLocalDistributionOrBuilder() {
return getLocalDistribution();
}
public static final int COLLATION_FIELD_NUMBER = 4;
private cz.proto.Collation collation_;
/**
* .cz.proto.Collation collation = 4;
* @return Whether the collation field is set.
*/
@java.lang.Override
public boolean hasCollation() {
return collation_ != null;
}
/**
* .cz.proto.Collation collation = 4;
* @return The collation.
*/
@java.lang.Override
public cz.proto.Collation getCollation() {
return collation_ == null ? cz.proto.Collation.getDefaultInstance() : collation_;
}
/**
* .cz.proto.Collation collation = 4;
*/
@java.lang.Override
public cz.proto.CollationOrBuilder getCollationOrBuilder() {
return getCollation();
}
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 (engine_ != cz.proto.Traits.EngineType.NONE.getNumber()) {
output.writeEnum(1, engine_);
}
if (distribution_ != null) {
output.writeMessage(2, getDistribution());
}
if (localDistribution_ != null) {
output.writeMessage(3, getLocalDistribution());
}
if (collation_ != null) {
output.writeMessage(4, getCollation());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (engine_ != cz.proto.Traits.EngineType.NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, engine_);
}
if (distribution_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getDistribution());
}
if (localDistribution_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getLocalDistribution());
}
if (collation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getCollation());
}
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 cz.proto.Traits)) {
return super.equals(obj);
}
cz.proto.Traits other = (cz.proto.Traits) obj;
if (engine_ != other.engine_) return false;
if (hasDistribution() != other.hasDistribution()) return false;
if (hasDistribution()) {
if (!getDistribution()
.equals(other.getDistribution())) return false;
}
if (hasLocalDistribution() != other.hasLocalDistribution()) return false;
if (hasLocalDistribution()) {
if (!getLocalDistribution()
.equals(other.getLocalDistribution())) return false;
}
if (hasCollation() != other.hasCollation()) return false;
if (hasCollation()) {
if (!getCollation()
.equals(other.getCollation())) 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) + ENGINE_FIELD_NUMBER;
hash = (53 * hash) + engine_;
if (hasDistribution()) {
hash = (37 * hash) + DISTRIBUTION_FIELD_NUMBER;
hash = (53 * hash) + getDistribution().hashCode();
}
if (hasLocalDistribution()) {
hash = (37 * hash) + LOCAL_DISTRIBUTION_FIELD_NUMBER;
hash = (53 * hash) + getLocalDistribution().hashCode();
}
if (hasCollation()) {
hash = (37 * hash) + COLLATION_FIELD_NUMBER;
hash = (53 * hash) + getCollation().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.Traits parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.Traits parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.Traits parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.Traits parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.Traits parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.Traits parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.Traits parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.Traits 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 cz.proto.Traits parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.Traits 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 cz.proto.Traits parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.Traits 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(cz.proto.Traits 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;
}
/**
* Protobuf type {@code cz.proto.Traits}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.Traits)
cz.proto.TraitsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.OperatorProto.internal_static_cz_proto_Traits_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.OperatorProto.internal_static_cz_proto_Traits_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.Traits.class, cz.proto.Traits.Builder.class);
}
// Construct using cz.proto.Traits.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();
engine_ = 0;
if (distributionBuilder_ == null) {
distribution_ = null;
} else {
distribution_ = null;
distributionBuilder_ = null;
}
if (localDistributionBuilder_ == null) {
localDistribution_ = null;
} else {
localDistribution_ = null;
localDistributionBuilder_ = null;
}
if (collationBuilder_ == null) {
collation_ = null;
} else {
collation_ = null;
collationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.OperatorProto.internal_static_cz_proto_Traits_descriptor;
}
@java.lang.Override
public cz.proto.Traits getDefaultInstanceForType() {
return cz.proto.Traits.getDefaultInstance();
}
@java.lang.Override
public cz.proto.Traits build() {
cz.proto.Traits result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.Traits buildPartial() {
cz.proto.Traits result = new cz.proto.Traits(this);
result.engine_ = engine_;
if (distributionBuilder_ == null) {
result.distribution_ = distribution_;
} else {
result.distribution_ = distributionBuilder_.build();
}
if (localDistributionBuilder_ == null) {
result.localDistribution_ = localDistribution_;
} else {
result.localDistribution_ = localDistributionBuilder_.build();
}
if (collationBuilder_ == null) {
result.collation_ = collation_;
} else {
result.collation_ = collationBuilder_.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 cz.proto.Traits) {
return mergeFrom((cz.proto.Traits)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.Traits other) {
if (other == cz.proto.Traits.getDefaultInstance()) return this;
if (other.engine_ != 0) {
setEngineValue(other.getEngineValue());
}
if (other.hasDistribution()) {
mergeDistribution(other.getDistribution());
}
if (other.hasLocalDistribution()) {
mergeLocalDistribution(other.getLocalDistribution());
}
if (other.hasCollation()) {
mergeCollation(other.getCollation());
}
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 {
cz.proto.Traits parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.Traits) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int engine_ = 0;
/**
* .cz.proto.Traits.EngineType engine = 1;
* @return The enum numeric value on the wire for engine.
*/
@java.lang.Override public int getEngineValue() {
return engine_;
}
/**
* .cz.proto.Traits.EngineType engine = 1;
* @param value The enum numeric value on the wire for engine to set.
* @return This builder for chaining.
*/
public Builder setEngineValue(int value) {
engine_ = value;
onChanged();
return this;
}
/**
* .cz.proto.Traits.EngineType engine = 1;
* @return The engine.
*/
@java.lang.Override
public cz.proto.Traits.EngineType getEngine() {
@SuppressWarnings("deprecation")
cz.proto.Traits.EngineType result = cz.proto.Traits.EngineType.valueOf(engine_);
return result == null ? cz.proto.Traits.EngineType.UNRECOGNIZED : result;
}
/**
* .cz.proto.Traits.EngineType engine = 1;
* @param value The engine to set.
* @return This builder for chaining.
*/
public Builder setEngine(cz.proto.Traits.EngineType value) {
if (value == null) {
throw new NullPointerException();
}
engine_ = value.getNumber();
onChanged();
return this;
}
/**
* .cz.proto.Traits.EngineType engine = 1;
* @return This builder for chaining.
*/
public Builder clearEngine() {
engine_ = 0;
onChanged();
return this;
}
private cz.proto.Distribution distribution_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Distribution, cz.proto.Distribution.Builder, cz.proto.DistributionOrBuilder> distributionBuilder_;
/**
* .cz.proto.Distribution distribution = 2;
* @return Whether the distribution field is set.
*/
public boolean hasDistribution() {
return distributionBuilder_ != null || distribution_ != null;
}
/**
* .cz.proto.Distribution distribution = 2;
* @return The distribution.
*/
public cz.proto.Distribution getDistribution() {
if (distributionBuilder_ == null) {
return distribution_ == null ? cz.proto.Distribution.getDefaultInstance() : distribution_;
} else {
return distributionBuilder_.getMessage();
}
}
/**
* .cz.proto.Distribution distribution = 2;
*/
public Builder setDistribution(cz.proto.Distribution value) {
if (distributionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
distribution_ = value;
onChanged();
} else {
distributionBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.Distribution distribution = 2;
*/
public Builder setDistribution(
cz.proto.Distribution.Builder builderForValue) {
if (distributionBuilder_ == null) {
distribution_ = builderForValue.build();
onChanged();
} else {
distributionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.Distribution distribution = 2;
*/
public Builder mergeDistribution(cz.proto.Distribution value) {
if (distributionBuilder_ == null) {
if (distribution_ != null) {
distribution_ =
cz.proto.Distribution.newBuilder(distribution_).mergeFrom(value).buildPartial();
} else {
distribution_ = value;
}
onChanged();
} else {
distributionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.Distribution distribution = 2;
*/
public Builder clearDistribution() {
if (distributionBuilder_ == null) {
distribution_ = null;
onChanged();
} else {
distribution_ = null;
distributionBuilder_ = null;
}
return this;
}
/**
* .cz.proto.Distribution distribution = 2;
*/
public cz.proto.Distribution.Builder getDistributionBuilder() {
onChanged();
return getDistributionFieldBuilder().getBuilder();
}
/**
* .cz.proto.Distribution distribution = 2;
*/
public cz.proto.DistributionOrBuilder getDistributionOrBuilder() {
if (distributionBuilder_ != null) {
return distributionBuilder_.getMessageOrBuilder();
} else {
return distribution_ == null ?
cz.proto.Distribution.getDefaultInstance() : distribution_;
}
}
/**
* .cz.proto.Distribution distribution = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Distribution, cz.proto.Distribution.Builder, cz.proto.DistributionOrBuilder>
getDistributionFieldBuilder() {
if (distributionBuilder_ == null) {
distributionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Distribution, cz.proto.Distribution.Builder, cz.proto.DistributionOrBuilder>(
getDistribution(),
getParentForChildren(),
isClean());
distribution_ = null;
}
return distributionBuilder_;
}
private cz.proto.Distribution localDistribution_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Distribution, cz.proto.Distribution.Builder, cz.proto.DistributionOrBuilder> localDistributionBuilder_;
/**
* .cz.proto.Distribution local_distribution = 3;
* @return Whether the localDistribution field is set.
*/
public boolean hasLocalDistribution() {
return localDistributionBuilder_ != null || localDistribution_ != null;
}
/**
* .cz.proto.Distribution local_distribution = 3;
* @return The localDistribution.
*/
public cz.proto.Distribution getLocalDistribution() {
if (localDistributionBuilder_ == null) {
return localDistribution_ == null ? cz.proto.Distribution.getDefaultInstance() : localDistribution_;
} else {
return localDistributionBuilder_.getMessage();
}
}
/**
* .cz.proto.Distribution local_distribution = 3;
*/
public Builder setLocalDistribution(cz.proto.Distribution value) {
if (localDistributionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localDistribution_ = value;
onChanged();
} else {
localDistributionBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.Distribution local_distribution = 3;
*/
public Builder setLocalDistribution(
cz.proto.Distribution.Builder builderForValue) {
if (localDistributionBuilder_ == null) {
localDistribution_ = builderForValue.build();
onChanged();
} else {
localDistributionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.Distribution local_distribution = 3;
*/
public Builder mergeLocalDistribution(cz.proto.Distribution value) {
if (localDistributionBuilder_ == null) {
if (localDistribution_ != null) {
localDistribution_ =
cz.proto.Distribution.newBuilder(localDistribution_).mergeFrom(value).buildPartial();
} else {
localDistribution_ = value;
}
onChanged();
} else {
localDistributionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.Distribution local_distribution = 3;
*/
public Builder clearLocalDistribution() {
if (localDistributionBuilder_ == null) {
localDistribution_ = null;
onChanged();
} else {
localDistribution_ = null;
localDistributionBuilder_ = null;
}
return this;
}
/**
* .cz.proto.Distribution local_distribution = 3;
*/
public cz.proto.Distribution.Builder getLocalDistributionBuilder() {
onChanged();
return getLocalDistributionFieldBuilder().getBuilder();
}
/**
* .cz.proto.Distribution local_distribution = 3;
*/
public cz.proto.DistributionOrBuilder getLocalDistributionOrBuilder() {
if (localDistributionBuilder_ != null) {
return localDistributionBuilder_.getMessageOrBuilder();
} else {
return localDistribution_ == null ?
cz.proto.Distribution.getDefaultInstance() : localDistribution_;
}
}
/**
* .cz.proto.Distribution local_distribution = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Distribution, cz.proto.Distribution.Builder, cz.proto.DistributionOrBuilder>
getLocalDistributionFieldBuilder() {
if (localDistributionBuilder_ == null) {
localDistributionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Distribution, cz.proto.Distribution.Builder, cz.proto.DistributionOrBuilder>(
getLocalDistribution(),
getParentForChildren(),
isClean());
localDistribution_ = null;
}
return localDistributionBuilder_;
}
private cz.proto.Collation collation_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Collation, cz.proto.Collation.Builder, cz.proto.CollationOrBuilder> collationBuilder_;
/**
* .cz.proto.Collation collation = 4;
* @return Whether the collation field is set.
*/
public boolean hasCollation() {
return collationBuilder_ != null || collation_ != null;
}
/**
* .cz.proto.Collation collation = 4;
* @return The collation.
*/
public cz.proto.Collation getCollation() {
if (collationBuilder_ == null) {
return collation_ == null ? cz.proto.Collation.getDefaultInstance() : collation_;
} else {
return collationBuilder_.getMessage();
}
}
/**
* .cz.proto.Collation collation = 4;
*/
public Builder setCollation(cz.proto.Collation value) {
if (collationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
collation_ = value;
onChanged();
} else {
collationBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.Collation collation = 4;
*/
public Builder setCollation(
cz.proto.Collation.Builder builderForValue) {
if (collationBuilder_ == null) {
collation_ = builderForValue.build();
onChanged();
} else {
collationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.Collation collation = 4;
*/
public Builder mergeCollation(cz.proto.Collation value) {
if (collationBuilder_ == null) {
if (collation_ != null) {
collation_ =
cz.proto.Collation.newBuilder(collation_).mergeFrom(value).buildPartial();
} else {
collation_ = value;
}
onChanged();
} else {
collationBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.Collation collation = 4;
*/
public Builder clearCollation() {
if (collationBuilder_ == null) {
collation_ = null;
onChanged();
} else {
collation_ = null;
collationBuilder_ = null;
}
return this;
}
/**
* .cz.proto.Collation collation = 4;
*/
public cz.proto.Collation.Builder getCollationBuilder() {
onChanged();
return getCollationFieldBuilder().getBuilder();
}
/**
* .cz.proto.Collation collation = 4;
*/
public cz.proto.CollationOrBuilder getCollationOrBuilder() {
if (collationBuilder_ != null) {
return collationBuilder_.getMessageOrBuilder();
} else {
return collation_ == null ?
cz.proto.Collation.getDefaultInstance() : collation_;
}
}
/**
* .cz.proto.Collation collation = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Collation, cz.proto.Collation.Builder, cz.proto.CollationOrBuilder>
getCollationFieldBuilder() {
if (collationBuilder_ == null) {
collationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Collation, cz.proto.Collation.Builder, cz.proto.CollationOrBuilder>(
getCollation(),
getParentForChildren(),
isClean());
collation_ = null;
}
return collationBuilder_;
}
@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:cz.proto.Traits)
}
// @@protoc_insertion_point(class_scope:cz.proto.Traits)
private static final cz.proto.Traits DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.Traits();
}
public static cz.proto.Traits getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Traits parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Traits(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 cz.proto.Traits getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy