Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*
* string policy_group = 5;
* @return The bytes for policyGroup.
*/
public com.google.protobuf.ByteString
getPolicyGroupBytes() {
java.lang.Object ref = policyGroup_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
policyGroup_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* events:pageview
*
*
* string policy_group = 5;
* @param value The policyGroup to set.
* @return This builder for chaining.
*/
public Builder setPolicyGroup(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
policyGroup_ = value;
onChanged();
return this;
}
/**
*
* events:pageview
*
*
* string policy_group = 5;
* @return This builder for chaining.
*/
public Builder clearPolicyGroup() {
policyGroup_ = getDefaultInstance().getPolicyGroup();
onChanged();
return this;
}
/**
*
* events:pageview
*
*
* string policy_group = 5;
* @param value The bytes for policyGroup to set.
* @return This builder for chaining.
*/
public Builder setPolicyGroupBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
policyGroup_ = value;
onChanged();
return this;
}
private int policyName_ = 0;
/**
* .prefab.LimitResponse.LimitPolicyNames policy_name = 6;
* @return The enum numeric value on the wire for policyName.
*/
@java.lang.Override public int getPolicyNameValue() {
return policyName_;
}
/**
* .prefab.LimitResponse.LimitPolicyNames policy_name = 6;
* @param value The enum numeric value on the wire for policyName to set.
* @return This builder for chaining.
*/
public Builder setPolicyNameValue(int value) {
policyName_ = value;
onChanged();
return this;
}
/**
* .prefab.LimitResponse.LimitPolicyNames policy_name = 6;
* @return The policyName.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames getPolicyName() {
@SuppressWarnings("deprecation")
cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames result = cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.valueOf(policyName_);
return result == null ? cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.UNRECOGNIZED : result;
}
/**
* .prefab.LimitResponse.LimitPolicyNames policy_name = 6;
* @param value The policyName to set.
* @return This builder for chaining.
*/
public Builder setPolicyName(cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames value) {
if (value == null) {
throw new NullPointerException();
}
policyName_ = value.getNumber();
onChanged();
return this;
}
/**
* .prefab.LimitResponse.LimitPolicyNames policy_name = 6;
* @return This builder for chaining.
*/
public Builder clearPolicyName() {
policyName_ = 0;
onChanged();
return this;
}
private int policyLimit_ ;
/**
* int32 policy_limit = 7;
* @return The policyLimit.
*/
@java.lang.Override
public int getPolicyLimit() {
return policyLimit_;
}
/**
* int32 policy_limit = 7;
* @param value The policyLimit to set.
* @return This builder for chaining.
*/
public Builder setPolicyLimit(int value) {
policyLimit_ = value;
onChanged();
return this;
}
/**
* int32 policy_limit = 7;
* @return This builder for chaining.
*/
public Builder clearPolicyLimit() {
policyLimit_ = 0;
onChanged();
return this;
}
private long amount_ ;
/**
* int64 amount = 8;
* @return The amount.
*/
@java.lang.Override
public long getAmount() {
return amount_;
}
/**
* int64 amount = 8;
* @param value The amount to set.
* @return This builder for chaining.
*/
public Builder setAmount(long value) {
amount_ = value;
onChanged();
return this;
}
/**
* int64 amount = 8;
* @return This builder for chaining.
*/
public Builder clearAmount() {
amount_ = 0L;
onChanged();
return this;
}
private long limitResetAt_ ;
/**
* int64 limit_reset_at = 9;
* @return The limitResetAt.
*/
@java.lang.Override
public long getLimitResetAt() {
return limitResetAt_;
}
/**
* int64 limit_reset_at = 9;
* @param value The limitResetAt to set.
* @return This builder for chaining.
*/
public Builder setLimitResetAt(long value) {
limitResetAt_ = value;
onChanged();
return this;
}
/**
* int64 limit_reset_at = 9;
* @return This builder for chaining.
*/
public Builder clearLimitResetAt() {
limitResetAt_ = 0L;
onChanged();
return this;
}
private int safetyLevel_ = 0;
/**
* .prefab.LimitDefinition.SafetyLevel safety_level = 10;
* @return The enum numeric value on the wire for safetyLevel.
*/
@java.lang.Override public int getSafetyLevelValue() {
return safetyLevel_;
}
/**
* .prefab.LimitDefinition.SafetyLevel safety_level = 10;
* @param value The enum numeric value on the wire for safetyLevel to set.
* @return This builder for chaining.
*/
public Builder setSafetyLevelValue(int value) {
safetyLevel_ = value;
onChanged();
return this;
}
/**
* .prefab.LimitDefinition.SafetyLevel safety_level = 10;
* @return The safetyLevel.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel() {
@SuppressWarnings("deprecation")
cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.valueOf(safetyLevel_);
return result == null ? cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.UNRECOGNIZED : result;
}
/**
* .prefab.LimitDefinition.SafetyLevel safety_level = 10;
* @param value The safetyLevel to set.
* @return This builder for chaining.
*/
public Builder setSafetyLevel(cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel value) {
if (value == null) {
throw new NullPointerException();
}
safetyLevel_ = value.getNumber();
onChanged();
return this;
}
/**
* .prefab.LimitDefinition.SafetyLevel safety_level = 10;
* @return This builder for chaining.
*/
public Builder clearSafetyLevel() {
safetyLevel_ = 0;
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:prefab.LimitResponse)
}
// @@protoc_insertion_point(class_scope:prefab.LimitResponse)
private static final cloud.prefab.domain.Prefab.LimitResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.LimitResponse();
}
public static cloud.prefab.domain.Prefab.LimitResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LimitResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LimitResponse(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 cloud.prefab.domain.Prefab.LimitResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LimitRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.LimitRequest)
com.google.protobuf.MessageOrBuilder {
/**
* int64 account_id = 1;
* @return The accountId.
*/
long getAccountId();
/**
* int32 acquire_amount = 2;
* @return The acquireAmount.
*/
int getAcquireAmount();
/**
* repeated string groups = 3;
* @return A list containing the groups.
*/
java.util.List
getGroupsList();
/**
* repeated string groups = 3;
* @return The count of groups.
*/
int getGroupsCount();
/**
* repeated string groups = 3;
* @param index The index of the element to return.
* @return The groups at the given index.
*/
java.lang.String getGroups(int index);
/**
* repeated string groups = 3;
* @param index The index of the value to return.
* @return The bytes of the groups at the given index.
*/
com.google.protobuf.ByteString
getGroupsBytes(int index);
/**
* .prefab.LimitRequest.LimitCombiner limit_combiner = 4;
* @return The enum numeric value on the wire for limitCombiner.
*/
int getLimitCombinerValue();
/**
* .prefab.LimitRequest.LimitCombiner limit_combiner = 4;
* @return The limitCombiner.
*/
cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner getLimitCombiner();
/**
* bool allow_partial_response = 5;
* @return The allowPartialResponse.
*/
boolean getAllowPartialResponse();
/**
*
* [default = L4_BEST_EFFORT];
*
*
* .prefab.LimitDefinition.SafetyLevel safety_level = 6;
* @return The enum numeric value on the wire for safetyLevel.
*/
int getSafetyLevelValue();
/**
*
* [default = L4_BEST_EFFORT];
*
*
* .prefab.LimitDefinition.SafetyLevel safety_level = 6;
* @return The safetyLevel.
*/
cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel();
}
/**
* Protobuf type {@code prefab.LimitRequest}
*/
public static final class LimitRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.LimitRequest)
LimitRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use LimitRequest.newBuilder() to construct.
private LimitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private LimitRequest() {
groups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
limitCombiner_ = 0;
safetyLevel_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LimitRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LimitRequest(
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: {
accountId_ = input.readInt64();
break;
}
case 16: {
acquireAmount_ = input.readInt32();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
groups_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
groups_.add(s);
break;
}
case 32: {
int rawValue = input.readEnum();
limitCombiner_ = rawValue;
break;
}
case 40: {
allowPartialResponse_ = input.readBool();
break;
}
case 48: {
int rawValue = input.readEnum();
safetyLevel_ = rawValue;
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
groups_ = groups_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LimitRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LimitRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.LimitRequest.class, cloud.prefab.domain.Prefab.LimitRequest.Builder.class);
}
/**
* Protobuf enum {@code prefab.LimitRequest.LimitCombiner}
*/
public enum LimitCombiner
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NOT_SET = 0;
*/
NOT_SET(0),
/**
* MINIMUM = 1;
*/
MINIMUM(1),
/**
* MAXIMUM = 2;
*/
MAXIMUM(2),
UNRECOGNIZED(-1),
;
/**
* NOT_SET = 0;
*/
public static final int NOT_SET_VALUE = 0;
/**
* MINIMUM = 1;
*/
public static final int MINIMUM_VALUE = 1;
/**
* MAXIMUM = 2;
*/
public static final int MAXIMUM_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;
}
/**
* @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 LimitCombiner 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 LimitCombiner forNumber(int value) {
switch (value) {
case 0: return NOT_SET;
case 1: return MINIMUM;
case 2: return MAXIMUM;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
LimitCombiner> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public LimitCombiner findValueByNumber(int number) {
return LimitCombiner.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 cloud.prefab.domain.Prefab.LimitRequest.getDescriptor().getEnumTypes().get(0);
}
private static final LimitCombiner[] VALUES = values();
public static LimitCombiner 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 LimitCombiner(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:prefab.LimitRequest.LimitCombiner)
}
public static final int ACCOUNT_ID_FIELD_NUMBER = 1;
private long accountId_;
/**
* int64 account_id = 1;
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
public static final int ACQUIRE_AMOUNT_FIELD_NUMBER = 2;
private int acquireAmount_;
/**
* int32 acquire_amount = 2;
* @return The acquireAmount.
*/
@java.lang.Override
public int getAcquireAmount() {
return acquireAmount_;
}
public static final int GROUPS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList groups_;
/**
* repeated string groups = 3;
* @return A list containing the groups.
*/
public com.google.protobuf.ProtocolStringList
getGroupsList() {
return groups_;
}
/**
* repeated string groups = 3;
* @return The count of groups.
*/
public int getGroupsCount() {
return groups_.size();
}
/**
* repeated string groups = 3;
* @param index The index of the element to return.
* @return The groups at the given index.
*/
public java.lang.String getGroups(int index) {
return groups_.get(index);
}
/**
* repeated string groups = 3;
* @param index The index of the value to return.
* @return The bytes of the groups at the given index.
*/
public com.google.protobuf.ByteString
getGroupsBytes(int index) {
return groups_.getByteString(index);
}
public static final int LIMIT_COMBINER_FIELD_NUMBER = 4;
private int limitCombiner_;
/**
* .prefab.LimitRequest.LimitCombiner limit_combiner = 4;
* @return The enum numeric value on the wire for limitCombiner.
*/
@java.lang.Override public int getLimitCombinerValue() {
return limitCombiner_;
}
/**
* .prefab.LimitRequest.LimitCombiner limit_combiner = 4;
* @return The limitCombiner.
*/
@java.lang.Override public cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner getLimitCombiner() {
@SuppressWarnings("deprecation")
cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner result = cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.valueOf(limitCombiner_);
return result == null ? cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.UNRECOGNIZED : result;
}
public static final int ALLOW_PARTIAL_RESPONSE_FIELD_NUMBER = 5;
private boolean allowPartialResponse_;
/**
* bool allow_partial_response = 5;
* @return The allowPartialResponse.
*/
@java.lang.Override
public boolean getAllowPartialResponse() {
return allowPartialResponse_;
}
public static final int SAFETY_LEVEL_FIELD_NUMBER = 6;
private int safetyLevel_;
/**
*
* [default = L4_BEST_EFFORT];
*
*
* .prefab.LimitDefinition.SafetyLevel safety_level = 6;
* @return The enum numeric value on the wire for safetyLevel.
*/
@java.lang.Override public int getSafetyLevelValue() {
return safetyLevel_;
}
/**
*
* [default = L4_BEST_EFFORT];
*
*
* .prefab.LimitDefinition.SafetyLevel safety_level = 6;
* @return The safetyLevel.
*/
@java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel() {
@SuppressWarnings("deprecation")
cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.valueOf(safetyLevel_);
return result == null ? cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.UNRECOGNIZED : result;
}
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 (accountId_ != 0L) {
output.writeInt64(1, accountId_);
}
if (acquireAmount_ != 0) {
output.writeInt32(2, acquireAmount_);
}
for (int i = 0; i < groups_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, groups_.getRaw(i));
}
if (limitCombiner_ != cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.NOT_SET.getNumber()) {
output.writeEnum(4, limitCombiner_);
}
if (allowPartialResponse_ != false) {
output.writeBool(5, allowPartialResponse_);
}
if (safetyLevel_ != cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.NOT_SET.getNumber()) {
output.writeEnum(6, safetyLevel_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (accountId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, accountId_);
}
if (acquireAmount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, acquireAmount_);
}
{
int dataSize = 0;
for (int i = 0; i < groups_.size(); i++) {
dataSize += computeStringSizeNoTag(groups_.getRaw(i));
}
size += dataSize;
size += 1 * getGroupsList().size();
}
if (limitCombiner_ != cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.NOT_SET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, limitCombiner_);
}
if (allowPartialResponse_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, allowPartialResponse_);
}
if (safetyLevel_ != cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.NOT_SET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, safetyLevel_);
}
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 cloud.prefab.domain.Prefab.LimitRequest)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.LimitRequest other = (cloud.prefab.domain.Prefab.LimitRequest) obj;
if (getAccountId()
!= other.getAccountId()) return false;
if (getAcquireAmount()
!= other.getAcquireAmount()) return false;
if (!getGroupsList()
.equals(other.getGroupsList())) return false;
if (limitCombiner_ != other.limitCombiner_) return false;
if (getAllowPartialResponse()
!= other.getAllowPartialResponse()) return false;
if (safetyLevel_ != other.safetyLevel_) 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) + ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAccountId());
hash = (37 * hash) + ACQUIRE_AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + getAcquireAmount();
if (getGroupsCount() > 0) {
hash = (37 * hash) + GROUPS_FIELD_NUMBER;
hash = (53 * hash) + getGroupsList().hashCode();
}
hash = (37 * hash) + LIMIT_COMBINER_FIELD_NUMBER;
hash = (53 * hash) + limitCombiner_;
hash = (37 * hash) + ALLOW_PARTIAL_RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAllowPartialResponse());
hash = (37 * hash) + SAFETY_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + safetyLevel_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.LimitRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.LimitRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.LimitRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.LimitRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.LimitRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.LimitRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.LimitRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.LimitRequest 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 cloud.prefab.domain.Prefab.LimitRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.LimitRequest 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 cloud.prefab.domain.Prefab.LimitRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.LimitRequest 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(cloud.prefab.domain.Prefab.LimitRequest 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 prefab.LimitRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.LimitRequest)
cloud.prefab.domain.Prefab.LimitRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LimitRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LimitRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.LimitRequest.class, cloud.prefab.domain.Prefab.LimitRequest.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.LimitRequest.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();
accountId_ = 0L;
acquireAmount_ = 0;
groups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
limitCombiner_ = 0;
allowPartialResponse_ = false;
safetyLevel_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LimitRequest_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitRequest getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.LimitRequest.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitRequest build() {
cloud.prefab.domain.Prefab.LimitRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitRequest buildPartial() {
cloud.prefab.domain.Prefab.LimitRequest result = new cloud.prefab.domain.Prefab.LimitRequest(this);
int from_bitField0_ = bitField0_;
result.accountId_ = accountId_;
result.acquireAmount_ = acquireAmount_;
if (((bitField0_ & 0x00000001) != 0)) {
groups_ = groups_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.groups_ = groups_;
result.limitCombiner_ = limitCombiner_;
result.allowPartialResponse_ = allowPartialResponse_;
result.safetyLevel_ = safetyLevel_;
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 cloud.prefab.domain.Prefab.LimitRequest) {
return mergeFrom((cloud.prefab.domain.Prefab.LimitRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.LimitRequest other) {
if (other == cloud.prefab.domain.Prefab.LimitRequest.getDefaultInstance()) return this;
if (other.getAccountId() != 0L) {
setAccountId(other.getAccountId());
}
if (other.getAcquireAmount() != 0) {
setAcquireAmount(other.getAcquireAmount());
}
if (!other.groups_.isEmpty()) {
if (groups_.isEmpty()) {
groups_ = other.groups_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureGroupsIsMutable();
groups_.addAll(other.groups_);
}
onChanged();
}
if (other.limitCombiner_ != 0) {
setLimitCombinerValue(other.getLimitCombinerValue());
}
if (other.getAllowPartialResponse() != false) {
setAllowPartialResponse(other.getAllowPartialResponse());
}
if (other.safetyLevel_ != 0) {
setSafetyLevelValue(other.getSafetyLevelValue());
}
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 {
cloud.prefab.domain.Prefab.LimitRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cloud.prefab.domain.Prefab.LimitRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long accountId_ ;
/**
* int64 account_id = 1;
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
/**
* int64 account_id = 1;
* @param value The accountId to set.
* @return This builder for chaining.
*/
public Builder setAccountId(long value) {
accountId_ = value;
onChanged();
return this;
}
/**
* int64 account_id = 1;
* @return This builder for chaining.
*/
public Builder clearAccountId() {
accountId_ = 0L;
onChanged();
return this;
}
private int acquireAmount_ ;
/**
* int32 acquire_amount = 2;
* @return The acquireAmount.
*/
@java.lang.Override
public int getAcquireAmount() {
return acquireAmount_;
}
/**
* int32 acquire_amount = 2;
* @param value The acquireAmount to set.
* @return This builder for chaining.
*/
public Builder setAcquireAmount(int value) {
acquireAmount_ = value;
onChanged();
return this;
}
/**
* int32 acquire_amount = 2;
* @return This builder for chaining.
*/
public Builder clearAcquireAmount() {
acquireAmount_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList groups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureGroupsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
groups_ = new com.google.protobuf.LazyStringArrayList(groups_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string groups = 3;
* @return A list containing the groups.
*/
public com.google.protobuf.ProtocolStringList
getGroupsList() {
return groups_.getUnmodifiableView();
}
/**
* repeated string groups = 3;
* @return The count of groups.
*/
public int getGroupsCount() {
return groups_.size();
}
/**
* repeated string groups = 3;
* @param index The index of the element to return.
* @return The groups at the given index.
*/
public java.lang.String getGroups(int index) {
return groups_.get(index);
}
/**
* repeated string groups = 3;
* @param index The index of the value to return.
* @return The bytes of the groups at the given index.
*/
public com.google.protobuf.ByteString
getGroupsBytes(int index) {
return groups_.getByteString(index);
}
/**
* repeated string groups = 3;
* @param index The index to set the value at.
* @param value The groups to set.
* @return This builder for chaining.
*/
public Builder setGroups(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupsIsMutable();
groups_.set(index, value);
onChanged();
return this;
}
/**
* repeated string groups = 3;
* @param value The groups to add.
* @return This builder for chaining.
*/
public Builder addGroups(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupsIsMutable();
groups_.add(value);
onChanged();
return this;
}
/**
* repeated string groups = 3;
* @param values The groups to add.
* @return This builder for chaining.
*/
public Builder addAllGroups(
java.lang.Iterable values) {
ensureGroupsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, groups_);
onChanged();
return this;
}
/**
* repeated string groups = 3;
* @return This builder for chaining.
*/
public Builder clearGroups() {
groups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string groups = 3;
* @param value The bytes of the groups to add.
* @return This builder for chaining.
*/
public Builder addGroupsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureGroupsIsMutable();
groups_.add(value);
onChanged();
return this;
}
private int limitCombiner_ = 0;
/**
* .prefab.LimitRequest.LimitCombiner limit_combiner = 4;
* @return The enum numeric value on the wire for limitCombiner.
*/
@java.lang.Override public int getLimitCombinerValue() {
return limitCombiner_;
}
/**
* .prefab.LimitRequest.LimitCombiner limit_combiner = 4;
* @param value The enum numeric value on the wire for limitCombiner to set.
* @return This builder for chaining.
*/
public Builder setLimitCombinerValue(int value) {
limitCombiner_ = value;
onChanged();
return this;
}
/**
* .prefab.LimitRequest.LimitCombiner limit_combiner = 4;
* @return The limitCombiner.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner getLimitCombiner() {
@SuppressWarnings("deprecation")
cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner result = cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.valueOf(limitCombiner_);
return result == null ? cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.UNRECOGNIZED : result;
}
/**
* .prefab.LimitRequest.LimitCombiner limit_combiner = 4;
* @param value The limitCombiner to set.
* @return This builder for chaining.
*/
public Builder setLimitCombiner(cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner value) {
if (value == null) {
throw new NullPointerException();
}
limitCombiner_ = value.getNumber();
onChanged();
return this;
}
/**
* .prefab.LimitRequest.LimitCombiner limit_combiner = 4;
* @return This builder for chaining.
*/
public Builder clearLimitCombiner() {
limitCombiner_ = 0;
onChanged();
return this;
}
private boolean allowPartialResponse_ ;
/**
* bool allow_partial_response = 5;
* @return The allowPartialResponse.
*/
@java.lang.Override
public boolean getAllowPartialResponse() {
return allowPartialResponse_;
}
/**
* bool allow_partial_response = 5;
* @param value The allowPartialResponse to set.
* @return This builder for chaining.
*/
public Builder setAllowPartialResponse(boolean value) {
allowPartialResponse_ = value;
onChanged();
return this;
}
/**
* bool allow_partial_response = 5;
* @return This builder for chaining.
*/
public Builder clearAllowPartialResponse() {
allowPartialResponse_ = false;
onChanged();
return this;
}
private int safetyLevel_ = 0;
/**
*
* [default = L4_BEST_EFFORT];
*
*
* .prefab.LimitDefinition.SafetyLevel safety_level = 6;
* @return The enum numeric value on the wire for safetyLevel.
*/
@java.lang.Override public int getSafetyLevelValue() {
return safetyLevel_;
}
/**
*
* [default = L4_BEST_EFFORT];
*
*
* .prefab.LimitDefinition.SafetyLevel safety_level = 6;
* @param value The enum numeric value on the wire for safetyLevel to set.
* @return This builder for chaining.
*/
public Builder setSafetyLevelValue(int value) {
safetyLevel_ = value;
onChanged();
return this;
}
/**
*
* [default = L4_BEST_EFFORT];
*
*
* .prefab.LimitDefinition.SafetyLevel safety_level = 6;
* @return The safetyLevel.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel() {
@SuppressWarnings("deprecation")
cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.valueOf(safetyLevel_);
return result == null ? cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.UNRECOGNIZED : result;
}
/**
*
* [default = L4_BEST_EFFORT];
*
*
* .prefab.LimitDefinition.SafetyLevel safety_level = 6;
* @param value The safetyLevel to set.
* @return This builder for chaining.
*/
public Builder setSafetyLevel(cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel value) {
if (value == null) {
throw new NullPointerException();
}
safetyLevel_ = value.getNumber();
onChanged();
return this;
}
/**
*
* [default = L4_BEST_EFFORT];
*
*
* .prefab.LimitDefinition.SafetyLevel safety_level = 6;
* @return This builder for chaining.
*/
public Builder clearSafetyLevel() {
safetyLevel_ = 0;
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:prefab.LimitRequest)
}
// @@protoc_insertion_point(class_scope:prefab.LimitRequest)
private static final cloud.prefab.domain.Prefab.LimitRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.LimitRequest();
}
public static cloud.prefab.domain.Prefab.LimitRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LimitRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LimitRequest(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 cloud.prefab.domain.Prefab.LimitRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FeatureFlagVariantOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.FeatureFlagVariant)
com.google.protobuf.MessageOrBuilder {
/**
* optional int64 int = 1;
* @return Whether the int field is set.
*/
boolean hasInt();
/**
* optional int64 int = 1;
* @return The int.
*/
long getInt();
/**
* optional string string = 2;
* @return Whether the string field is set.
*/
boolean hasString();
/**
* optional string string = 2;
* @return The string.
*/
java.lang.String getString();
/**
* optional string string = 2;
* @return The bytes for string.
*/
com.google.protobuf.ByteString
getStringBytes();
/**
* optional double double = 3;
* @return Whether the double field is set.
*/
boolean hasDouble();
/**
* optional double double = 3;
* @return The double.
*/
double getDouble();
/**
* optional bool bool = 4;
* @return Whether the bool field is set.
*/
boolean hasBool();
/**
* optional bool bool = 4;
* @return The bool.
*/
boolean getBool();
/**
* string name = 5;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 5;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* string description = 6;
* @return The description.
*/
java.lang.String getDescription();
/**
* string description = 6;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
}
/**
* Protobuf type {@code prefab.FeatureFlagVariant}
*/
public static final class FeatureFlagVariant extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.FeatureFlagVariant)
FeatureFlagVariantOrBuilder {
private static final long serialVersionUID = 0L;
// Use FeatureFlagVariant.newBuilder() to construct.
private FeatureFlagVariant(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private FeatureFlagVariant() {
string_ = "";
name_ = "";
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FeatureFlagVariant();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FeatureFlagVariant(
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: {
bitField0_ |= 0x00000001;
int_ = input.readInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
string_ = s;
break;
}
case 25: {
bitField0_ |= 0x00000004;
double_ = input.readDouble();
break;
}
case 32: {
bitField0_ |= 0x00000008;
bool_ = input.readBool();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
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 cloud.prefab.domain.Prefab.internal_static_prefab_FeatureFlagVariant_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_FeatureFlagVariant_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.FeatureFlagVariant.class, cloud.prefab.domain.Prefab.FeatureFlagVariant.Builder.class);
}
private int bitField0_;
public static final int INT_FIELD_NUMBER = 1;
private long int_;
/**
* optional int64 int = 1;
* @return Whether the int field is set.
*/
@java.lang.Override
public boolean hasInt() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 int = 1;
* @return The int.
*/
@java.lang.Override
public long getInt() {
return int_;
}
public static final int STRING_FIELD_NUMBER = 2;
private volatile java.lang.Object string_;
/**
* optional string string = 2;
* @return Whether the string field is set.
*/
@java.lang.Override
public boolean hasString() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string string = 2;
* @return The string.
*/
@java.lang.Override
public java.lang.String getString() {
java.lang.Object ref = string_;
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();
string_ = s;
return s;
}
}
/**
* optional string string = 2;
* @return The bytes for string.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStringBytes() {
java.lang.Object ref = string_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
string_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DOUBLE_FIELD_NUMBER = 3;
private double double_;
/**
* optional double double = 3;
* @return Whether the double field is set.
*/
@java.lang.Override
public boolean hasDouble() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional double double = 3;
* @return The double.
*/
@java.lang.Override
public double getDouble() {
return double_;
}
public static final int BOOL_FIELD_NUMBER = 4;
private boolean bool_;
/**
* optional bool bool = 4;
* @return Whether the bool field is set.
*/
@java.lang.Override
public boolean hasBool() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bool bool = 4;
* @return The bool.
*/
@java.lang.Override
public boolean getBool() {
return bool_;
}
public static final int NAME_FIELD_NUMBER = 5;
private volatile java.lang.Object name_;
/**
* string name = 5;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* string name = 5;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 6;
private volatile java.lang.Object description_;
/**
* string description = 6;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
* string description = 6;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(1, int_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, string_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeDouble(3, double_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(4, bool_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, int_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, string_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, double_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, bool_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_);
}
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 cloud.prefab.domain.Prefab.FeatureFlagVariant)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.FeatureFlagVariant other = (cloud.prefab.domain.Prefab.FeatureFlagVariant) obj;
if (hasInt() != other.hasInt()) return false;
if (hasInt()) {
if (getInt()
!= other.getInt()) return false;
}
if (hasString() != other.hasString()) return false;
if (hasString()) {
if (!getString()
.equals(other.getString())) return false;
}
if (hasDouble() != other.hasDouble()) return false;
if (hasDouble()) {
if (java.lang.Double.doubleToLongBits(getDouble())
!= java.lang.Double.doubleToLongBits(
other.getDouble())) return false;
}
if (hasBool() != other.hasBool()) return false;
if (hasBool()) {
if (getBool()
!= other.getBool()) return false;
}
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) 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 (hasInt()) {
hash = (37 * hash) + INT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInt());
}
if (hasString()) {
hash = (37 * hash) + STRING_FIELD_NUMBER;
hash = (53 * hash) + getString().hashCode();
}
if (hasDouble()) {
hash = (37 * hash) + DOUBLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDouble()));
}
if (hasBool()) {
hash = (37 * hash) + BOOL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBool());
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.FeatureFlagVariant parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.FeatureFlagVariant parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.FeatureFlagVariant parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.FeatureFlagVariant parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.FeatureFlagVariant parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.FeatureFlagVariant parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.FeatureFlagVariant parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.FeatureFlagVariant 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 cloud.prefab.domain.Prefab.FeatureFlagVariant parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.FeatureFlagVariant 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 cloud.prefab.domain.Prefab.FeatureFlagVariant parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.FeatureFlagVariant 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(cloud.prefab.domain.Prefab.FeatureFlagVariant 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 prefab.FeatureFlagVariant}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.FeatureFlagVariant)
cloud.prefab.domain.Prefab.FeatureFlagVariantOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_FeatureFlagVariant_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_FeatureFlagVariant_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.FeatureFlagVariant.class, cloud.prefab.domain.Prefab.FeatureFlagVariant.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.FeatureFlagVariant.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();
int_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
string_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
double_ = 0D;
bitField0_ = (bitField0_ & ~0x00000004);
bool_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
name_ = "";
description_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_FeatureFlagVariant_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.FeatureFlagVariant getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.FeatureFlagVariant.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.FeatureFlagVariant build() {
cloud.prefab.domain.Prefab.FeatureFlagVariant result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.FeatureFlagVariant buildPartial() {
cloud.prefab.domain.Prefab.FeatureFlagVariant result = new cloud.prefab.domain.Prefab.FeatureFlagVariant(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.int_ = int_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.string_ = string_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.double_ = double_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.bool_ = bool_;
to_bitField0_ |= 0x00000008;
}
result.name_ = name_;
result.description_ = description_;
result.bitField0_ = to_bitField0_;
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 cloud.prefab.domain.Prefab.FeatureFlagVariant) {
return mergeFrom((cloud.prefab.domain.Prefab.FeatureFlagVariant)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.FeatureFlagVariant other) {
if (other == cloud.prefab.domain.Prefab.FeatureFlagVariant.getDefaultInstance()) return this;
if (other.hasInt()) {
setInt(other.getInt());
}
if (other.hasString()) {
bitField0_ |= 0x00000002;
string_ = other.string_;
onChanged();
}
if (other.hasDouble()) {
setDouble(other.getDouble());
}
if (other.hasBool()) {
setBool(other.getBool());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
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 {
cloud.prefab.domain.Prefab.FeatureFlagVariant parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cloud.prefab.domain.Prefab.FeatureFlagVariant) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long int_ ;
/**
* optional int64 int = 1;
* @return Whether the int field is set.
*/
@java.lang.Override
public boolean hasInt() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 int = 1;
* @return The int.
*/
@java.lang.Override
public long getInt() {
return int_;
}
/**
* optional int64 int = 1;
* @param value The int to set.
* @return This builder for chaining.
*/
public Builder setInt(long value) {
bitField0_ |= 0x00000001;
int_ = value;
onChanged();
return this;
}
/**
* optional int64 int = 1;
* @return This builder for chaining.
*/
public Builder clearInt() {
bitField0_ = (bitField0_ & ~0x00000001);
int_ = 0L;
onChanged();
return this;
}
private java.lang.Object string_ = "";
/**
* optional string string = 2;
* @return Whether the string field is set.
*/
public boolean hasString() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string string = 2;
* @return The string.
*/
public java.lang.String getString() {
java.lang.Object ref = string_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
string_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string string = 2;
* @return The bytes for string.
*/
public com.google.protobuf.ByteString
getStringBytes() {
java.lang.Object ref = string_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
string_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string string = 2;
* @param value The string to set.
* @return This builder for chaining.
*/
public Builder setString(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
string_ = value;
onChanged();
return this;
}
/**
* optional string string = 2;
* @return This builder for chaining.
*/
public Builder clearString() {
bitField0_ = (bitField0_ & ~0x00000002);
string_ = getDefaultInstance().getString();
onChanged();
return this;
}
/**
* optional string string = 2;
* @param value The bytes for string to set.
* @return This builder for chaining.
*/
public Builder setStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
string_ = value;
onChanged();
return this;
}
private double double_ ;
/**
* optional double double = 3;
* @return Whether the double field is set.
*/
@java.lang.Override
public boolean hasDouble() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional double double = 3;
* @return The double.
*/
@java.lang.Override
public double getDouble() {
return double_;
}
/**
* optional double double = 3;
* @param value The double to set.
* @return This builder for chaining.
*/
public Builder setDouble(double value) {
bitField0_ |= 0x00000004;
double_ = value;
onChanged();
return this;
}
/**
* optional double double = 3;
* @return This builder for chaining.
*/
public Builder clearDouble() {
bitField0_ = (bitField0_ & ~0x00000004);
double_ = 0D;
onChanged();
return this;
}
private boolean bool_ ;
/**
* optional bool bool = 4;
* @return Whether the bool field is set.
*/
@java.lang.Override
public boolean hasBool() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bool bool = 4;
* @return The bool.
*/
@java.lang.Override
public boolean getBool() {
return bool_;
}
/**
* optional bool bool = 4;
* @param value The bool to set.
* @return This builder for chaining.
*/
public Builder setBool(boolean value) {
bitField0_ |= 0x00000008;
bool_ = value;
onChanged();
return this;
}
/**
* optional bool bool = 4;
* @return This builder for chaining.
*/
public Builder clearBool() {
bitField0_ = (bitField0_ & ~0x00000008);
bool_ = false;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 5;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 5;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 5;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 5;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 5;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
* string description = 6;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string description = 6;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string description = 6;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
* string description = 6;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
* string description = 6;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
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:prefab.FeatureFlagVariant)
}
// @@protoc_insertion_point(class_scope:prefab.FeatureFlagVariant)
private static final cloud.prefab.domain.Prefab.FeatureFlagVariant DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.FeatureFlagVariant();
}
public static cloud.prefab.domain.Prefab.FeatureFlagVariant getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FeatureFlagVariant parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FeatureFlagVariant(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 cloud.prefab.domain.Prefab.FeatureFlagVariant getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CriteriaOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.Criteria)
com.google.protobuf.MessageOrBuilder {
/**
* string property = 1;
* @return The property.
*/
java.lang.String getProperty();
/**
* string property = 1;
* @return The bytes for property.
*/
com.google.protobuf.ByteString
getPropertyBytes();
/**
* .prefab.Criteria.CriteriaOperator operator = 2;
* @return The enum numeric value on the wire for operator.
*/
int getOperatorValue();
/**
* .prefab.Criteria.CriteriaOperator operator = 2;
* @return The operator.
*/
cloud.prefab.domain.Prefab.Criteria.CriteriaOperator getOperator();
/**
*
* ok to be string here?
*
*
* repeated string values = 3;
* @return A list containing the values.
*/
java.util.List
getValuesList();
/**
*
* ok to be string here?
*
*
* repeated string values = 3;
* @return The count of values.
*/
int getValuesCount();
/**
*
* ok to be string here?
*
*
* repeated string values = 3;
* @param index The index of the element to return.
* @return The values at the given index.
*/
java.lang.String getValues(int index);
/**
*
* ok to be string here?
*
*
* repeated string values = 3;
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
com.google.protobuf.ByteString
getValuesBytes(int index);
}
/**
* Protobuf type {@code prefab.Criteria}
*/
public static final class Criteria extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.Criteria)
CriteriaOrBuilder {
private static final long serialVersionUID = 0L;
// Use Criteria.newBuilder() to construct.
private Criteria(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Criteria() {
property_ = "";
operator_ = 0;
values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Criteria();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Criteria(
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: {
java.lang.String s = input.readStringRequireUtf8();
property_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
operator_ = rawValue;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
values_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
values_.add(s);
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
values_ = values_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Criteria_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Criteria_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Criteria.class, cloud.prefab.domain.Prefab.Criteria.Builder.class);
}
/**
* Protobuf enum {@code prefab.Criteria.CriteriaOperator}
*/
public enum CriteriaOperator
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
* NOT_SET = 0;
*/
public static final int NOT_SET_VALUE = 0;
/**
* LOOKUP_KEY_IN = 1;
*/
public static final int LOOKUP_KEY_IN_VALUE = 1;
/**
* LOOKUP_KEY_NOT_IN = 2;
*/
public static final int LOOKUP_KEY_NOT_IN_VALUE = 2;
/**
* IN_SEG = 3;
*/
public static final int IN_SEG_VALUE = 3;
/**
* NOT_IN_SEG = 4;
*/
public static final int NOT_IN_SEG_VALUE = 4;
/**
* ALWAYS_TRUE = 5;
*/
public static final int ALWAYS_TRUE_VALUE = 5;
/**
* PROP_IS_ONE_OF = 6;
*/
public static final int PROP_IS_ONE_OF_VALUE = 6;
/**
* PROP_IS_NOT_ONE_OF = 7;
*/
public static final int PROP_IS_NOT_ONE_OF_VALUE = 7;
/**
* PROP_ENDS_WITH_ONE_OF = 8;
*/
public static final int PROP_ENDS_WITH_ONE_OF_VALUE = 8;
/**
* PROP_DOES_NOT_END_WITH_ONE_OF = 9;
*/
public static final int PROP_DOES_NOT_END_WITH_ONE_OF_VALUE = 9;
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 CriteriaOperator 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 CriteriaOperator forNumber(int value) {
switch (value) {
case 0: return NOT_SET;
case 1: return LOOKUP_KEY_IN;
case 2: return LOOKUP_KEY_NOT_IN;
case 3: return IN_SEG;
case 4: return NOT_IN_SEG;
case 5: return ALWAYS_TRUE;
case 6: return PROP_IS_ONE_OF;
case 7: return PROP_IS_NOT_ONE_OF;
case 8: return PROP_ENDS_WITH_ONE_OF;
case 9: return PROP_DOES_NOT_END_WITH_ONE_OF;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CriteriaOperator> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CriteriaOperator findValueByNumber(int number) {
return CriteriaOperator.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 cloud.prefab.domain.Prefab.Criteria.getDescriptor().getEnumTypes().get(0);
}
private static final CriteriaOperator[] VALUES = values();
public static CriteriaOperator 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 CriteriaOperator(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:prefab.Criteria.CriteriaOperator)
}
public static final int PROPERTY_FIELD_NUMBER = 1;
private volatile java.lang.Object property_;
/**
* string property = 1;
* @return The property.
*/
@java.lang.Override
public java.lang.String getProperty() {
java.lang.Object ref = property_;
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();
property_ = s;
return s;
}
}
/**
* string property = 1;
* @return The bytes for property.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPropertyBytes() {
java.lang.Object ref = property_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
property_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPERATOR_FIELD_NUMBER = 2;
private int operator_;
/**
* .prefab.Criteria.CriteriaOperator operator = 2;
* @return The enum numeric value on the wire for operator.
*/
@java.lang.Override public int getOperatorValue() {
return operator_;
}
/**
* .prefab.Criteria.CriteriaOperator operator = 2;
* @return The operator.
*/
@java.lang.Override public cloud.prefab.domain.Prefab.Criteria.CriteriaOperator getOperator() {
@SuppressWarnings("deprecation")
cloud.prefab.domain.Prefab.Criteria.CriteriaOperator result = cloud.prefab.domain.Prefab.Criteria.CriteriaOperator.valueOf(operator_);
return result == null ? cloud.prefab.domain.Prefab.Criteria.CriteriaOperator.UNRECOGNIZED : result;
}
public static final int VALUES_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList values_;
/**
*
* ok to be string here?
*
*
* repeated string values = 3;
* @return A list containing the values.
*/
public com.google.protobuf.ProtocolStringList
getValuesList() {
return values_;
}
/**
*
* ok to be string here?
*
*
* repeated string values = 3;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
*
* ok to be string here?
*
*
* repeated string values = 3;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public java.lang.String getValues(int index) {
return values_.get(index);
}
/**
*
* ok to be string here?
*
*
* repeated string values = 3;
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
public com.google.protobuf.ByteString
getValuesBytes(int index) {
return values_.getByteString(index);
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_);
}
if (operator_ != cloud.prefab.domain.Prefab.Criteria.CriteriaOperator.NOT_SET.getNumber()) {
output.writeEnum(2, operator_);
}
for (int i = 0; i < values_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, values_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_);
}
if (operator_ != cloud.prefab.domain.Prefab.Criteria.CriteriaOperator.NOT_SET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, operator_);
}
{
int dataSize = 0;
for (int i = 0; i < values_.size(); i++) {
dataSize += computeStringSizeNoTag(values_.getRaw(i));
}
size += dataSize;
size += 1 * getValuesList().size();
}
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 cloud.prefab.domain.Prefab.Criteria)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.Criteria other = (cloud.prefab.domain.Prefab.Criteria) obj;
if (!getProperty()
.equals(other.getProperty())) return false;
if (operator_ != other.operator_) return false;
if (!getValuesList()
.equals(other.getValuesList())) 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) + PROPERTY_FIELD_NUMBER;
hash = (53 * hash) + getProperty().hashCode();
hash = (37 * hash) + OPERATOR_FIELD_NUMBER;
hash = (53 * hash) + operator_;
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.Criteria parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Criteria parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.Criteria parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Criteria parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.Criteria parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Criteria parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.Criteria parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Criteria 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 cloud.prefab.domain.Prefab.Criteria parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Criteria 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 cloud.prefab.domain.Prefab.Criteria parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Criteria 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(cloud.prefab.domain.Prefab.Criteria 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 prefab.Criteria}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.Criteria)
cloud.prefab.domain.Prefab.CriteriaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Criteria_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Criteria_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Criteria.class, cloud.prefab.domain.Prefab.Criteria.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.Criteria.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();
property_ = "";
operator_ = 0;
values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Criteria_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Criteria getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.Criteria.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Criteria build() {
cloud.prefab.domain.Prefab.Criteria result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Criteria buildPartial() {
cloud.prefab.domain.Prefab.Criteria result = new cloud.prefab.domain.Prefab.Criteria(this);
int from_bitField0_ = bitField0_;
result.property_ = property_;
result.operator_ = operator_;
if (((bitField0_ & 0x00000001) != 0)) {
values_ = values_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.values_ = values_;
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 cloud.prefab.domain.Prefab.Criteria) {
return mergeFrom((cloud.prefab.domain.Prefab.Criteria)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.Criteria other) {
if (other == cloud.prefab.domain.Prefab.Criteria.getDefaultInstance()) return this;
if (!other.getProperty().isEmpty()) {
property_ = other.property_;
onChanged();
}
if (other.operator_ != 0) {
setOperatorValue(other.getOperatorValue());
}
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
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 {
cloud.prefab.domain.Prefab.Criteria parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cloud.prefab.domain.Prefab.Criteria) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object property_ = "";
/**
* string property = 1;
* @return The property.
*/
public java.lang.String getProperty() {
java.lang.Object ref = property_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
property_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string property = 1;
* @return The bytes for property.
*/
public com.google.protobuf.ByteString
getPropertyBytes() {
java.lang.Object ref = property_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
property_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string property = 1;
* @param value The property to set.
* @return This builder for chaining.
*/
public Builder setProperty(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
property_ = value;
onChanged();
return this;
}
/**
* string property = 1;
* @return This builder for chaining.
*/
public Builder clearProperty() {
property_ = getDefaultInstance().getProperty();
onChanged();
return this;
}
/**
* string property = 1;
* @param value The bytes for property to set.
* @return This builder for chaining.
*/
public Builder setPropertyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
property_ = value;
onChanged();
return this;
}
private int operator_ = 0;
/**
* .prefab.Criteria.CriteriaOperator operator = 2;
* @return The enum numeric value on the wire for operator.
*/
@java.lang.Override public int getOperatorValue() {
return operator_;
}
/**
* .prefab.Criteria.CriteriaOperator operator = 2;
* @param value The enum numeric value on the wire for operator to set.
* @return This builder for chaining.
*/
public Builder setOperatorValue(int value) {
operator_ = value;
onChanged();
return this;
}
/**
* .prefab.Criteria.CriteriaOperator operator = 2;
* @return The operator.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.Criteria.CriteriaOperator getOperator() {
@SuppressWarnings("deprecation")
cloud.prefab.domain.Prefab.Criteria.CriteriaOperator result = cloud.prefab.domain.Prefab.Criteria.CriteriaOperator.valueOf(operator_);
return result == null ? cloud.prefab.domain.Prefab.Criteria.CriteriaOperator.UNRECOGNIZED : result;
}
/**
* .prefab.Criteria.CriteriaOperator operator = 2;
* @param value The operator to set.
* @return This builder for chaining.
*/
public Builder setOperator(cloud.prefab.domain.Prefab.Criteria.CriteriaOperator value) {
if (value == null) {
throw new NullPointerException();
}
operator_ = value.getNumber();
onChanged();
return this;
}
/**
* .prefab.Criteria.CriteriaOperator operator = 2;
* @return This builder for chaining.
*/
public Builder clearOperator() {
operator_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
values_ = new com.google.protobuf.LazyStringArrayList(values_);
bitField0_ |= 0x00000001;
}
}
/**
*
* ok to be string here?
*
*
* repeated string values = 3;
* @return A list containing the values.
*/
public com.google.protobuf.ProtocolStringList
getValuesList() {
return values_.getUnmodifiableView();
}
/**
*
* ok to be string here?
*
*
* repeated string values = 3;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
*
* ok to be string here?
*
*
* repeated string values = 3;
* @param index The index of the element to return.
* @return The values at the given index.
*/
public java.lang.String getValues(int index) {
return values_.get(index);
}
/**
*
* ok to be string here?
*
*
* repeated string values = 3;
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
public com.google.protobuf.ByteString
getValuesBytes(int index) {
return values_.getByteString(index);
}
/**
*
* ok to be string here?
*
*
* repeated string values = 3;
* @param index The index to set the value at.
* @param value The values to set.
* @return This builder for chaining.
*/
public Builder setValues(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.set(index, value);
onChanged();
return this;
}
/**
*
* ok to be string here?
*
*
* repeated string values = 3;
* @param value The values to add.
* @return This builder for chaining.
*/
public Builder addValues(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(value);
onChanged();
return this;
}
/**
*
* ok to be string here?
*
*
* repeated string values = 3;
* @param values The values to add.
* @return This builder for chaining.
*/
public Builder addAllValues(
java.lang.Iterable values) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
return this;
}
/**
*
*
* repeated string values = 3;
* @param value The bytes of the values to add.
* @return This builder for chaining.
*/
public Builder addValuesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureValuesIsMutable();
values_.add(value);
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:prefab.Criteria)
}
// @@protoc_insertion_point(class_scope:prefab.Criteria)
private static final cloud.prefab.domain.Prefab.Criteria DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Criteria();
}
public static cloud.prefab.domain.Prefab.Criteria getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Criteria parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Criteria(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 cloud.prefab.domain.Prefab.Criteria getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RuleOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.Rule)
com.google.protobuf.MessageOrBuilder {
/**
* .prefab.Criteria criteria = 1;
* @return Whether the criteria field is set.
*/
boolean hasCriteria();
/**
* .prefab.Criteria criteria = 1;
* @return The criteria.
*/
cloud.prefab.domain.Prefab.Criteria getCriteria();
/**
* .prefab.Criteria criteria = 1;
*/
cloud.prefab.domain.Prefab.CriteriaOrBuilder getCriteriaOrBuilder();
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
java.util.List
getVariantWeightsList();
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
cloud.prefab.domain.Prefab.VariantWeight getVariantWeights(int index);
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
int getVariantWeightsCount();
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
java.util.List
getVariantWeightsOrBuilderList();
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
cloud.prefab.domain.Prefab.VariantWeightOrBuilder getVariantWeightsOrBuilder(
int index);
}
/**
* Protobuf type {@code prefab.Rule}
*/
public static final class Rule extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.Rule)
RuleOrBuilder {
private static final long serialVersionUID = 0L;
// Use Rule.newBuilder() to construct.
private Rule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Rule() {
variantWeights_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Rule();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Rule(
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: {
cloud.prefab.domain.Prefab.Criteria.Builder subBuilder = null;
if (criteria_ != null) {
subBuilder = criteria_.toBuilder();
}
criteria_ = input.readMessage(cloud.prefab.domain.Prefab.Criteria.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(criteria_);
criteria_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
variantWeights_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
variantWeights_.add(
input.readMessage(cloud.prefab.domain.Prefab.VariantWeight.parser(), extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
variantWeights_ = java.util.Collections.unmodifiableList(variantWeights_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Rule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Rule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Rule.class, cloud.prefab.domain.Prefab.Rule.Builder.class);
}
public static final int CRITERIA_FIELD_NUMBER = 1;
private cloud.prefab.domain.Prefab.Criteria criteria_;
/**
* .prefab.Criteria criteria = 1;
* @return Whether the criteria field is set.
*/
@java.lang.Override
public boolean hasCriteria() {
return criteria_ != null;
}
/**
* .prefab.Criteria criteria = 1;
* @return The criteria.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.Criteria getCriteria() {
return criteria_ == null ? cloud.prefab.domain.Prefab.Criteria.getDefaultInstance() : criteria_;
}
/**
* .prefab.Criteria criteria = 1;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.CriteriaOrBuilder getCriteriaOrBuilder() {
return getCriteria();
}
public static final int VARIANT_WEIGHTS_FIELD_NUMBER = 2;
private java.util.List variantWeights_;
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
@java.lang.Override
public java.util.List getVariantWeightsList() {
return variantWeights_;
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
@java.lang.Override
public java.util.List
getVariantWeightsOrBuilderList() {
return variantWeights_;
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
@java.lang.Override
public int getVariantWeightsCount() {
return variantWeights_.size();
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.VariantWeight getVariantWeights(int index) {
return variantWeights_.get(index);
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.VariantWeightOrBuilder getVariantWeightsOrBuilder(
int index) {
return variantWeights_.get(index);
}
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 (criteria_ != null) {
output.writeMessage(1, getCriteria());
}
for (int i = 0; i < variantWeights_.size(); i++) {
output.writeMessage(2, variantWeights_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (criteria_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCriteria());
}
for (int i = 0; i < variantWeights_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, variantWeights_.get(i));
}
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 cloud.prefab.domain.Prefab.Rule)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.Rule other = (cloud.prefab.domain.Prefab.Rule) obj;
if (hasCriteria() != other.hasCriteria()) return false;
if (hasCriteria()) {
if (!getCriteria()
.equals(other.getCriteria())) return false;
}
if (!getVariantWeightsList()
.equals(other.getVariantWeightsList())) 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 (hasCriteria()) {
hash = (37 * hash) + CRITERIA_FIELD_NUMBER;
hash = (53 * hash) + getCriteria().hashCode();
}
if (getVariantWeightsCount() > 0) {
hash = (37 * hash) + VARIANT_WEIGHTS_FIELD_NUMBER;
hash = (53 * hash) + getVariantWeightsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.Rule parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Rule parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.Rule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Rule parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.Rule parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Rule parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.Rule parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Rule 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 cloud.prefab.domain.Prefab.Rule parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Rule 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 cloud.prefab.domain.Prefab.Rule parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Rule 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(cloud.prefab.domain.Prefab.Rule 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 prefab.Rule}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.Rule)
cloud.prefab.domain.Prefab.RuleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Rule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Rule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Rule.class, cloud.prefab.domain.Prefab.Rule.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.Rule.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getVariantWeightsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (criteriaBuilder_ == null) {
criteria_ = null;
} else {
criteria_ = null;
criteriaBuilder_ = null;
}
if (variantWeightsBuilder_ == null) {
variantWeights_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
variantWeightsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Rule_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Rule getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.Rule.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Rule build() {
cloud.prefab.domain.Prefab.Rule result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Rule buildPartial() {
cloud.prefab.domain.Prefab.Rule result = new cloud.prefab.domain.Prefab.Rule(this);
int from_bitField0_ = bitField0_;
if (criteriaBuilder_ == null) {
result.criteria_ = criteria_;
} else {
result.criteria_ = criteriaBuilder_.build();
}
if (variantWeightsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
variantWeights_ = java.util.Collections.unmodifiableList(variantWeights_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.variantWeights_ = variantWeights_;
} else {
result.variantWeights_ = variantWeightsBuilder_.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 cloud.prefab.domain.Prefab.Rule) {
return mergeFrom((cloud.prefab.domain.Prefab.Rule)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.Rule other) {
if (other == cloud.prefab.domain.Prefab.Rule.getDefaultInstance()) return this;
if (other.hasCriteria()) {
mergeCriteria(other.getCriteria());
}
if (variantWeightsBuilder_ == null) {
if (!other.variantWeights_.isEmpty()) {
if (variantWeights_.isEmpty()) {
variantWeights_ = other.variantWeights_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureVariantWeightsIsMutable();
variantWeights_.addAll(other.variantWeights_);
}
onChanged();
}
} else {
if (!other.variantWeights_.isEmpty()) {
if (variantWeightsBuilder_.isEmpty()) {
variantWeightsBuilder_.dispose();
variantWeightsBuilder_ = null;
variantWeights_ = other.variantWeights_;
bitField0_ = (bitField0_ & ~0x00000001);
variantWeightsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getVariantWeightsFieldBuilder() : null;
} else {
variantWeightsBuilder_.addAllMessages(other.variantWeights_);
}
}
}
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 {
cloud.prefab.domain.Prefab.Rule parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cloud.prefab.domain.Prefab.Rule) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private cloud.prefab.domain.Prefab.Criteria criteria_;
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.Criteria, cloud.prefab.domain.Prefab.Criteria.Builder, cloud.prefab.domain.Prefab.CriteriaOrBuilder> criteriaBuilder_;
/**
* .prefab.Criteria criteria = 1;
* @return Whether the criteria field is set.
*/
public boolean hasCriteria() {
return criteriaBuilder_ != null || criteria_ != null;
}
/**
* .prefab.Criteria criteria = 1;
* @return The criteria.
*/
public cloud.prefab.domain.Prefab.Criteria getCriteria() {
if (criteriaBuilder_ == null) {
return criteria_ == null ? cloud.prefab.domain.Prefab.Criteria.getDefaultInstance() : criteria_;
} else {
return criteriaBuilder_.getMessage();
}
}
/**
* .prefab.Criteria criteria = 1;
*/
public Builder setCriteria(cloud.prefab.domain.Prefab.Criteria value) {
if (criteriaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criteria_ = value;
onChanged();
} else {
criteriaBuilder_.setMessage(value);
}
return this;
}
/**
* .prefab.Criteria criteria = 1;
*/
public Builder setCriteria(
cloud.prefab.domain.Prefab.Criteria.Builder builderForValue) {
if (criteriaBuilder_ == null) {
criteria_ = builderForValue.build();
onChanged();
} else {
criteriaBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .prefab.Criteria criteria = 1;
*/
public Builder mergeCriteria(cloud.prefab.domain.Prefab.Criteria value) {
if (criteriaBuilder_ == null) {
if (criteria_ != null) {
criteria_ =
cloud.prefab.domain.Prefab.Criteria.newBuilder(criteria_).mergeFrom(value).buildPartial();
} else {
criteria_ = value;
}
onChanged();
} else {
criteriaBuilder_.mergeFrom(value);
}
return this;
}
/**
* .prefab.Criteria criteria = 1;
*/
public Builder clearCriteria() {
if (criteriaBuilder_ == null) {
criteria_ = null;
onChanged();
} else {
criteria_ = null;
criteriaBuilder_ = null;
}
return this;
}
/**
* .prefab.Criteria criteria = 1;
*/
public cloud.prefab.domain.Prefab.Criteria.Builder getCriteriaBuilder() {
onChanged();
return getCriteriaFieldBuilder().getBuilder();
}
/**
* .prefab.Criteria criteria = 1;
*/
public cloud.prefab.domain.Prefab.CriteriaOrBuilder getCriteriaOrBuilder() {
if (criteriaBuilder_ != null) {
return criteriaBuilder_.getMessageOrBuilder();
} else {
return criteria_ == null ?
cloud.prefab.domain.Prefab.Criteria.getDefaultInstance() : criteria_;
}
}
/**
* .prefab.Criteria criteria = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.Criteria, cloud.prefab.domain.Prefab.Criteria.Builder, cloud.prefab.domain.Prefab.CriteriaOrBuilder>
getCriteriaFieldBuilder() {
if (criteriaBuilder_ == null) {
criteriaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.Criteria, cloud.prefab.domain.Prefab.Criteria.Builder, cloud.prefab.domain.Prefab.CriteriaOrBuilder>(
getCriteria(),
getParentForChildren(),
isClean());
criteria_ = null;
}
return criteriaBuilder_;
}
private java.util.List variantWeights_ =
java.util.Collections.emptyList();
private void ensureVariantWeightsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
variantWeights_ = new java.util.ArrayList(variantWeights_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.VariantWeight, cloud.prefab.domain.Prefab.VariantWeight.Builder, cloud.prefab.domain.Prefab.VariantWeightOrBuilder> variantWeightsBuilder_;
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
public java.util.List getVariantWeightsList() {
if (variantWeightsBuilder_ == null) {
return java.util.Collections.unmodifiableList(variantWeights_);
} else {
return variantWeightsBuilder_.getMessageList();
}
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
public int getVariantWeightsCount() {
if (variantWeightsBuilder_ == null) {
return variantWeights_.size();
} else {
return variantWeightsBuilder_.getCount();
}
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
public cloud.prefab.domain.Prefab.VariantWeight getVariantWeights(int index) {
if (variantWeightsBuilder_ == null) {
return variantWeights_.get(index);
} else {
return variantWeightsBuilder_.getMessage(index);
}
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
public Builder setVariantWeights(
int index, cloud.prefab.domain.Prefab.VariantWeight value) {
if (variantWeightsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVariantWeightsIsMutable();
variantWeights_.set(index, value);
onChanged();
} else {
variantWeightsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
public Builder setVariantWeights(
int index, cloud.prefab.domain.Prefab.VariantWeight.Builder builderForValue) {
if (variantWeightsBuilder_ == null) {
ensureVariantWeightsIsMutable();
variantWeights_.set(index, builderForValue.build());
onChanged();
} else {
variantWeightsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
public Builder addVariantWeights(cloud.prefab.domain.Prefab.VariantWeight value) {
if (variantWeightsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVariantWeightsIsMutable();
variantWeights_.add(value);
onChanged();
} else {
variantWeightsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
public Builder addVariantWeights(
int index, cloud.prefab.domain.Prefab.VariantWeight value) {
if (variantWeightsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVariantWeightsIsMutable();
variantWeights_.add(index, value);
onChanged();
} else {
variantWeightsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
public Builder addVariantWeights(
cloud.prefab.domain.Prefab.VariantWeight.Builder builderForValue) {
if (variantWeightsBuilder_ == null) {
ensureVariantWeightsIsMutable();
variantWeights_.add(builderForValue.build());
onChanged();
} else {
variantWeightsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
public Builder addVariantWeights(
int index, cloud.prefab.domain.Prefab.VariantWeight.Builder builderForValue) {
if (variantWeightsBuilder_ == null) {
ensureVariantWeightsIsMutable();
variantWeights_.add(index, builderForValue.build());
onChanged();
} else {
variantWeightsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
public Builder addAllVariantWeights(
java.lang.Iterable values) {
if (variantWeightsBuilder_ == null) {
ensureVariantWeightsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, variantWeights_);
onChanged();
} else {
variantWeightsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
public Builder clearVariantWeights() {
if (variantWeightsBuilder_ == null) {
variantWeights_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
variantWeightsBuilder_.clear();
}
return this;
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
public Builder removeVariantWeights(int index) {
if (variantWeightsBuilder_ == null) {
ensureVariantWeightsIsMutable();
variantWeights_.remove(index);
onChanged();
} else {
variantWeightsBuilder_.remove(index);
}
return this;
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
public cloud.prefab.domain.Prefab.VariantWeight.Builder getVariantWeightsBuilder(
int index) {
return getVariantWeightsFieldBuilder().getBuilder(index);
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
public cloud.prefab.domain.Prefab.VariantWeightOrBuilder getVariantWeightsOrBuilder(
int index) {
if (variantWeightsBuilder_ == null) {
return variantWeights_.get(index); } else {
return variantWeightsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
public java.util.List
getVariantWeightsOrBuilderList() {
if (variantWeightsBuilder_ != null) {
return variantWeightsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(variantWeights_);
}
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
public cloud.prefab.domain.Prefab.VariantWeight.Builder addVariantWeightsBuilder() {
return getVariantWeightsFieldBuilder().addBuilder(
cloud.prefab.domain.Prefab.VariantWeight.getDefaultInstance());
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
public cloud.prefab.domain.Prefab.VariantWeight.Builder addVariantWeightsBuilder(
int index) {
return getVariantWeightsFieldBuilder().addBuilder(
index, cloud.prefab.domain.Prefab.VariantWeight.getDefaultInstance());
}
/**
* repeated .prefab.VariantWeight variant_weights = 2;
*/
public java.util.List
getVariantWeightsBuilderList() {
return getVariantWeightsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.VariantWeight, cloud.prefab.domain.Prefab.VariantWeight.Builder, cloud.prefab.domain.Prefab.VariantWeightOrBuilder>
getVariantWeightsFieldBuilder() {
if (variantWeightsBuilder_ == null) {
variantWeightsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.VariantWeight, cloud.prefab.domain.Prefab.VariantWeight.Builder, cloud.prefab.domain.Prefab.VariantWeightOrBuilder>(
variantWeights_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
variantWeights_ = null;
}
return variantWeightsBuilder_;
}
@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:prefab.Rule)
}
// @@protoc_insertion_point(class_scope:prefab.Rule)
private static final cloud.prefab.domain.Prefab.Rule DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Rule();
}
public static cloud.prefab.domain.Prefab.Rule getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Rule parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Rule(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 cloud.prefab.domain.Prefab.Rule getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SegmentOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.Segment)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .prefab.Criteria criterion = 1;
*/
java.util.List
getCriterionList();
/**
* repeated .prefab.Criteria criterion = 1;
*/
cloud.prefab.domain.Prefab.Criteria getCriterion(int index);
/**
* repeated .prefab.Criteria criterion = 1;
*/
int getCriterionCount();
/**
* repeated .prefab.Criteria criterion = 1;
*/
java.util.List
getCriterionOrBuilderList();
/**
* repeated .prefab.Criteria criterion = 1;
*/
cloud.prefab.domain.Prefab.CriteriaOrBuilder getCriterionOrBuilder(
int index);
}
/**
* Protobuf type {@code prefab.Segment}
*/
public static final class Segment extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.Segment)
SegmentOrBuilder {
private static final long serialVersionUID = 0L;
// Use Segment.newBuilder() to construct.
private Segment(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Segment() {
criterion_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Segment();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Segment(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
criterion_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
criterion_.add(
input.readMessage(cloud.prefab.domain.Prefab.Criteria.parser(), extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
criterion_ = java.util.Collections.unmodifiableList(criterion_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Segment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Segment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Segment.class, cloud.prefab.domain.Prefab.Segment.Builder.class);
}
public static final int CRITERION_FIELD_NUMBER = 1;
private java.util.List criterion_;
/**
* repeated .prefab.Criteria criterion = 1;
*/
@java.lang.Override
public java.util.List getCriterionList() {
return criterion_;
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
@java.lang.Override
public java.util.List
getCriterionOrBuilderList() {
return criterion_;
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
@java.lang.Override
public int getCriterionCount() {
return criterion_.size();
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.Criteria getCriterion(int index) {
return criterion_.get(index);
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.CriteriaOrBuilder getCriterionOrBuilder(
int index) {
return criterion_.get(index);
}
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 {
for (int i = 0; i < criterion_.size(); i++) {
output.writeMessage(1, criterion_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < criterion_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, criterion_.get(i));
}
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 cloud.prefab.domain.Prefab.Segment)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.Segment other = (cloud.prefab.domain.Prefab.Segment) obj;
if (!getCriterionList()
.equals(other.getCriterionList())) 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 (getCriterionCount() > 0) {
hash = (37 * hash) + CRITERION_FIELD_NUMBER;
hash = (53 * hash) + getCriterionList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.Segment parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Segment parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.Segment parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Segment parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.Segment parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Segment parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.Segment parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Segment 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 cloud.prefab.domain.Prefab.Segment parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Segment 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 cloud.prefab.domain.Prefab.Segment parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Segment 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(cloud.prefab.domain.Prefab.Segment 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 prefab.Segment}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.Segment)
cloud.prefab.domain.Prefab.SegmentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Segment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Segment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Segment.class, cloud.prefab.domain.Prefab.Segment.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.Segment.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCriterionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (criterionBuilder_ == null) {
criterion_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
criterionBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Segment_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Segment getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.Segment.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Segment build() {
cloud.prefab.domain.Prefab.Segment result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Segment buildPartial() {
cloud.prefab.domain.Prefab.Segment result = new cloud.prefab.domain.Prefab.Segment(this);
int from_bitField0_ = bitField0_;
if (criterionBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
criterion_ = java.util.Collections.unmodifiableList(criterion_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.criterion_ = criterion_;
} else {
result.criterion_ = criterionBuilder_.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 cloud.prefab.domain.Prefab.Segment) {
return mergeFrom((cloud.prefab.domain.Prefab.Segment)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.Segment other) {
if (other == cloud.prefab.domain.Prefab.Segment.getDefaultInstance()) return this;
if (criterionBuilder_ == null) {
if (!other.criterion_.isEmpty()) {
if (criterion_.isEmpty()) {
criterion_ = other.criterion_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCriterionIsMutable();
criterion_.addAll(other.criterion_);
}
onChanged();
}
} else {
if (!other.criterion_.isEmpty()) {
if (criterionBuilder_.isEmpty()) {
criterionBuilder_.dispose();
criterionBuilder_ = null;
criterion_ = other.criterion_;
bitField0_ = (bitField0_ & ~0x00000001);
criterionBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCriterionFieldBuilder() : null;
} else {
criterionBuilder_.addAllMessages(other.criterion_);
}
}
}
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 {
cloud.prefab.domain.Prefab.Segment parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cloud.prefab.domain.Prefab.Segment) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List criterion_ =
java.util.Collections.emptyList();
private void ensureCriterionIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
criterion_ = new java.util.ArrayList(criterion_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.Criteria, cloud.prefab.domain.Prefab.Criteria.Builder, cloud.prefab.domain.Prefab.CriteriaOrBuilder> criterionBuilder_;
/**
* repeated .prefab.Criteria criterion = 1;
*/
public java.util.List getCriterionList() {
if (criterionBuilder_ == null) {
return java.util.Collections.unmodifiableList(criterion_);
} else {
return criterionBuilder_.getMessageList();
}
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
public int getCriterionCount() {
if (criterionBuilder_ == null) {
return criterion_.size();
} else {
return criterionBuilder_.getCount();
}
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
public cloud.prefab.domain.Prefab.Criteria getCriterion(int index) {
if (criterionBuilder_ == null) {
return criterion_.get(index);
} else {
return criterionBuilder_.getMessage(index);
}
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
public Builder setCriterion(
int index, cloud.prefab.domain.Prefab.Criteria value) {
if (criterionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCriterionIsMutable();
criterion_.set(index, value);
onChanged();
} else {
criterionBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
public Builder setCriterion(
int index, cloud.prefab.domain.Prefab.Criteria.Builder builderForValue) {
if (criterionBuilder_ == null) {
ensureCriterionIsMutable();
criterion_.set(index, builderForValue.build());
onChanged();
} else {
criterionBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
public Builder addCriterion(cloud.prefab.domain.Prefab.Criteria value) {
if (criterionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCriterionIsMutable();
criterion_.add(value);
onChanged();
} else {
criterionBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
public Builder addCriterion(
int index, cloud.prefab.domain.Prefab.Criteria value) {
if (criterionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCriterionIsMutable();
criterion_.add(index, value);
onChanged();
} else {
criterionBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
public Builder addCriterion(
cloud.prefab.domain.Prefab.Criteria.Builder builderForValue) {
if (criterionBuilder_ == null) {
ensureCriterionIsMutable();
criterion_.add(builderForValue.build());
onChanged();
} else {
criterionBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
public Builder addCriterion(
int index, cloud.prefab.domain.Prefab.Criteria.Builder builderForValue) {
if (criterionBuilder_ == null) {
ensureCriterionIsMutable();
criterion_.add(index, builderForValue.build());
onChanged();
} else {
criterionBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
public Builder addAllCriterion(
java.lang.Iterable values) {
if (criterionBuilder_ == null) {
ensureCriterionIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, criterion_);
onChanged();
} else {
criterionBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
public Builder clearCriterion() {
if (criterionBuilder_ == null) {
criterion_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
criterionBuilder_.clear();
}
return this;
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
public Builder removeCriterion(int index) {
if (criterionBuilder_ == null) {
ensureCriterionIsMutable();
criterion_.remove(index);
onChanged();
} else {
criterionBuilder_.remove(index);
}
return this;
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
public cloud.prefab.domain.Prefab.Criteria.Builder getCriterionBuilder(
int index) {
return getCriterionFieldBuilder().getBuilder(index);
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
public cloud.prefab.domain.Prefab.CriteriaOrBuilder getCriterionOrBuilder(
int index) {
if (criterionBuilder_ == null) {
return criterion_.get(index); } else {
return criterionBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
public java.util.List
getCriterionOrBuilderList() {
if (criterionBuilder_ != null) {
return criterionBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(criterion_);
}
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
public cloud.prefab.domain.Prefab.Criteria.Builder addCriterionBuilder() {
return getCriterionFieldBuilder().addBuilder(
cloud.prefab.domain.Prefab.Criteria.getDefaultInstance());
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
public cloud.prefab.domain.Prefab.Criteria.Builder addCriterionBuilder(
int index) {
return getCriterionFieldBuilder().addBuilder(
index, cloud.prefab.domain.Prefab.Criteria.getDefaultInstance());
}
/**
* repeated .prefab.Criteria criterion = 1;
*/
public java.util.List
getCriterionBuilderList() {
return getCriterionFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.Criteria, cloud.prefab.domain.Prefab.Criteria.Builder, cloud.prefab.domain.Prefab.CriteriaOrBuilder>
getCriterionFieldBuilder() {
if (criterionBuilder_ == null) {
criterionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.Criteria, cloud.prefab.domain.Prefab.Criteria.Builder, cloud.prefab.domain.Prefab.CriteriaOrBuilder>(
criterion_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
criterion_ = null;
}
return criterionBuilder_;
}
@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:prefab.Segment)
}
// @@protoc_insertion_point(class_scope:prefab.Segment)
private static final cloud.prefab.domain.Prefab.Segment DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Segment();
}
public static cloud.prefab.domain.Prefab.Segment getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Segment parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Segment(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 cloud.prefab.domain.Prefab.Segment getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface VariantWeightOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.VariantWeight)
com.google.protobuf.MessageOrBuilder {
/**
*
* out of 1000
*
*
* int32 weight = 1;
* @return The weight.
*/
int getWeight();
/**
* int32 variant_idx = 2;
* @return The variantIdx.
*/
int getVariantIdx();
}
/**
* Protobuf type {@code prefab.VariantWeight}
*/
public static final class VariantWeight extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.VariantWeight)
VariantWeightOrBuilder {
private static final long serialVersionUID = 0L;
// Use VariantWeight.newBuilder() to construct.
private VariantWeight(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private VariantWeight() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new VariantWeight();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private VariantWeight(
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: {
weight_ = input.readInt32();
break;
}
case 16: {
variantIdx_ = input.readInt32();
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 cloud.prefab.domain.Prefab.internal_static_prefab_VariantWeight_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_VariantWeight_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.VariantWeight.class, cloud.prefab.domain.Prefab.VariantWeight.Builder.class);
}
public static final int WEIGHT_FIELD_NUMBER = 1;
private int weight_;
/**
*
* out of 1000
*
*
* int32 weight = 1;
* @return The weight.
*/
@java.lang.Override
public int getWeight() {
return weight_;
}
public static final int VARIANT_IDX_FIELD_NUMBER = 2;
private int variantIdx_;
/**
* int32 variant_idx = 2;
* @return The variantIdx.
*/
@java.lang.Override
public int getVariantIdx() {
return variantIdx_;
}
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 (weight_ != 0) {
output.writeInt32(1, weight_);
}
if (variantIdx_ != 0) {
output.writeInt32(2, variantIdx_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (weight_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, weight_);
}
if (variantIdx_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, variantIdx_);
}
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 cloud.prefab.domain.Prefab.VariantWeight)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.VariantWeight other = (cloud.prefab.domain.Prefab.VariantWeight) obj;
if (getWeight()
!= other.getWeight()) return false;
if (getVariantIdx()
!= other.getVariantIdx()) 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) + WEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getWeight();
hash = (37 * hash) + VARIANT_IDX_FIELD_NUMBER;
hash = (53 * hash) + getVariantIdx();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.VariantWeight parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.VariantWeight parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.VariantWeight parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.VariantWeight parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.VariantWeight parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.VariantWeight parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.VariantWeight parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.VariantWeight 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 cloud.prefab.domain.Prefab.VariantWeight parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.VariantWeight 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 cloud.prefab.domain.Prefab.VariantWeight parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.VariantWeight 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(cloud.prefab.domain.Prefab.VariantWeight 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 prefab.VariantWeight}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.VariantWeight)
cloud.prefab.domain.Prefab.VariantWeightOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_VariantWeight_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_VariantWeight_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.VariantWeight.class, cloud.prefab.domain.Prefab.VariantWeight.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.VariantWeight.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();
weight_ = 0;
variantIdx_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_VariantWeight_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.VariantWeight getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.VariantWeight.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.VariantWeight build() {
cloud.prefab.domain.Prefab.VariantWeight result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.VariantWeight buildPartial() {
cloud.prefab.domain.Prefab.VariantWeight result = new cloud.prefab.domain.Prefab.VariantWeight(this);
result.weight_ = weight_;
result.variantIdx_ = variantIdx_;
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 cloud.prefab.domain.Prefab.VariantWeight) {
return mergeFrom((cloud.prefab.domain.Prefab.VariantWeight)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.VariantWeight other) {
if (other == cloud.prefab.domain.Prefab.VariantWeight.getDefaultInstance()) return this;
if (other.getWeight() != 0) {
setWeight(other.getWeight());
}
if (other.getVariantIdx() != 0) {
setVariantIdx(other.getVariantIdx());
}
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 {
cloud.prefab.domain.Prefab.VariantWeight parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cloud.prefab.domain.Prefab.VariantWeight) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int weight_ ;
/**
*
* out of 1000
*
*
* int32 weight = 1;
* @return The weight.
*/
@java.lang.Override
public int getWeight() {
return weight_;
}
/**
*
* out of 1000
*
*
* int32 weight = 1;
* @param value The weight to set.
* @return This builder for chaining.
*/
public Builder setWeight(int value) {
weight_ = value;
onChanged();
return this;
}
/**
*
* out of 1000
*
*
* int32 weight = 1;
* @return This builder for chaining.
*/
public Builder clearWeight() {
weight_ = 0;
onChanged();
return this;
}
private int variantIdx_ ;
/**
* int32 variant_idx = 2;
* @return The variantIdx.
*/
@java.lang.Override
public int getVariantIdx() {
return variantIdx_;
}
/**
* int32 variant_idx = 2;
* @param value The variantIdx to set.
* @return This builder for chaining.
*/
public Builder setVariantIdx(int value) {
variantIdx_ = value;
onChanged();
return this;
}
/**
* int32 variant_idx = 2;
* @return This builder for chaining.
*/
public Builder clearVariantIdx() {
variantIdx_ = 0;
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:prefab.VariantWeight)
}
// @@protoc_insertion_point(class_scope:prefab.VariantWeight)
private static final cloud.prefab.domain.Prefab.VariantWeight DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.VariantWeight();
}
public static cloud.prefab.domain.Prefab.VariantWeight getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VariantWeight parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VariantWeight(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 cloud.prefab.domain.Prefab.VariantWeight getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FeatureFlagOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.FeatureFlag)
com.google.protobuf.MessageOrBuilder {
/**
* bool active = 1;
* @return The active.
*/
boolean getActive();
/**
* int32 inactive_variant_idx = 2;
* @return The inactiveVariantIdx.
*/
int getInactiveVariantIdx();
/**
* repeated .prefab.Rule rules = 5;
*/
java.util.List
getRulesList();
/**
* repeated .prefab.Rule rules = 5;
*/
cloud.prefab.domain.Prefab.Rule getRules(int index);
/**
* repeated .prefab.Rule rules = 5;
*/
int getRulesCount();
/**
* repeated .prefab.Rule rules = 5;
*/
java.util.List
getRulesOrBuilderList();
/**
* repeated .prefab.Rule rules = 5;
*/
cloud.prefab.domain.Prefab.RuleOrBuilder getRulesOrBuilder(
int index);
}
/**
* Protobuf type {@code prefab.FeatureFlag}
*/
public static final class FeatureFlag extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.FeatureFlag)
FeatureFlagOrBuilder {
private static final long serialVersionUID = 0L;
// Use FeatureFlag.newBuilder() to construct.
private FeatureFlag(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private FeatureFlag() {
rules_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FeatureFlag();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FeatureFlag(
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: {
active_ = input.readBool();
break;
}
case 16: {
inactiveVariantIdx_ = input.readInt32();
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
rules_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
rules_.add(
input.readMessage(cloud.prefab.domain.Prefab.Rule.parser(), extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
rules_ = java.util.Collections.unmodifiableList(rules_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_FeatureFlag_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_FeatureFlag_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.FeatureFlag.class, cloud.prefab.domain.Prefab.FeatureFlag.Builder.class);
}
public static final int ACTIVE_FIELD_NUMBER = 1;
private boolean active_;
/**
* bool active = 1;
* @return The active.
*/
@java.lang.Override
public boolean getActive() {
return active_;
}
public static final int INACTIVE_VARIANT_IDX_FIELD_NUMBER = 2;
private int inactiveVariantIdx_;
/**
* int32 inactive_variant_idx = 2;
* @return The inactiveVariantIdx.
*/
@java.lang.Override
public int getInactiveVariantIdx() {
return inactiveVariantIdx_;
}
public static final int RULES_FIELD_NUMBER = 5;
private java.util.List rules_;
/**
* repeated .prefab.Rule rules = 5;
*/
@java.lang.Override
public java.util.List getRulesList() {
return rules_;
}
/**
* repeated .prefab.Rule rules = 5;
*/
@java.lang.Override
public java.util.List
getRulesOrBuilderList() {
return rules_;
}
/**
* repeated .prefab.Rule rules = 5;
*/
@java.lang.Override
public int getRulesCount() {
return rules_.size();
}
/**
* repeated .prefab.Rule rules = 5;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.Rule getRules(int index) {
return rules_.get(index);
}
/**
* repeated .prefab.Rule rules = 5;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.RuleOrBuilder getRulesOrBuilder(
int index) {
return rules_.get(index);
}
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 (active_ != false) {
output.writeBool(1, active_);
}
if (inactiveVariantIdx_ != 0) {
output.writeInt32(2, inactiveVariantIdx_);
}
for (int i = 0; i < rules_.size(); i++) {
output.writeMessage(5, rules_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (active_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, active_);
}
if (inactiveVariantIdx_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, inactiveVariantIdx_);
}
for (int i = 0; i < rules_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, rules_.get(i));
}
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 cloud.prefab.domain.Prefab.FeatureFlag)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.FeatureFlag other = (cloud.prefab.domain.Prefab.FeatureFlag) obj;
if (getActive()
!= other.getActive()) return false;
if (getInactiveVariantIdx()
!= other.getInactiveVariantIdx()) return false;
if (!getRulesList()
.equals(other.getRulesList())) 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) + ACTIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getActive());
hash = (37 * hash) + INACTIVE_VARIANT_IDX_FIELD_NUMBER;
hash = (53 * hash) + getInactiveVariantIdx();
if (getRulesCount() > 0) {
hash = (37 * hash) + RULES_FIELD_NUMBER;
hash = (53 * hash) + getRulesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.FeatureFlag parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.FeatureFlag parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.FeatureFlag parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.FeatureFlag parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.FeatureFlag parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.FeatureFlag parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.FeatureFlag parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.FeatureFlag 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 cloud.prefab.domain.Prefab.FeatureFlag parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.FeatureFlag 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 cloud.prefab.domain.Prefab.FeatureFlag parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.FeatureFlag 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(cloud.prefab.domain.Prefab.FeatureFlag 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 prefab.FeatureFlag}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.FeatureFlag)
cloud.prefab.domain.Prefab.FeatureFlagOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_FeatureFlag_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_FeatureFlag_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.FeatureFlag.class, cloud.prefab.domain.Prefab.FeatureFlag.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.FeatureFlag.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRulesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
active_ = false;
inactiveVariantIdx_ = 0;
if (rulesBuilder_ == null) {
rules_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
rulesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_FeatureFlag_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.FeatureFlag getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.FeatureFlag.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.FeatureFlag build() {
cloud.prefab.domain.Prefab.FeatureFlag result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.FeatureFlag buildPartial() {
cloud.prefab.domain.Prefab.FeatureFlag result = new cloud.prefab.domain.Prefab.FeatureFlag(this);
int from_bitField0_ = bitField0_;
result.active_ = active_;
result.inactiveVariantIdx_ = inactiveVariantIdx_;
if (rulesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
rules_ = java.util.Collections.unmodifiableList(rules_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.rules_ = rules_;
} else {
result.rules_ = rulesBuilder_.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 cloud.prefab.domain.Prefab.FeatureFlag) {
return mergeFrom((cloud.prefab.domain.Prefab.FeatureFlag)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.FeatureFlag other) {
if (other == cloud.prefab.domain.Prefab.FeatureFlag.getDefaultInstance()) return this;
if (other.getActive() != false) {
setActive(other.getActive());
}
if (other.getInactiveVariantIdx() != 0) {
setInactiveVariantIdx(other.getInactiveVariantIdx());
}
if (rulesBuilder_ == null) {
if (!other.rules_.isEmpty()) {
if (rules_.isEmpty()) {
rules_ = other.rules_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRulesIsMutable();
rules_.addAll(other.rules_);
}
onChanged();
}
} else {
if (!other.rules_.isEmpty()) {
if (rulesBuilder_.isEmpty()) {
rulesBuilder_.dispose();
rulesBuilder_ = null;
rules_ = other.rules_;
bitField0_ = (bitField0_ & ~0x00000001);
rulesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRulesFieldBuilder() : null;
} else {
rulesBuilder_.addAllMessages(other.rules_);
}
}
}
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 {
cloud.prefab.domain.Prefab.FeatureFlag parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cloud.prefab.domain.Prefab.FeatureFlag) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private boolean active_ ;
/**
* bool active = 1;
* @return The active.
*/
@java.lang.Override
public boolean getActive() {
return active_;
}
/**
* bool active = 1;
* @param value The active to set.
* @return This builder for chaining.
*/
public Builder setActive(boolean value) {
active_ = value;
onChanged();
return this;
}
/**
* bool active = 1;
* @return This builder for chaining.
*/
public Builder clearActive() {
active_ = false;
onChanged();
return this;
}
private int inactiveVariantIdx_ ;
/**
* int32 inactive_variant_idx = 2;
* @return The inactiveVariantIdx.
*/
@java.lang.Override
public int getInactiveVariantIdx() {
return inactiveVariantIdx_;
}
/**
* int32 inactive_variant_idx = 2;
* @param value The inactiveVariantIdx to set.
* @return This builder for chaining.
*/
public Builder setInactiveVariantIdx(int value) {
inactiveVariantIdx_ = value;
onChanged();
return this;
}
/**
* int32 inactive_variant_idx = 2;
* @return This builder for chaining.
*/
public Builder clearInactiveVariantIdx() {
inactiveVariantIdx_ = 0;
onChanged();
return this;
}
private java.util.List rules_ =
java.util.Collections.emptyList();
private void ensureRulesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
rules_ = new java.util.ArrayList(rules_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.Rule, cloud.prefab.domain.Prefab.Rule.Builder, cloud.prefab.domain.Prefab.RuleOrBuilder> rulesBuilder_;
/**
* repeated .prefab.Rule rules = 5;
*/
public java.util.List getRulesList() {
if (rulesBuilder_ == null) {
return java.util.Collections.unmodifiableList(rules_);
} else {
return rulesBuilder_.getMessageList();
}
}
/**
* repeated .prefab.Rule rules = 5;
*/
public int getRulesCount() {
if (rulesBuilder_ == null) {
return rules_.size();
} else {
return rulesBuilder_.getCount();
}
}
/**
* repeated .prefab.Rule rules = 5;
*/
public cloud.prefab.domain.Prefab.Rule getRules(int index) {
if (rulesBuilder_ == null) {
return rules_.get(index);
} else {
return rulesBuilder_.getMessage(index);
}
}
/**
* repeated .prefab.Rule rules = 5;
*/
public Builder setRules(
int index, cloud.prefab.domain.Prefab.Rule value) {
if (rulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRulesIsMutable();
rules_.set(index, value);
onChanged();
} else {
rulesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .prefab.Rule rules = 5;
*/
public Builder setRules(
int index, cloud.prefab.domain.Prefab.Rule.Builder builderForValue) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.set(index, builderForValue.build());
onChanged();
} else {
rulesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.Rule rules = 5;
*/
public Builder addRules(cloud.prefab.domain.Prefab.Rule value) {
if (rulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRulesIsMutable();
rules_.add(value);
onChanged();
} else {
rulesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .prefab.Rule rules = 5;
*/
public Builder addRules(
int index, cloud.prefab.domain.Prefab.Rule value) {
if (rulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRulesIsMutable();
rules_.add(index, value);
onChanged();
} else {
rulesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .prefab.Rule rules = 5;
*/
public Builder addRules(
cloud.prefab.domain.Prefab.Rule.Builder builderForValue) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.add(builderForValue.build());
onChanged();
} else {
rulesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .prefab.Rule rules = 5;
*/
public Builder addRules(
int index, cloud.prefab.domain.Prefab.Rule.Builder builderForValue) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.add(index, builderForValue.build());
onChanged();
} else {
rulesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.Rule rules = 5;
*/
public Builder addAllRules(
java.lang.Iterable values) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rules_);
onChanged();
} else {
rulesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .prefab.Rule rules = 5;
*/
public Builder clearRules() {
if (rulesBuilder_ == null) {
rules_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
rulesBuilder_.clear();
}
return this;
}
/**
* repeated .prefab.Rule rules = 5;
*/
public Builder removeRules(int index) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.remove(index);
onChanged();
} else {
rulesBuilder_.remove(index);
}
return this;
}
/**
* repeated .prefab.Rule rules = 5;
*/
public cloud.prefab.domain.Prefab.Rule.Builder getRulesBuilder(
int index) {
return getRulesFieldBuilder().getBuilder(index);
}
/**
* repeated .prefab.Rule rules = 5;
*/
public cloud.prefab.domain.Prefab.RuleOrBuilder getRulesOrBuilder(
int index) {
if (rulesBuilder_ == null) {
return rules_.get(index); } else {
return rulesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .prefab.Rule rules = 5;
*/
public java.util.List
getRulesOrBuilderList() {
if (rulesBuilder_ != null) {
return rulesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(rules_);
}
}
/**
* repeated .prefab.Rule rules = 5;
*/
public cloud.prefab.domain.Prefab.Rule.Builder addRulesBuilder() {
return getRulesFieldBuilder().addBuilder(
cloud.prefab.domain.Prefab.Rule.getDefaultInstance());
}
/**
* repeated .prefab.Rule rules = 5;
*/
public cloud.prefab.domain.Prefab.Rule.Builder addRulesBuilder(
int index) {
return getRulesFieldBuilder().addBuilder(
index, cloud.prefab.domain.Prefab.Rule.getDefaultInstance());
}
/**
* repeated .prefab.Rule rules = 5;
*/
public java.util.List
getRulesBuilderList() {
return getRulesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.Rule, cloud.prefab.domain.Prefab.Rule.Builder, cloud.prefab.domain.Prefab.RuleOrBuilder>
getRulesFieldBuilder() {
if (rulesBuilder_ == null) {
rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.Rule, cloud.prefab.domain.Prefab.Rule.Builder, cloud.prefab.domain.Prefab.RuleOrBuilder>(
rules_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
rules_ = null;
}
return rulesBuilder_;
}
@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:prefab.FeatureFlag)
}
// @@protoc_insertion_point(class_scope:prefab.FeatureFlag)
private static final cloud.prefab.domain.Prefab.FeatureFlag DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.FeatureFlag();
}
public static cloud.prefab.domain.Prefab.FeatureFlag getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FeatureFlag parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FeatureFlag(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 cloud.prefab.domain.Prefab.FeatureFlag getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UserOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.User)
com.google.protobuf.MessageOrBuilder {
/**
* optional string lookup = 1;
* @return Whether the lookup field is set.
*/
boolean hasLookup();
/**
* optional string lookup = 1;
* @return The lookup.
*/
java.lang.String getLookup();
/**
* optional string lookup = 1;
* @return The bytes for lookup.
*/
com.google.protobuf.ByteString
getLookupBytes();
/**
* map<string, string> attributes = 2;
*/
int getAttributesCount();
/**
* map<string, string> attributes = 2;
*/
boolean containsAttributes(
java.lang.String key);
/**
* Use {@link #getAttributesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getAttributes();
/**
* map<string, string> attributes = 2;
*/
java.util.Map
getAttributesMap();
/**
* map<string, string> attributes = 2;
*/
java.lang.String getAttributesOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* map<string, string> attributes = 2;
*/
java.lang.String getAttributesOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code prefab.User}
*/
public static final class User extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.User)
UserOrBuilder {
private static final long serialVersionUID = 0L;
// Use User.newBuilder() to construct.
private User(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private User() {
lookup_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new User();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private User(
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: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
lookup_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
attributes_ = com.google.protobuf.MapField.newMapField(
AttributesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
attributes__ = input.readMessage(
AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
attributes_.getMutableMap().put(
attributes__.getKey(), attributes__.getValue());
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 cloud.prefab.domain.Prefab.internal_static_prefab_User_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetAttributes();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_User_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.User.class, cloud.prefab.domain.Prefab.User.Builder.class);
}
private int bitField0_;
public static final int LOOKUP_FIELD_NUMBER = 1;
private volatile java.lang.Object lookup_;
/**
* optional string lookup = 1;
* @return Whether the lookup field is set.
*/
@java.lang.Override
public boolean hasLookup() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string lookup = 1;
* @return The lookup.
*/
@java.lang.Override
public java.lang.String getLookup() {
java.lang.Object ref = lookup_;
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();
lookup_ = s;
return s;
}
}
/**
* optional string lookup = 1;
* @return The bytes for lookup.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLookupBytes() {
java.lang.Object ref = lookup_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lookup_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ATTRIBUTES_FIELD_NUMBER = 2;
private static final class AttributesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
cloud.prefab.domain.Prefab.internal_static_prefab_User_AttributesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> attributes_;
private com.google.protobuf.MapField
internalGetAttributes() {
if (attributes_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AttributesDefaultEntryHolder.defaultEntry);
}
return attributes_;
}
public int getAttributesCount() {
return internalGetAttributes().getMap().size();
}
/**
* map<string, string> attributes = 2;
*/
@java.lang.Override
public boolean containsAttributes(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetAttributes().getMap().containsKey(key);
}
/**
* Use {@link #getAttributesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAttributes() {
return getAttributesMap();
}
/**
* map<string, string> attributes = 2;
*/
@java.lang.Override
public java.util.Map getAttributesMap() {
return internalGetAttributes().getMap();
}
/**
* map<string, string> attributes = 2;
*/
@java.lang.Override
public java.lang.String getAttributesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetAttributes().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> attributes = 2;
*/
@java.lang.Override
public java.lang.String getAttributesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetAttributes().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, lookup_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetAttributes(),
AttributesDefaultEntryHolder.defaultEntry,
2);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, lookup_);
}
for (java.util.Map.Entry entry
: internalGetAttributes().getMap().entrySet()) {
com.google.protobuf.MapEntry
attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, attributes__);
}
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 cloud.prefab.domain.Prefab.User)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.User other = (cloud.prefab.domain.Prefab.User) obj;
if (hasLookup() != other.hasLookup()) return false;
if (hasLookup()) {
if (!getLookup()
.equals(other.getLookup())) return false;
}
if (!internalGetAttributes().equals(
other.internalGetAttributes())) 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 (hasLookup()) {
hash = (37 * hash) + LOOKUP_FIELD_NUMBER;
hash = (53 * hash) + getLookup().hashCode();
}
if (!internalGetAttributes().getMap().isEmpty()) {
hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + internalGetAttributes().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.User parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.User parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.User parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.User parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.User parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.User parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.User parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.User 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 cloud.prefab.domain.Prefab.User parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.User 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 cloud.prefab.domain.Prefab.User parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.User 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(cloud.prefab.domain.Prefab.User 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 prefab.User}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.User)
cloud.prefab.domain.Prefab.UserOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_User_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetAttributes();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 2:
return internalGetMutableAttributes();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_User_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.User.class, cloud.prefab.domain.Prefab.User.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.User.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();
lookup_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
internalGetMutableAttributes().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_User_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.User getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.User.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.User build() {
cloud.prefab.domain.Prefab.User result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.User buildPartial() {
cloud.prefab.domain.Prefab.User result = new cloud.prefab.domain.Prefab.User(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.lookup_ = lookup_;
result.attributes_ = internalGetAttributes();
result.attributes_.makeImmutable();
result.bitField0_ = to_bitField0_;
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 cloud.prefab.domain.Prefab.User) {
return mergeFrom((cloud.prefab.domain.Prefab.User)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.User other) {
if (other == cloud.prefab.domain.Prefab.User.getDefaultInstance()) return this;
if (other.hasLookup()) {
bitField0_ |= 0x00000001;
lookup_ = other.lookup_;
onChanged();
}
internalGetMutableAttributes().mergeFrom(
other.internalGetAttributes());
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 {
cloud.prefab.domain.Prefab.User parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cloud.prefab.domain.Prefab.User) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object lookup_ = "";
/**
* optional string lookup = 1;
* @return Whether the lookup field is set.
*/
public boolean hasLookup() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string lookup = 1;
* @return The lookup.
*/
public java.lang.String getLookup() {
java.lang.Object ref = lookup_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
lookup_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string lookup = 1;
* @return The bytes for lookup.
*/
public com.google.protobuf.ByteString
getLookupBytes() {
java.lang.Object ref = lookup_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lookup_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string lookup = 1;
* @param value The lookup to set.
* @return This builder for chaining.
*/
public Builder setLookup(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
lookup_ = value;
onChanged();
return this;
}
/**
* optional string lookup = 1;
* @return This builder for chaining.
*/
public Builder clearLookup() {
bitField0_ = (bitField0_ & ~0x00000001);
lookup_ = getDefaultInstance().getLookup();
onChanged();
return this;
}
/**
* optional string lookup = 1;
* @param value The bytes for lookup to set.
* @return This builder for chaining.
*/
public Builder setLookupBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
lookup_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> attributes_;
private com.google.protobuf.MapField
internalGetAttributes() {
if (attributes_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AttributesDefaultEntryHolder.defaultEntry);
}
return attributes_;
}
private com.google.protobuf.MapField
internalGetMutableAttributes() {
onChanged();;
if (attributes_ == null) {
attributes_ = com.google.protobuf.MapField.newMapField(
AttributesDefaultEntryHolder.defaultEntry);
}
if (!attributes_.isMutable()) {
attributes_ = attributes_.copy();
}
return attributes_;
}
public int getAttributesCount() {
return internalGetAttributes().getMap().size();
}
/**
* map<string, string> attributes = 2;
*/
@java.lang.Override
public boolean containsAttributes(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetAttributes().getMap().containsKey(key);
}
/**
* Use {@link #getAttributesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAttributes() {
return getAttributesMap();
}
/**
* map<string, string> attributes = 2;
*/
@java.lang.Override
public java.util.Map getAttributesMap() {
return internalGetAttributes().getMap();
}
/**
* map<string, string> attributes = 2;
*/
@java.lang.Override
public java.lang.String getAttributesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetAttributes().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> attributes = 2;
*/
@java.lang.Override
public java.lang.String getAttributesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetAttributes().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearAttributes() {
internalGetMutableAttributes().getMutableMap()
.clear();
return this;
}
/**
* map<string, string> attributes = 2;
*/
public Builder removeAttributes(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableAttributes().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableAttributes() {
return internalGetMutableAttributes().getMutableMap();
}
/**
* map<string, string> attributes = 2;
*/
public Builder putAttributes(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableAttributes().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, string> attributes = 2;
*/
public Builder putAllAttributes(
java.util.Map values) {
internalGetMutableAttributes().getMutableMap()
.putAll(values);
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:prefab.User)
}
// @@protoc_insertion_point(class_scope:prefab.User)
private static final cloud.prefab.domain.Prefab.User DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.User();
}
public static cloud.prefab.domain.Prefab.User getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public User parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new User(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 cloud.prefab.domain.Prefab.User getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ClientConfigValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.ClientConfigValue)
com.google.protobuf.MessageOrBuilder {
/**
* optional int64 int = 1;
* @return Whether the int field is set.
*/
boolean hasInt();
/**
* optional int64 int = 1;
* @return The int.
*/
long getInt();
/**
* optional string string = 2;
* @return Whether the string field is set.
*/
boolean hasString();
/**
* optional string string = 2;
* @return The string.
*/
java.lang.String getString();
/**
* optional string string = 2;
* @return The bytes for string.
*/
com.google.protobuf.ByteString
getStringBytes();
/**
* optional double double = 3;
* @return Whether the double field is set.
*/
boolean hasDouble();
/**
* optional double double = 3;
* @return The double.
*/
double getDouble();
/**
* optional bool bool = 4;
* @return Whether the bool field is set.
*/
boolean hasBool();
/**
* optional bool bool = 4;
* @return The bool.
*/
boolean getBool();
}
/**
* Protobuf type {@code prefab.ClientConfigValue}
*/
public static final class ClientConfigValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.ClientConfigValue)
ClientConfigValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientConfigValue.newBuilder() to construct.
private ClientConfigValue(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ClientConfigValue() {
string_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClientConfigValue();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClientConfigValue(
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: {
bitField0_ |= 0x00000001;
int_ = input.readInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
string_ = s;
break;
}
case 25: {
bitField0_ |= 0x00000004;
double_ = input.readDouble();
break;
}
case 32: {
bitField0_ |= 0x00000008;
bool_ = input.readBool();
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 cloud.prefab.domain.Prefab.internal_static_prefab_ClientConfigValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ClientConfigValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.ClientConfigValue.class, cloud.prefab.domain.Prefab.ClientConfigValue.Builder.class);
}
private int bitField0_;
public static final int INT_FIELD_NUMBER = 1;
private long int_;
/**
* optional int64 int = 1;
* @return Whether the int field is set.
*/
@java.lang.Override
public boolean hasInt() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 int = 1;
* @return The int.
*/
@java.lang.Override
public long getInt() {
return int_;
}
public static final int STRING_FIELD_NUMBER = 2;
private volatile java.lang.Object string_;
/**
* optional string string = 2;
* @return Whether the string field is set.
*/
@java.lang.Override
public boolean hasString() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string string = 2;
* @return The string.
*/
@java.lang.Override
public java.lang.String getString() {
java.lang.Object ref = string_;
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();
string_ = s;
return s;
}
}
/**
* optional string string = 2;
* @return The bytes for string.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStringBytes() {
java.lang.Object ref = string_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
string_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DOUBLE_FIELD_NUMBER = 3;
private double double_;
/**
* optional double double = 3;
* @return Whether the double field is set.
*/
@java.lang.Override
public boolean hasDouble() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional double double = 3;
* @return The double.
*/
@java.lang.Override
public double getDouble() {
return double_;
}
public static final int BOOL_FIELD_NUMBER = 4;
private boolean bool_;
/**
* optional bool bool = 4;
* @return Whether the bool field is set.
*/
@java.lang.Override
public boolean hasBool() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bool bool = 4;
* @return The bool.
*/
@java.lang.Override
public boolean getBool() {
return bool_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(1, int_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, string_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeDouble(3, double_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(4, bool_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, int_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, string_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, double_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, bool_);
}
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 cloud.prefab.domain.Prefab.ClientConfigValue)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.ClientConfigValue other = (cloud.prefab.domain.Prefab.ClientConfigValue) obj;
if (hasInt() != other.hasInt()) return false;
if (hasInt()) {
if (getInt()
!= other.getInt()) return false;
}
if (hasString() != other.hasString()) return false;
if (hasString()) {
if (!getString()
.equals(other.getString())) return false;
}
if (hasDouble() != other.hasDouble()) return false;
if (hasDouble()) {
if (java.lang.Double.doubleToLongBits(getDouble())
!= java.lang.Double.doubleToLongBits(
other.getDouble())) return false;
}
if (hasBool() != other.hasBool()) return false;
if (hasBool()) {
if (getBool()
!= other.getBool()) 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 (hasInt()) {
hash = (37 * hash) + INT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInt());
}
if (hasString()) {
hash = (37 * hash) + STRING_FIELD_NUMBER;
hash = (53 * hash) + getString().hashCode();
}
if (hasDouble()) {
hash = (37 * hash) + DOUBLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDouble()));
}
if (hasBool()) {
hash = (37 * hash) + BOOL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBool());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.ClientConfigValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ClientConfigValue parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.ClientConfigValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ClientConfigValue parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.ClientConfigValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ClientConfigValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.ClientConfigValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ClientConfigValue 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 cloud.prefab.domain.Prefab.ClientConfigValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ClientConfigValue 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 cloud.prefab.domain.Prefab.ClientConfigValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ClientConfigValue 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(cloud.prefab.domain.Prefab.ClientConfigValue 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 prefab.ClientConfigValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.ClientConfigValue)
cloud.prefab.domain.Prefab.ClientConfigValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ClientConfigValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ClientConfigValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.ClientConfigValue.class, cloud.prefab.domain.Prefab.ClientConfigValue.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.ClientConfigValue.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();
int_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
string_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
double_ = 0D;
bitField0_ = (bitField0_ & ~0x00000004);
bool_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ClientConfigValue_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ClientConfigValue getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.ClientConfigValue.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ClientConfigValue build() {
cloud.prefab.domain.Prefab.ClientConfigValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ClientConfigValue buildPartial() {
cloud.prefab.domain.Prefab.ClientConfigValue result = new cloud.prefab.domain.Prefab.ClientConfigValue(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.int_ = int_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.string_ = string_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.double_ = double_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.bool_ = bool_;
to_bitField0_ |= 0x00000008;
}
result.bitField0_ = to_bitField0_;
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 cloud.prefab.domain.Prefab.ClientConfigValue) {
return mergeFrom((cloud.prefab.domain.Prefab.ClientConfigValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.ClientConfigValue other) {
if (other == cloud.prefab.domain.Prefab.ClientConfigValue.getDefaultInstance()) return this;
if (other.hasInt()) {
setInt(other.getInt());
}
if (other.hasString()) {
bitField0_ |= 0x00000002;
string_ = other.string_;
onChanged();
}
if (other.hasDouble()) {
setDouble(other.getDouble());
}
if (other.hasBool()) {
setBool(other.getBool());
}
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 {
cloud.prefab.domain.Prefab.ClientConfigValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cloud.prefab.domain.Prefab.ClientConfigValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long int_ ;
/**
* optional int64 int = 1;
* @return Whether the int field is set.
*/
@java.lang.Override
public boolean hasInt() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 int = 1;
* @return The int.
*/
@java.lang.Override
public long getInt() {
return int_;
}
/**
* optional int64 int = 1;
* @param value The int to set.
* @return This builder for chaining.
*/
public Builder setInt(long value) {
bitField0_ |= 0x00000001;
int_ = value;
onChanged();
return this;
}
/**
* optional int64 int = 1;
* @return This builder for chaining.
*/
public Builder clearInt() {
bitField0_ = (bitField0_ & ~0x00000001);
int_ = 0L;
onChanged();
return this;
}
private java.lang.Object string_ = "";
/**
* optional string string = 2;
* @return Whether the string field is set.
*/
public boolean hasString() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string string = 2;
* @return The string.
*/
public java.lang.String getString() {
java.lang.Object ref = string_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
string_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string string = 2;
* @return The bytes for string.
*/
public com.google.protobuf.ByteString
getStringBytes() {
java.lang.Object ref = string_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
string_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string string = 2;
* @param value The string to set.
* @return This builder for chaining.
*/
public Builder setString(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
string_ = value;
onChanged();
return this;
}
/**
* optional string string = 2;
* @return This builder for chaining.
*/
public Builder clearString() {
bitField0_ = (bitField0_ & ~0x00000002);
string_ = getDefaultInstance().getString();
onChanged();
return this;
}
/**
* optional string string = 2;
* @param value The bytes for string to set.
* @return This builder for chaining.
*/
public Builder setStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
string_ = value;
onChanged();
return this;
}
private double double_ ;
/**
* optional double double = 3;
* @return Whether the double field is set.
*/
@java.lang.Override
public boolean hasDouble() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional double double = 3;
* @return The double.
*/
@java.lang.Override
public double getDouble() {
return double_;
}
/**
* optional double double = 3;
* @param value The double to set.
* @return This builder for chaining.
*/
public Builder setDouble(double value) {
bitField0_ |= 0x00000004;
double_ = value;
onChanged();
return this;
}
/**
* optional double double = 3;
* @return This builder for chaining.
*/
public Builder clearDouble() {
bitField0_ = (bitField0_ & ~0x00000004);
double_ = 0D;
onChanged();
return this;
}
private boolean bool_ ;
/**
* optional bool bool = 4;
* @return Whether the bool field is set.
*/
@java.lang.Override
public boolean hasBool() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bool bool = 4;
* @return The bool.
*/
@java.lang.Override
public boolean getBool() {
return bool_;
}
/**
* optional bool bool = 4;
* @param value The bool to set.
* @return This builder for chaining.
*/
public Builder setBool(boolean value) {
bitField0_ |= 0x00000008;
bool_ = value;
onChanged();
return this;
}
/**
* optional bool bool = 4;
* @return This builder for chaining.
*/
public Builder clearBool() {
bitField0_ = (bitField0_ & ~0x00000008);
bool_ = false;
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:prefab.ClientConfigValue)
}
// @@protoc_insertion_point(class_scope:prefab.ClientConfigValue)
private static final cloud.prefab.domain.Prefab.ClientConfigValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ClientConfigValue();
}
public static cloud.prefab.domain.Prefab.ClientConfigValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClientConfigValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClientConfigValue(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 cloud.prefab.domain.Prefab.ClientConfigValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigEvaluationsOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.ConfigEvaluations)
com.google.protobuf.MessageOrBuilder {
/**
* map<string, .prefab.ClientConfigValue> values = 1;
*/
int getValuesCount();
/**
* map<string, .prefab.ClientConfigValue> values = 1;
*/
boolean containsValues(
java.lang.String key);
/**
* Use {@link #getValuesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getValues();
/**
* map<string, .prefab.ClientConfigValue> values = 1;
*/
java.util.Map
getValuesMap();
/**
* map<string, .prefab.ClientConfigValue> values = 1;
*/
cloud.prefab.domain.Prefab.ClientConfigValue getValuesOrDefault(
java.lang.String key,
cloud.prefab.domain.Prefab.ClientConfigValue defaultValue);
/**
* map<string, .prefab.ClientConfigValue> values = 1;
*/
cloud.prefab.domain.Prefab.ClientConfigValue getValuesOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code prefab.ConfigEvaluations}
*/
public static final class ConfigEvaluations extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.ConfigEvaluations)
ConfigEvaluationsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConfigEvaluations.newBuilder() to construct.
private ConfigEvaluations(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ConfigEvaluations() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConfigEvaluations();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConfigEvaluations(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
values_ = com.google.protobuf.MapField.newMapField(
ValuesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
values__ = input.readMessage(
ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
values_.getMutableMap().put(
values__.getKey(), values__.getValue());
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 cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluations_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetValues();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluations_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.ConfigEvaluations.class, cloud.prefab.domain.Prefab.ConfigEvaluations.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
private static final class ValuesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, cloud.prefab.domain.Prefab.ClientConfigValue> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluations_ValuesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
cloud.prefab.domain.Prefab.ClientConfigValue.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, cloud.prefab.domain.Prefab.ClientConfigValue> values_;
private com.google.protobuf.MapField
internalGetValues() {
if (values_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ValuesDefaultEntryHolder.defaultEntry);
}
return values_;
}
public int getValuesCount() {
return internalGetValues().getMap().size();
}
/**
* map<string, .prefab.ClientConfigValue> values = 1;
*/
@java.lang.Override
public boolean containsValues(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetValues().getMap().containsKey(key);
}
/**
* Use {@link #getValuesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getValues() {
return getValuesMap();
}
/**
* map<string, .prefab.ClientConfigValue> values = 1;
*/
@java.lang.Override
public java.util.Map getValuesMap() {
return internalGetValues().getMap();
}
/**
* map<string, .prefab.ClientConfigValue> values = 1;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ClientConfigValue getValuesOrDefault(
java.lang.String key,
cloud.prefab.domain.Prefab.ClientConfigValue defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetValues().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .prefab.ClientConfigValue> values = 1;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ClientConfigValue getValuesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetValues().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 {
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetValues(),
ValuesDefaultEntryHolder.defaultEntry,
1);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetValues().getMap().entrySet()) {
com.google.protobuf.MapEntry
values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, values__);
}
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 cloud.prefab.domain.Prefab.ConfigEvaluations)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.ConfigEvaluations other = (cloud.prefab.domain.Prefab.ConfigEvaluations) obj;
if (!internalGetValues().equals(
other.internalGetValues())) 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 (!internalGetValues().getMap().isEmpty()) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + internalGetValues().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.ConfigEvaluations parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ConfigEvaluations parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.ConfigEvaluations parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ConfigEvaluations parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.ConfigEvaluations parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ConfigEvaluations parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.ConfigEvaluations parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ConfigEvaluations 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 cloud.prefab.domain.Prefab.ConfigEvaluations parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ConfigEvaluations 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 cloud.prefab.domain.Prefab.ConfigEvaluations parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ConfigEvaluations 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(cloud.prefab.domain.Prefab.ConfigEvaluations 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 prefab.ConfigEvaluations}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.ConfigEvaluations)
cloud.prefab.domain.Prefab.ConfigEvaluationsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluations_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetValues();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableValues();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluations_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.ConfigEvaluations.class, cloud.prefab.domain.Prefab.ConfigEvaluations.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.ConfigEvaluations.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();
internalGetMutableValues().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluations_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigEvaluations getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.ConfigEvaluations.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigEvaluations build() {
cloud.prefab.domain.Prefab.ConfigEvaluations result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigEvaluations buildPartial() {
cloud.prefab.domain.Prefab.ConfigEvaluations result = new cloud.prefab.domain.Prefab.ConfigEvaluations(this);
int from_bitField0_ = bitField0_;
result.values_ = internalGetValues();
result.values_.makeImmutable();
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 cloud.prefab.domain.Prefab.ConfigEvaluations) {
return mergeFrom((cloud.prefab.domain.Prefab.ConfigEvaluations)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.ConfigEvaluations other) {
if (other == cloud.prefab.domain.Prefab.ConfigEvaluations.getDefaultInstance()) return this;
internalGetMutableValues().mergeFrom(
other.internalGetValues());
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 {
cloud.prefab.domain.Prefab.ConfigEvaluations parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cloud.prefab.domain.Prefab.ConfigEvaluations) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.MapField<
java.lang.String, cloud.prefab.domain.Prefab.ClientConfigValue> values_;
private com.google.protobuf.MapField
internalGetValues() {
if (values_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ValuesDefaultEntryHolder.defaultEntry);
}
return values_;
}
private com.google.protobuf.MapField
internalGetMutableValues() {
onChanged();;
if (values_ == null) {
values_ = com.google.protobuf.MapField.newMapField(
ValuesDefaultEntryHolder.defaultEntry);
}
if (!values_.isMutable()) {
values_ = values_.copy();
}
return values_;
}
public int getValuesCount() {
return internalGetValues().getMap().size();
}
/**
* map<string, .prefab.ClientConfigValue> values = 1;
*/
@java.lang.Override
public boolean containsValues(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetValues().getMap().containsKey(key);
}
/**
* Use {@link #getValuesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getValues() {
return getValuesMap();
}
/**
* map<string, .prefab.ClientConfigValue> values = 1;
*/
@java.lang.Override
public java.util.Map getValuesMap() {
return internalGetValues().getMap();
}
/**
* map<string, .prefab.ClientConfigValue> values = 1;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ClientConfigValue getValuesOrDefault(
java.lang.String key,
cloud.prefab.domain.Prefab.ClientConfigValue defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetValues().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .prefab.ClientConfigValue> values = 1;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ClientConfigValue getValuesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetValues().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearValues() {
internalGetMutableValues().getMutableMap()
.clear();
return this;
}
/**
* map<string, .prefab.ClientConfigValue> values = 1;
*/
public Builder removeValues(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableValues().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableValues() {
return internalGetMutableValues().getMutableMap();
}
/**
* map<string, .prefab.ClientConfigValue> values = 1;
*/
public Builder putValues(
java.lang.String key,
cloud.prefab.domain.Prefab.ClientConfigValue value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableValues().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .prefab.ClientConfigValue> values = 1;
*/
public Builder putAllValues(
java.util.Map values) {
internalGetMutableValues().getMutableMap()
.putAll(values);
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:prefab.ConfigEvaluations)
}
// @@protoc_insertion_point(class_scope:prefab.ConfigEvaluations)
private static final cloud.prefab.domain.Prefab.ConfigEvaluations DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ConfigEvaluations();
}
public static cloud.prefab.domain.Prefab.ConfigEvaluations getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConfigEvaluations parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConfigEvaluations(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 cloud.prefab.domain.Prefab.ConfigEvaluations getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LimitDefinitionOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.LimitDefinition)
com.google.protobuf.MessageOrBuilder {
/**
* .prefab.LimitResponse.LimitPolicyNames policy_name = 2;
* @return The enum numeric value on the wire for policyName.
*/
int getPolicyNameValue();
/**
* .prefab.LimitResponse.LimitPolicyNames policy_name = 2;
* @return The policyName.
*/
cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames getPolicyName();
/**
* int32 limit = 3;
* @return The limit.
*/
int getLimit();
/**
* int32 burst = 4;
* @return The burst.
*/
int getBurst();
/**
* int64 account_id = 5;
* @return The accountId.
*/
long getAccountId();
/**
* int64 last_modified = 6;
* @return The lastModified.
*/
long getLastModified();
/**
* bool returnable = 7;
* @return The returnable.
*/
boolean getReturnable();
/**
*
* [default = L4_BEST_EFFORT]; // Overridable by request
*
*
* .prefab.LimitDefinition.SafetyLevel safety_level = 8;
* @return The enum numeric value on the wire for safetyLevel.
*/
int getSafetyLevelValue();
/**
*
* [default = L4_BEST_EFFORT]; // Overridable by request
*
*
* .prefab.LimitDefinition.SafetyLevel safety_level = 8;
* @return The safetyLevel.
*/
cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel();
}
/**
* Protobuf type {@code prefab.LimitDefinition}
*/
public static final class LimitDefinition extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.LimitDefinition)
LimitDefinitionOrBuilder {
private static final long serialVersionUID = 0L;
// Use LimitDefinition.newBuilder() to construct.
private LimitDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private LimitDefinition() {
policyName_ = 0;
safetyLevel_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LimitDefinition();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LimitDefinition(
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 16: {
int rawValue = input.readEnum();
policyName_ = rawValue;
break;
}
case 24: {
limit_ = input.readInt32();
break;
}
case 32: {
burst_ = input.readInt32();
break;
}
case 40: {
accountId_ = input.readInt64();
break;
}
case 48: {
lastModified_ = input.readInt64();
break;
}
case 56: {
returnable_ = input.readBool();
break;
}
case 64: {
int rawValue = input.readEnum();
safetyLevel_ = rawValue;
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 cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.LimitDefinition.class, cloud.prefab.domain.Prefab.LimitDefinition.Builder.class);
}
/**
* Protobuf enum {@code prefab.LimitDefinition.SafetyLevel}
*/
public enum SafetyLevel
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NOT_SET = 0;
*/
NOT_SET(0),
/**
* L4_BEST_EFFORT = 4;
*/
L4_BEST_EFFORT(4),
/**
* L5_BOMBPROOF = 5;
*/
L5_BOMBPROOF(5),
UNRECOGNIZED(-1),
;
/**
* NOT_SET = 0;
*/
public static final int NOT_SET_VALUE = 0;
/**
* L4_BEST_EFFORT = 4;
*/
public static final int L4_BEST_EFFORT_VALUE = 4;
/**
* L5_BOMBPROOF = 5;
*/
public static final int L5_BOMBPROOF_VALUE = 5;
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 SafetyLevel 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 SafetyLevel forNumber(int value) {
switch (value) {
case 0: return NOT_SET;
case 4: return L4_BEST_EFFORT;
case 5: return L5_BOMBPROOF;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SafetyLevel> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SafetyLevel findValueByNumber(int number) {
return SafetyLevel.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 cloud.prefab.domain.Prefab.LimitDefinition.getDescriptor().getEnumTypes().get(0);
}
private static final SafetyLevel[] VALUES = values();
public static SafetyLevel 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 SafetyLevel(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:prefab.LimitDefinition.SafetyLevel)
}
public static final int POLICY_NAME_FIELD_NUMBER = 2;
private int policyName_;
/**
* .prefab.LimitResponse.LimitPolicyNames policy_name = 2;
* @return The enum numeric value on the wire for policyName.
*/
@java.lang.Override public int getPolicyNameValue() {
return policyName_;
}
/**
* .prefab.LimitResponse.LimitPolicyNames policy_name = 2;
* @return The policyName.
*/
@java.lang.Override public cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames getPolicyName() {
@SuppressWarnings("deprecation")
cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames result = cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.valueOf(policyName_);
return result == null ? cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.UNRECOGNIZED : result;
}
public static final int LIMIT_FIELD_NUMBER = 3;
private int limit_;
/**
* int32 limit = 3;
* @return The limit.
*/
@java.lang.Override
public int getLimit() {
return limit_;
}
public static final int BURST_FIELD_NUMBER = 4;
private int burst_;
/**
* int32 burst = 4;
* @return The burst.
*/
@java.lang.Override
public int getBurst() {
return burst_;
}
public static final int ACCOUNT_ID_FIELD_NUMBER = 5;
private long accountId_;
/**
* int64 account_id = 5;
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
public static final int LAST_MODIFIED_FIELD_NUMBER = 6;
private long lastModified_;
/**
* int64 last_modified = 6;
* @return The lastModified.
*/
@java.lang.Override
public long getLastModified() {
return lastModified_;
}
public static final int RETURNABLE_FIELD_NUMBER = 7;
private boolean returnable_;
/**
* bool returnable = 7;
* @return The returnable.
*/
@java.lang.Override
public boolean getReturnable() {
return returnable_;
}
public static final int SAFETY_LEVEL_FIELD_NUMBER = 8;
private int safetyLevel_;
/**
*
* [default = L4_BEST_EFFORT]; // Overridable by request
*
*
* .prefab.LimitDefinition.SafetyLevel safety_level = 8;
* @return The enum numeric value on the wire for safetyLevel.
*/
@java.lang.Override public int getSafetyLevelValue() {
return safetyLevel_;
}
/**
*
* [default = L4_BEST_EFFORT]; // Overridable by request
*
*
* .prefab.LimitDefinition.SafetyLevel safety_level = 8;
* @return The safetyLevel.
*/
@java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel() {
@SuppressWarnings("deprecation")
cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.valueOf(safetyLevel_);
return result == null ? cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.UNRECOGNIZED : result;
}
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 (policyName_ != cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.NOT_SET.getNumber()) {
output.writeEnum(2, policyName_);
}
if (limit_ != 0) {
output.writeInt32(3, limit_);
}
if (burst_ != 0) {
output.writeInt32(4, burst_);
}
if (accountId_ != 0L) {
output.writeInt64(5, accountId_);
}
if (lastModified_ != 0L) {
output.writeInt64(6, lastModified_);
}
if (returnable_ != false) {
output.writeBool(7, returnable_);
}
if (safetyLevel_ != cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.NOT_SET.getNumber()) {
output.writeEnum(8, safetyLevel_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (policyName_ != cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.NOT_SET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, policyName_);
}
if (limit_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, limit_);
}
if (burst_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, burst_);
}
if (accountId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, accountId_);
}
if (lastModified_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, lastModified_);
}
if (returnable_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, returnable_);
}
if (safetyLevel_ != cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.NOT_SET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(8, safetyLevel_);
}
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 cloud.prefab.domain.Prefab.LimitDefinition)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.LimitDefinition other = (cloud.prefab.domain.Prefab.LimitDefinition) obj;
if (policyName_ != other.policyName_) return false;
if (getLimit()
!= other.getLimit()) return false;
if (getBurst()
!= other.getBurst()) return false;
if (getAccountId()
!= other.getAccountId()) return false;
if (getLastModified()
!= other.getLastModified()) return false;
if (getReturnable()
!= other.getReturnable()) return false;
if (safetyLevel_ != other.safetyLevel_) 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) + POLICY_NAME_FIELD_NUMBER;
hash = (53 * hash) + policyName_;
hash = (37 * hash) + LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getLimit();
hash = (37 * hash) + BURST_FIELD_NUMBER;
hash = (53 * hash) + getBurst();
hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAccountId());
hash = (37 * hash) + LAST_MODIFIED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastModified());
hash = (37 * hash) + RETURNABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getReturnable());
hash = (37 * hash) + SAFETY_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + safetyLevel_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.LimitDefinition parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.LimitDefinition parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.LimitDefinition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.LimitDefinition parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.LimitDefinition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.LimitDefinition parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.LimitDefinition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.LimitDefinition 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 cloud.prefab.domain.Prefab.LimitDefinition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.LimitDefinition 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 cloud.prefab.domain.Prefab.LimitDefinition parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.LimitDefinition 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(cloud.prefab.domain.Prefab.LimitDefinition 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 prefab.LimitDefinition}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.LimitDefinition)
cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.LimitDefinition.class, cloud.prefab.domain.Prefab.LimitDefinition.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.LimitDefinition.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();
policyName_ = 0;
limit_ = 0;
burst_ = 0;
accountId_ = 0L;
lastModified_ = 0L;
returnable_ = false;
safetyLevel_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinition_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitDefinition getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitDefinition build() {
cloud.prefab.domain.Prefab.LimitDefinition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitDefinition buildPartial() {
cloud.prefab.domain.Prefab.LimitDefinition result = new cloud.prefab.domain.Prefab.LimitDefinition(this);
result.policyName_ = policyName_;
result.limit_ = limit_;
result.burst_ = burst_;
result.accountId_ = accountId_;
result.lastModified_ = lastModified_;
result.returnable_ = returnable_;
result.safetyLevel_ = safetyLevel_;
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 cloud.prefab.domain.Prefab.LimitDefinition) {
return mergeFrom((cloud.prefab.domain.Prefab.LimitDefinition)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.LimitDefinition other) {
if (other == cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance()) return this;
if (other.policyName_ != 0) {
setPolicyNameValue(other.getPolicyNameValue());
}
if (other.getLimit() != 0) {
setLimit(other.getLimit());
}
if (other.getBurst() != 0) {
setBurst(other.getBurst());
}
if (other.getAccountId() != 0L) {
setAccountId(other.getAccountId());
}
if (other.getLastModified() != 0L) {
setLastModified(other.getLastModified());
}
if (other.getReturnable() != false) {
setReturnable(other.getReturnable());
}
if (other.safetyLevel_ != 0) {
setSafetyLevelValue(other.getSafetyLevelValue());
}
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 {
cloud.prefab.domain.Prefab.LimitDefinition parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cloud.prefab.domain.Prefab.LimitDefinition) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int policyName_ = 0;
/**
* .prefab.LimitResponse.LimitPolicyNames policy_name = 2;
* @return The enum numeric value on the wire for policyName.
*/
@java.lang.Override public int getPolicyNameValue() {
return policyName_;
}
/**
* .prefab.LimitResponse.LimitPolicyNames policy_name = 2;
* @param value The enum numeric value on the wire for policyName to set.
* @return This builder for chaining.
*/
public Builder setPolicyNameValue(int value) {
policyName_ = value;
onChanged();
return this;
}
/**
* .prefab.LimitResponse.LimitPolicyNames policy_name = 2;
* @return The policyName.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames getPolicyName() {
@SuppressWarnings("deprecation")
cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames result = cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.valueOf(policyName_);
return result == null ? cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.UNRECOGNIZED : result;
}
/**
* .prefab.LimitResponse.LimitPolicyNames policy_name = 2;
* @param value The policyName to set.
* @return This builder for chaining.
*/
public Builder setPolicyName(cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames value) {
if (value == null) {
throw new NullPointerException();
}
policyName_ = value.getNumber();
onChanged();
return this;
}
/**
* .prefab.LimitResponse.LimitPolicyNames policy_name = 2;
* @return This builder for chaining.
*/
public Builder clearPolicyName() {
policyName_ = 0;
onChanged();
return this;
}
private int limit_ ;
/**
* int32 limit = 3;
* @return The limit.
*/
@java.lang.Override
public int getLimit() {
return limit_;
}
/**
* int32 limit = 3;
* @param value The limit to set.
* @return This builder for chaining.
*/
public Builder setLimit(int value) {
limit_ = value;
onChanged();
return this;
}
/**
* int32 limit = 3;
* @return This builder for chaining.
*/
public Builder clearLimit() {
limit_ = 0;
onChanged();
return this;
}
private int burst_ ;
/**
* int32 burst = 4;
* @return The burst.
*/
@java.lang.Override
public int getBurst() {
return burst_;
}
/**
* int32 burst = 4;
* @param value The burst to set.
* @return This builder for chaining.
*/
public Builder setBurst(int value) {
burst_ = value;
onChanged();
return this;
}
/**
* int32 burst = 4;
* @return This builder for chaining.
*/
public Builder clearBurst() {
burst_ = 0;
onChanged();
return this;
}
private long accountId_ ;
/**
* int64 account_id = 5;
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
/**
* int64 account_id = 5;
* @param value The accountId to set.
* @return This builder for chaining.
*/
public Builder setAccountId(long value) {
accountId_ = value;
onChanged();
return this;
}
/**
* int64 account_id = 5;
* @return This builder for chaining.
*/
public Builder clearAccountId() {
accountId_ = 0L;
onChanged();
return this;
}
private long lastModified_ ;
/**
* int64 last_modified = 6;
* @return The lastModified.
*/
@java.lang.Override
public long getLastModified() {
return lastModified_;
}
/**
* int64 last_modified = 6;
* @param value The lastModified to set.
* @return This builder for chaining.
*/
public Builder setLastModified(long value) {
lastModified_ = value;
onChanged();
return this;
}
/**
* int64 last_modified = 6;
* @return This builder for chaining.
*/
public Builder clearLastModified() {
lastModified_ = 0L;
onChanged();
return this;
}
private boolean returnable_ ;
/**
* bool returnable = 7;
* @return The returnable.
*/
@java.lang.Override
public boolean getReturnable() {
return returnable_;
}
/**
* bool returnable = 7;
* @param value The returnable to set.
* @return This builder for chaining.
*/
public Builder setReturnable(boolean value) {
returnable_ = value;
onChanged();
return this;
}
/**
* bool returnable = 7;
* @return This builder for chaining.
*/
public Builder clearReturnable() {
returnable_ = false;
onChanged();
return this;
}
private int safetyLevel_ = 0;
/**
*
* [default = L4_BEST_EFFORT]; // Overridable by request
*
*
* .prefab.LimitDefinition.SafetyLevel safety_level = 8;
* @return The enum numeric value on the wire for safetyLevel.
*/
@java.lang.Override public int getSafetyLevelValue() {
return safetyLevel_;
}
/**
*
* [default = L4_BEST_EFFORT]; // Overridable by request
*
*
* .prefab.LimitDefinition.SafetyLevel safety_level = 8;
* @param value The enum numeric value on the wire for safetyLevel to set.
* @return This builder for chaining.
*/
public Builder setSafetyLevelValue(int value) {
safetyLevel_ = value;
onChanged();
return this;
}
/**
*
* [default = L4_BEST_EFFORT]; // Overridable by request
*
*
* .prefab.LimitDefinition.SafetyLevel safety_level = 8;
* @return The safetyLevel.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel() {
@SuppressWarnings("deprecation")
cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.valueOf(safetyLevel_);
return result == null ? cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.UNRECOGNIZED : result;
}
/**
*
* [default = L4_BEST_EFFORT]; // Overridable by request
*
*
* .prefab.LimitDefinition.SafetyLevel safety_level = 8;
* @param value The safetyLevel to set.
* @return This builder for chaining.
*/
public Builder setSafetyLevel(cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel value) {
if (value == null) {
throw new NullPointerException();
}
safetyLevel_ = value.getNumber();
onChanged();
return this;
}
/**
*
* [default = L4_BEST_EFFORT]; // Overridable by request
*
*
* .prefab.LimitDefinition.SafetyLevel safety_level = 8;
* @return This builder for chaining.
*/
public Builder clearSafetyLevel() {
safetyLevel_ = 0;
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:prefab.LimitDefinition)
}
// @@protoc_insertion_point(class_scope:prefab.LimitDefinition)
private static final cloud.prefab.domain.Prefab.LimitDefinition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.LimitDefinition();
}
public static cloud.prefab.domain.Prefab.LimitDefinition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LimitDefinition parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LimitDefinition(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 cloud.prefab.domain.Prefab.LimitDefinition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LimitDefinitionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.LimitDefinitions)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
java.util.List
getDefinitionsList();
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
cloud.prefab.domain.Prefab.LimitDefinition getDefinitions(int index);
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
int getDefinitionsCount();
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
java.util.List
getDefinitionsOrBuilderList();
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder getDefinitionsOrBuilder(
int index);
}
/**
* Protobuf type {@code prefab.LimitDefinitions}
*/
public static final class LimitDefinitions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.LimitDefinitions)
LimitDefinitionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use LimitDefinitions.newBuilder() to construct.
private LimitDefinitions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private LimitDefinitions() {
definitions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LimitDefinitions();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LimitDefinitions(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
definitions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
definitions_.add(
input.readMessage(cloud.prefab.domain.Prefab.LimitDefinition.parser(), extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
definitions_ = java.util.Collections.unmodifiableList(definitions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinitions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinitions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.LimitDefinitions.class, cloud.prefab.domain.Prefab.LimitDefinitions.Builder.class);
}
public static final int DEFINITIONS_FIELD_NUMBER = 1;
private java.util.List definitions_;
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
@java.lang.Override
public java.util.List getDefinitionsList() {
return definitions_;
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
@java.lang.Override
public java.util.List
getDefinitionsOrBuilderList() {
return definitions_;
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
@java.lang.Override
public int getDefinitionsCount() {
return definitions_.size();
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitDefinition getDefinitions(int index) {
return definitions_.get(index);
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder getDefinitionsOrBuilder(
int index) {
return definitions_.get(index);
}
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 {
for (int i = 0; i < definitions_.size(); i++) {
output.writeMessage(1, definitions_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < definitions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, definitions_.get(i));
}
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 cloud.prefab.domain.Prefab.LimitDefinitions)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.LimitDefinitions other = (cloud.prefab.domain.Prefab.LimitDefinitions) obj;
if (!getDefinitionsList()
.equals(other.getDefinitionsList())) 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 (getDefinitionsCount() > 0) {
hash = (37 * hash) + DEFINITIONS_FIELD_NUMBER;
hash = (53 * hash) + getDefinitionsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.LimitDefinitions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.LimitDefinitions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.LimitDefinitions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.LimitDefinitions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.LimitDefinitions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.LimitDefinitions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.LimitDefinitions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.LimitDefinitions 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 cloud.prefab.domain.Prefab.LimitDefinitions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.LimitDefinitions 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 cloud.prefab.domain.Prefab.LimitDefinitions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.LimitDefinitions 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(cloud.prefab.domain.Prefab.LimitDefinitions 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 prefab.LimitDefinitions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.LimitDefinitions)
cloud.prefab.domain.Prefab.LimitDefinitionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinitions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinitions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.LimitDefinitions.class, cloud.prefab.domain.Prefab.LimitDefinitions.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.LimitDefinitions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDefinitionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (definitionsBuilder_ == null) {
definitions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
definitionsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinitions_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitDefinitions getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.LimitDefinitions.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitDefinitions build() {
cloud.prefab.domain.Prefab.LimitDefinitions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitDefinitions buildPartial() {
cloud.prefab.domain.Prefab.LimitDefinitions result = new cloud.prefab.domain.Prefab.LimitDefinitions(this);
int from_bitField0_ = bitField0_;
if (definitionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
definitions_ = java.util.Collections.unmodifiableList(definitions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.definitions_ = definitions_;
} else {
result.definitions_ = definitionsBuilder_.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 cloud.prefab.domain.Prefab.LimitDefinitions) {
return mergeFrom((cloud.prefab.domain.Prefab.LimitDefinitions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.LimitDefinitions other) {
if (other == cloud.prefab.domain.Prefab.LimitDefinitions.getDefaultInstance()) return this;
if (definitionsBuilder_ == null) {
if (!other.definitions_.isEmpty()) {
if (definitions_.isEmpty()) {
definitions_ = other.definitions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDefinitionsIsMutable();
definitions_.addAll(other.definitions_);
}
onChanged();
}
} else {
if (!other.definitions_.isEmpty()) {
if (definitionsBuilder_.isEmpty()) {
definitionsBuilder_.dispose();
definitionsBuilder_ = null;
definitions_ = other.definitions_;
bitField0_ = (bitField0_ & ~0x00000001);
definitionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDefinitionsFieldBuilder() : null;
} else {
definitionsBuilder_.addAllMessages(other.definitions_);
}
}
}
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 {
cloud.prefab.domain.Prefab.LimitDefinitions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cloud.prefab.domain.Prefab.LimitDefinitions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List definitions_ =
java.util.Collections.emptyList();
private void ensureDefinitionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
definitions_ = new java.util.ArrayList(definitions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.LimitDefinition, cloud.prefab.domain.Prefab.LimitDefinition.Builder, cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder> definitionsBuilder_;
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
public java.util.List getDefinitionsList() {
if (definitionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(definitions_);
} else {
return definitionsBuilder_.getMessageList();
}
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
public int getDefinitionsCount() {
if (definitionsBuilder_ == null) {
return definitions_.size();
} else {
return definitionsBuilder_.getCount();
}
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
public cloud.prefab.domain.Prefab.LimitDefinition getDefinitions(int index) {
if (definitionsBuilder_ == null) {
return definitions_.get(index);
} else {
return definitionsBuilder_.getMessage(index);
}
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
public Builder setDefinitions(
int index, cloud.prefab.domain.Prefab.LimitDefinition value) {
if (definitionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDefinitionsIsMutable();
definitions_.set(index, value);
onChanged();
} else {
definitionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
public Builder setDefinitions(
int index, cloud.prefab.domain.Prefab.LimitDefinition.Builder builderForValue) {
if (definitionsBuilder_ == null) {
ensureDefinitionsIsMutable();
definitions_.set(index, builderForValue.build());
onChanged();
} else {
definitionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
public Builder addDefinitions(cloud.prefab.domain.Prefab.LimitDefinition value) {
if (definitionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDefinitionsIsMutable();
definitions_.add(value);
onChanged();
} else {
definitionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
public Builder addDefinitions(
int index, cloud.prefab.domain.Prefab.LimitDefinition value) {
if (definitionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDefinitionsIsMutable();
definitions_.add(index, value);
onChanged();
} else {
definitionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
public Builder addDefinitions(
cloud.prefab.domain.Prefab.LimitDefinition.Builder builderForValue) {
if (definitionsBuilder_ == null) {
ensureDefinitionsIsMutable();
definitions_.add(builderForValue.build());
onChanged();
} else {
definitionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
public Builder addDefinitions(
int index, cloud.prefab.domain.Prefab.LimitDefinition.Builder builderForValue) {
if (definitionsBuilder_ == null) {
ensureDefinitionsIsMutable();
definitions_.add(index, builderForValue.build());
onChanged();
} else {
definitionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
public Builder addAllDefinitions(
java.lang.Iterable values) {
if (definitionsBuilder_ == null) {
ensureDefinitionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, definitions_);
onChanged();
} else {
definitionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
public Builder clearDefinitions() {
if (definitionsBuilder_ == null) {
definitions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
definitionsBuilder_.clear();
}
return this;
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
public Builder removeDefinitions(int index) {
if (definitionsBuilder_ == null) {
ensureDefinitionsIsMutable();
definitions_.remove(index);
onChanged();
} else {
definitionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
public cloud.prefab.domain.Prefab.LimitDefinition.Builder getDefinitionsBuilder(
int index) {
return getDefinitionsFieldBuilder().getBuilder(index);
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
public cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder getDefinitionsOrBuilder(
int index) {
if (definitionsBuilder_ == null) {
return definitions_.get(index); } else {
return definitionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
public java.util.List
getDefinitionsOrBuilderList() {
if (definitionsBuilder_ != null) {
return definitionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(definitions_);
}
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
public cloud.prefab.domain.Prefab.LimitDefinition.Builder addDefinitionsBuilder() {
return getDefinitionsFieldBuilder().addBuilder(
cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance());
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
public cloud.prefab.domain.Prefab.LimitDefinition.Builder addDefinitionsBuilder(
int index) {
return getDefinitionsFieldBuilder().addBuilder(
index, cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance());
}
/**
* repeated .prefab.LimitDefinition definitions = 1;
*/
public java.util.List
getDefinitionsBuilderList() {
return getDefinitionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.LimitDefinition, cloud.prefab.domain.Prefab.LimitDefinition.Builder, cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder>
getDefinitionsFieldBuilder() {
if (definitionsBuilder_ == null) {
definitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.LimitDefinition, cloud.prefab.domain.Prefab.LimitDefinition.Builder, cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder>(
definitions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
definitions_ = null;
}
return definitionsBuilder_;
}
@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:prefab.LimitDefinitions)
}
// @@protoc_insertion_point(class_scope:prefab.LimitDefinitions)
private static final cloud.prefab.domain.Prefab.LimitDefinitions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.LimitDefinitions();
}
public static cloud.prefab.domain.Prefab.LimitDefinitions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LimitDefinitions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LimitDefinitions(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 cloud.prefab.domain.Prefab.LimitDefinitions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BufferedRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.BufferedRequest)
com.google.protobuf.MessageOrBuilder {
/**
* int64 account_id = 1;
* @return The accountId.
*/
long getAccountId();
/**
* string method = 2;
* @return The method.
*/
java.lang.String getMethod();
/**
* string method = 2;
* @return The bytes for method.
*/
com.google.protobuf.ByteString
getMethodBytes();
/**
* string uri = 3;
* @return The uri.
*/
java.lang.String getUri();
/**
* string uri = 3;
* @return The bytes for uri.
*/
com.google.protobuf.ByteString
getUriBytes();
/**
* string body = 4;
* @return The body.
*/
java.lang.String getBody();
/**
* string body = 4;
* @return The bytes for body.
*/
com.google.protobuf.ByteString
getBodyBytes();
/**
* repeated string limit_groups = 5;
* @return A list containing the limitGroups.
*/
java.util.List
getLimitGroupsList();
/**
* repeated string limit_groups = 5;
* @return The count of limitGroups.
*/
int getLimitGroupsCount();
/**
* repeated string limit_groups = 5;
* @param index The index of the element to return.
* @return The limitGroups at the given index.
*/
java.lang.String getLimitGroups(int index);
/**
* repeated string limit_groups = 5;
* @param index The index of the value to return.
* @return The bytes of the limitGroups at the given index.
*/
com.google.protobuf.ByteString
getLimitGroupsBytes(int index);
/**
* string content_type = 6;
* @return The contentType.
*/
java.lang.String getContentType();
/**
* string content_type = 6;
* @return The bytes for contentType.
*/
com.google.protobuf.ByteString
getContentTypeBytes();
/**
* bool fifo = 7;
* @return The fifo.
*/
boolean getFifo();
}
/**
* Protobuf type {@code prefab.BufferedRequest}
*/
public static final class BufferedRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.BufferedRequest)
BufferedRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use BufferedRequest.newBuilder() to construct.
private BufferedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private BufferedRequest() {
method_ = "";
uri_ = "";
body_ = "";
limitGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
contentType_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BufferedRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BufferedRequest(
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: {
accountId_ = input.readInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
method_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
uri_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
body_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
limitGroups_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
limitGroups_.add(s);
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
contentType_ = s;
break;
}
case 56: {
fifo_ = input.readBool();
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
limitGroups_ = limitGroups_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_BufferedRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_BufferedRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.BufferedRequest.class, cloud.prefab.domain.Prefab.BufferedRequest.Builder.class);
}
public static final int ACCOUNT_ID_FIELD_NUMBER = 1;
private long accountId_;
/**
* int64 account_id = 1;
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
public static final int METHOD_FIELD_NUMBER = 2;
private volatile java.lang.Object method_;
/**
* string method = 2;
* @return The method.
*/
@java.lang.Override
public java.lang.String getMethod() {
java.lang.Object ref = method_;
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();
method_ = s;
return s;
}
}
/**
* string method = 2;
* @return The bytes for method.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMethodBytes() {
java.lang.Object ref = method_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
method_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int URI_FIELD_NUMBER = 3;
private volatile java.lang.Object uri_;
/**
* string uri = 3;
* @return The uri.
*/
@java.lang.Override
public java.lang.String getUri() {
java.lang.Object ref = uri_;
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();
uri_ = s;
return s;
}
}
/**
* string uri = 3;
* @return The bytes for uri.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUriBytes() {
java.lang.Object ref = uri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BODY_FIELD_NUMBER = 4;
private volatile java.lang.Object body_;
/**
* string body = 4;
* @return The body.
*/
@java.lang.Override
public java.lang.String getBody() {
java.lang.Object ref = body_;
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();
body_ = s;
return s;
}
}
/**
* string body = 4;
* @return The bytes for body.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBodyBytes() {
java.lang.Object ref = body_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
body_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LIMIT_GROUPS_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList limitGroups_;
/**
* repeated string limit_groups = 5;
* @return A list containing the limitGroups.
*/
public com.google.protobuf.ProtocolStringList
getLimitGroupsList() {
return limitGroups_;
}
/**
* repeated string limit_groups = 5;
* @return The count of limitGroups.
*/
public int getLimitGroupsCount() {
return limitGroups_.size();
}
/**
* repeated string limit_groups = 5;
* @param index The index of the element to return.
* @return The limitGroups at the given index.
*/
public java.lang.String getLimitGroups(int index) {
return limitGroups_.get(index);
}
/**
* repeated string limit_groups = 5;
* @param index The index of the value to return.
* @return The bytes of the limitGroups at the given index.
*/
public com.google.protobuf.ByteString
getLimitGroupsBytes(int index) {
return limitGroups_.getByteString(index);
}
public static final int CONTENT_TYPE_FIELD_NUMBER = 6;
private volatile java.lang.Object contentType_;
/**
* string content_type = 6;
* @return The contentType.
*/
@java.lang.Override
public java.lang.String getContentType() {
java.lang.Object ref = contentType_;
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();
contentType_ = s;
return s;
}
}
/**
* string content_type = 6;
* @return The bytes for contentType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContentTypeBytes() {
java.lang.Object ref = contentType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contentType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FIFO_FIELD_NUMBER = 7;
private boolean fifo_;
/**
* bool fifo = 7;
* @return The fifo.
*/
@java.lang.Override
public boolean getFifo() {
return fifo_;
}
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 (accountId_ != 0L) {
output.writeInt64(1, accountId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, body_);
}
for (int i = 0; i < limitGroups_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, limitGroups_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, contentType_);
}
if (fifo_ != false) {
output.writeBool(7, fifo_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (accountId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, accountId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, body_);
}
{
int dataSize = 0;
for (int i = 0; i < limitGroups_.size(); i++) {
dataSize += computeStringSizeNoTag(limitGroups_.getRaw(i));
}
size += dataSize;
size += 1 * getLimitGroupsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, contentType_);
}
if (fifo_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, fifo_);
}
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 cloud.prefab.domain.Prefab.BufferedRequest)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.BufferedRequest other = (cloud.prefab.domain.Prefab.BufferedRequest) obj;
if (getAccountId()
!= other.getAccountId()) return false;
if (!getMethod()
.equals(other.getMethod())) return false;
if (!getUri()
.equals(other.getUri())) return false;
if (!getBody()
.equals(other.getBody())) return false;
if (!getLimitGroupsList()
.equals(other.getLimitGroupsList())) return false;
if (!getContentType()
.equals(other.getContentType())) return false;
if (getFifo()
!= other.getFifo()) 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) + ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAccountId());
hash = (37 * hash) + METHOD_FIELD_NUMBER;
hash = (53 * hash) + getMethod().hashCode();
hash = (37 * hash) + URI_FIELD_NUMBER;
hash = (53 * hash) + getUri().hashCode();
hash = (37 * hash) + BODY_FIELD_NUMBER;
hash = (53 * hash) + getBody().hashCode();
if (getLimitGroupsCount() > 0) {
hash = (37 * hash) + LIMIT_GROUPS_FIELD_NUMBER;
hash = (53 * hash) + getLimitGroupsList().hashCode();
}
hash = (37 * hash) + CONTENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getContentType().hashCode();
hash = (37 * hash) + FIFO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFifo());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.BufferedRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.BufferedRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.BufferedRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.BufferedRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.BufferedRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.BufferedRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.BufferedRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.BufferedRequest 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 cloud.prefab.domain.Prefab.BufferedRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.BufferedRequest 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 cloud.prefab.domain.Prefab.BufferedRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.BufferedRequest 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(cloud.prefab.domain.Prefab.BufferedRequest 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 prefab.BufferedRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.BufferedRequest)
cloud.prefab.domain.Prefab.BufferedRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_BufferedRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_BufferedRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.BufferedRequest.class, cloud.prefab.domain.Prefab.BufferedRequest.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.BufferedRequest.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();
accountId_ = 0L;
method_ = "";
uri_ = "";
body_ = "";
limitGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
contentType_ = "";
fifo_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_BufferedRequest_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.BufferedRequest getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.BufferedRequest.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.BufferedRequest build() {
cloud.prefab.domain.Prefab.BufferedRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.BufferedRequest buildPartial() {
cloud.prefab.domain.Prefab.BufferedRequest result = new cloud.prefab.domain.Prefab.BufferedRequest(this);
int from_bitField0_ = bitField0_;
result.accountId_ = accountId_;
result.method_ = method_;
result.uri_ = uri_;
result.body_ = body_;
if (((bitField0_ & 0x00000001) != 0)) {
limitGroups_ = limitGroups_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.limitGroups_ = limitGroups_;
result.contentType_ = contentType_;
result.fifo_ = fifo_;
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 cloud.prefab.domain.Prefab.BufferedRequest) {
return mergeFrom((cloud.prefab.domain.Prefab.BufferedRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.BufferedRequest other) {
if (other == cloud.prefab.domain.Prefab.BufferedRequest.getDefaultInstance()) return this;
if (other.getAccountId() != 0L) {
setAccountId(other.getAccountId());
}
if (!other.getMethod().isEmpty()) {
method_ = other.method_;
onChanged();
}
if (!other.getUri().isEmpty()) {
uri_ = other.uri_;
onChanged();
}
if (!other.getBody().isEmpty()) {
body_ = other.body_;
onChanged();
}
if (!other.limitGroups_.isEmpty()) {
if (limitGroups_.isEmpty()) {
limitGroups_ = other.limitGroups_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLimitGroupsIsMutable();
limitGroups_.addAll(other.limitGroups_);
}
onChanged();
}
if (!other.getContentType().isEmpty()) {
contentType_ = other.contentType_;
onChanged();
}
if (other.getFifo() != false) {
setFifo(other.getFifo());
}
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 {
cloud.prefab.domain.Prefab.BufferedRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cloud.prefab.domain.Prefab.BufferedRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long accountId_ ;
/**
* int64 account_id = 1;
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
/**
* int64 account_id = 1;
* @param value The accountId to set.
* @return This builder for chaining.
*/
public Builder setAccountId(long value) {
accountId_ = value;
onChanged();
return this;
}
/**
* int64 account_id = 1;
* @return This builder for chaining.
*/
public Builder clearAccountId() {
accountId_ = 0L;
onChanged();
return this;
}
private java.lang.Object method_ = "";
/**
* string method = 2;
* @return The method.
*/
public java.lang.String getMethod() {
java.lang.Object ref = method_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
method_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string method = 2;
* @return The bytes for method.
*/
public com.google.protobuf.ByteString
getMethodBytes() {
java.lang.Object ref = method_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
method_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string method = 2;
* @param value The method to set.
* @return This builder for chaining.
*/
public Builder setMethod(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
method_ = value;
onChanged();
return this;
}
/**
* string method = 2;
* @return This builder for chaining.
*/
public Builder clearMethod() {
method_ = getDefaultInstance().getMethod();
onChanged();
return this;
}
/**
* string method = 2;
* @param value The bytes for method to set.
* @return This builder for chaining.
*/
public Builder setMethodBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
method_ = value;
onChanged();
return this;
}
private java.lang.Object uri_ = "";
/**
* string uri = 3;
* @return The uri.
*/
public java.lang.String getUri() {
java.lang.Object ref = uri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string uri = 3;
* @return The bytes for uri.
*/
public com.google.protobuf.ByteString
getUriBytes() {
java.lang.Object ref = uri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string uri = 3;
* @param value The uri to set.
* @return This builder for chaining.
*/
public Builder setUri(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
uri_ = value;
onChanged();
return this;
}
/**
* string uri = 3;
* @return This builder for chaining.
*/
public Builder clearUri() {
uri_ = getDefaultInstance().getUri();
onChanged();
return this;
}
/**
* string uri = 3;
* @param value The bytes for uri to set.
* @return This builder for chaining.
*/
public Builder setUriBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uri_ = value;
onChanged();
return this;
}
private java.lang.Object body_ = "";
/**
* string body = 4;
* @return The body.
*/
public java.lang.String getBody() {
java.lang.Object ref = body_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
body_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string body = 4;
* @return The bytes for body.
*/
public com.google.protobuf.ByteString
getBodyBytes() {
java.lang.Object ref = body_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
body_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string body = 4;
* @param value The body to set.
* @return This builder for chaining.
*/
public Builder setBody(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
body_ = value;
onChanged();
return this;
}
/**
* string body = 4;
* @return This builder for chaining.
*/
public Builder clearBody() {
body_ = getDefaultInstance().getBody();
onChanged();
return this;
}
/**
* string body = 4;
* @param value The bytes for body to set.
* @return This builder for chaining.
*/
public Builder setBodyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
body_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList limitGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureLimitGroupsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
limitGroups_ = new com.google.protobuf.LazyStringArrayList(limitGroups_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string limit_groups = 5;
* @return A list containing the limitGroups.
*/
public com.google.protobuf.ProtocolStringList
getLimitGroupsList() {
return limitGroups_.getUnmodifiableView();
}
/**
* repeated string limit_groups = 5;
* @return The count of limitGroups.
*/
public int getLimitGroupsCount() {
return limitGroups_.size();
}
/**
* repeated string limit_groups = 5;
* @param index The index of the element to return.
* @return The limitGroups at the given index.
*/
public java.lang.String getLimitGroups(int index) {
return limitGroups_.get(index);
}
/**
* repeated string limit_groups = 5;
* @param index The index of the value to return.
* @return The bytes of the limitGroups at the given index.
*/
public com.google.protobuf.ByteString
getLimitGroupsBytes(int index) {
return limitGroups_.getByteString(index);
}
/**
* repeated string limit_groups = 5;
* @param index The index to set the value at.
* @param value The limitGroups to set.
* @return This builder for chaining.
*/
public Builder setLimitGroups(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLimitGroupsIsMutable();
limitGroups_.set(index, value);
onChanged();
return this;
}
/**
* repeated string limit_groups = 5;
* @param value The limitGroups to add.
* @return This builder for chaining.
*/
public Builder addLimitGroups(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLimitGroupsIsMutable();
limitGroups_.add(value);
onChanged();
return this;
}
/**
* repeated string limit_groups = 5;
* @param values The limitGroups to add.
* @return This builder for chaining.
*/
public Builder addAllLimitGroups(
java.lang.Iterable values) {
ensureLimitGroupsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, limitGroups_);
onChanged();
return this;
}
/**
* repeated string limit_groups = 5;
* @return This builder for chaining.
*/
public Builder clearLimitGroups() {
limitGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string limit_groups = 5;
* @param value The bytes of the limitGroups to add.
* @return This builder for chaining.
*/
public Builder addLimitGroupsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureLimitGroupsIsMutable();
limitGroups_.add(value);
onChanged();
return this;
}
private java.lang.Object contentType_ = "";
/**
* string content_type = 6;
* @return The contentType.
*/
public java.lang.String getContentType() {
java.lang.Object ref = contentType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
contentType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string content_type = 6;
* @return The bytes for contentType.
*/
public com.google.protobuf.ByteString
getContentTypeBytes() {
java.lang.Object ref = contentType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contentType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string content_type = 6;
* @param value The contentType to set.
* @return This builder for chaining.
*/
public Builder setContentType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
contentType_ = value;
onChanged();
return this;
}
/**
* string content_type = 6;
* @return This builder for chaining.
*/
public Builder clearContentType() {
contentType_ = getDefaultInstance().getContentType();
onChanged();
return this;
}
/**
* string content_type = 6;
* @param value The bytes for contentType to set.
* @return This builder for chaining.
*/
public Builder setContentTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
contentType_ = value;
onChanged();
return this;
}
private boolean fifo_ ;
/**
* bool fifo = 7;
* @return The fifo.
*/
@java.lang.Override
public boolean getFifo() {
return fifo_;
}
/**
* bool fifo = 7;
* @param value The fifo to set.
* @return This builder for chaining.
*/
public Builder setFifo(boolean value) {
fifo_ = value;
onChanged();
return this;
}
/**
* bool fifo = 7;
* @return This builder for chaining.
*/
public Builder clearFifo() {
fifo_ = false;
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:prefab.BufferedRequest)
}
// @@protoc_insertion_point(class_scope:prefab.BufferedRequest)
private static final cloud.prefab.domain.Prefab.BufferedRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.BufferedRequest();
}
public static cloud.prefab.domain.Prefab.BufferedRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BufferedRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BufferedRequest(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 cloud.prefab.domain.Prefab.BufferedRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BatchRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.BatchRequest)
com.google.protobuf.MessageOrBuilder {
/**
* int64 account_id = 1;
* @return The accountId.
*/
long getAccountId();
/**
* string method = 2;
* @return The method.
*/
java.lang.String getMethod();
/**
* string method = 2;
* @return The bytes for method.
*/
com.google.protobuf.ByteString
getMethodBytes();
/**
* string uri = 3;
* @return The uri.
*/
java.lang.String getUri();
/**
* string uri = 3;
* @return The bytes for uri.
*/
com.google.protobuf.ByteString
getUriBytes();
/**
* string body = 4;
* @return The body.
*/
java.lang.String getBody();
/**
* string body = 4;
* @return The bytes for body.
*/
com.google.protobuf.ByteString
getBodyBytes();
/**
* repeated string limit_groups = 5;
* @return A list containing the limitGroups.
*/
java.util.List
getLimitGroupsList();
/**
* repeated string limit_groups = 5;
* @return The count of limitGroups.
*/
int getLimitGroupsCount();
/**
* repeated string limit_groups = 5;
* @param index The index of the element to return.
* @return The limitGroups at the given index.
*/
java.lang.String getLimitGroups(int index);
/**
* repeated string limit_groups = 5;
* @param index The index of the value to return.
* @return The bytes of the limitGroups at the given index.
*/
com.google.protobuf.ByteString
getLimitGroupsBytes(int index);
/**
* string batch_template = 6;
* @return The batchTemplate.
*/
java.lang.String getBatchTemplate();
/**
* string batch_template = 6;
* @return The bytes for batchTemplate.
*/
com.google.protobuf.ByteString
getBatchTemplateBytes();
/**
* string batch_separator = 7;
* @return The batchSeparator.
*/
java.lang.String getBatchSeparator();
/**
* string batch_separator = 7;
* @return The bytes for batchSeparator.
*/
com.google.protobuf.ByteString
getBatchSeparatorBytes();
}
/**
* Protobuf type {@code prefab.BatchRequest}
*/
public static final class BatchRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.BatchRequest)
BatchRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use BatchRequest.newBuilder() to construct.
private BatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private BatchRequest() {
method_ = "";
uri_ = "";
body_ = "";
limitGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
batchTemplate_ = "";
batchSeparator_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BatchRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BatchRequest(
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: {
accountId_ = input.readInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
method_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
uri_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
body_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
limitGroups_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
limitGroups_.add(s);
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
batchTemplate_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
batchSeparator_ = s;
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
limitGroups_ = limitGroups_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_BatchRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_BatchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.BatchRequest.class, cloud.prefab.domain.Prefab.BatchRequest.Builder.class);
}
public static final int ACCOUNT_ID_FIELD_NUMBER = 1;
private long accountId_;
/**
* int64 account_id = 1;
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
public static final int METHOD_FIELD_NUMBER = 2;
private volatile java.lang.Object method_;
/**
* string method = 2;
* @return The method.
*/
@java.lang.Override
public java.lang.String getMethod() {
java.lang.Object ref = method_;
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();
method_ = s;
return s;
}
}
/**
* string method = 2;
* @return The bytes for method.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMethodBytes() {
java.lang.Object ref = method_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
method_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int URI_FIELD_NUMBER = 3;
private volatile java.lang.Object uri_;
/**
* string uri = 3;
* @return The uri.
*/
@java.lang.Override
public java.lang.String getUri() {
java.lang.Object ref = uri_;
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();
uri_ = s;
return s;
}
}
/**
* string uri = 3;
* @return The bytes for uri.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUriBytes() {
java.lang.Object ref = uri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BODY_FIELD_NUMBER = 4;
private volatile java.lang.Object body_;
/**
* string body = 4;
* @return The body.
*/
@java.lang.Override
public java.lang.String getBody() {
java.lang.Object ref = body_;
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();
body_ = s;
return s;
}
}
/**
* string body = 4;
* @return The bytes for body.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBodyBytes() {
java.lang.Object ref = body_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
body_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LIMIT_GROUPS_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList limitGroups_;
/**
* repeated string limit_groups = 5;
* @return A list containing the limitGroups.
*/
public com.google.protobuf.ProtocolStringList
getLimitGroupsList() {
return limitGroups_;
}
/**
* repeated string limit_groups = 5;
* @return The count of limitGroups.
*/
public int getLimitGroupsCount() {
return limitGroups_.size();
}
/**
* repeated string limit_groups = 5;
* @param index The index of the element to return.
* @return The limitGroups at the given index.
*/
public java.lang.String getLimitGroups(int index) {
return limitGroups_.get(index);
}
/**
* repeated string limit_groups = 5;
* @param index The index of the value to return.
* @return The bytes of the limitGroups at the given index.
*/
public com.google.protobuf.ByteString
getLimitGroupsBytes(int index) {
return limitGroups_.getByteString(index);
}
public static final int BATCH_TEMPLATE_FIELD_NUMBER = 6;
private volatile java.lang.Object batchTemplate_;
/**
* string batch_template = 6;
* @return The batchTemplate.
*/
@java.lang.Override
public java.lang.String getBatchTemplate() {
java.lang.Object ref = batchTemplate_;
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();
batchTemplate_ = s;
return s;
}
}
/**
* string batch_template = 6;
* @return The bytes for batchTemplate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBatchTemplateBytes() {
java.lang.Object ref = batchTemplate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
batchTemplate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BATCH_SEPARATOR_FIELD_NUMBER = 7;
private volatile java.lang.Object batchSeparator_;
/**
* string batch_separator = 7;
* @return The batchSeparator.
*/
@java.lang.Override
public java.lang.String getBatchSeparator() {
java.lang.Object ref = batchSeparator_;
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();
batchSeparator_ = s;
return s;
}
}
/**
* string batch_separator = 7;
* @return The bytes for batchSeparator.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBatchSeparatorBytes() {
java.lang.Object ref = batchSeparator_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
batchSeparator_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (accountId_ != 0L) {
output.writeInt64(1, accountId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, body_);
}
for (int i = 0; i < limitGroups_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, limitGroups_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchTemplate_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, batchTemplate_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchSeparator_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, batchSeparator_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (accountId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, accountId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, body_);
}
{
int dataSize = 0;
for (int i = 0; i < limitGroups_.size(); i++) {
dataSize += computeStringSizeNoTag(limitGroups_.getRaw(i));
}
size += dataSize;
size += 1 * getLimitGroupsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchTemplate_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, batchTemplate_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchSeparator_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, batchSeparator_);
}
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 cloud.prefab.domain.Prefab.BatchRequest)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.BatchRequest other = (cloud.prefab.domain.Prefab.BatchRequest) obj;
if (getAccountId()
!= other.getAccountId()) return false;
if (!getMethod()
.equals(other.getMethod())) return false;
if (!getUri()
.equals(other.getUri())) return false;
if (!getBody()
.equals(other.getBody())) return false;
if (!getLimitGroupsList()
.equals(other.getLimitGroupsList())) return false;
if (!getBatchTemplate()
.equals(other.getBatchTemplate())) return false;
if (!getBatchSeparator()
.equals(other.getBatchSeparator())) 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) + ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAccountId());
hash = (37 * hash) + METHOD_FIELD_NUMBER;
hash = (53 * hash) + getMethod().hashCode();
hash = (37 * hash) + URI_FIELD_NUMBER;
hash = (53 * hash) + getUri().hashCode();
hash = (37 * hash) + BODY_FIELD_NUMBER;
hash = (53 * hash) + getBody().hashCode();
if (getLimitGroupsCount() > 0) {
hash = (37 * hash) + LIMIT_GROUPS_FIELD_NUMBER;
hash = (53 * hash) + getLimitGroupsList().hashCode();
}
hash = (37 * hash) + BATCH_TEMPLATE_FIELD_NUMBER;
hash = (53 * hash) + getBatchTemplate().hashCode();
hash = (37 * hash) + BATCH_SEPARATOR_FIELD_NUMBER;
hash = (53 * hash) + getBatchSeparator().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.BatchRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.BatchRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.BatchRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.BatchRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.BatchRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.BatchRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.BatchRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.BatchRequest 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 cloud.prefab.domain.Prefab.BatchRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.BatchRequest 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 cloud.prefab.domain.Prefab.BatchRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.BatchRequest 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(cloud.prefab.domain.Prefab.BatchRequest 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 prefab.BatchRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.BatchRequest)
cloud.prefab.domain.Prefab.BatchRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_BatchRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_BatchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.BatchRequest.class, cloud.prefab.domain.Prefab.BatchRequest.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.BatchRequest.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();
accountId_ = 0L;
method_ = "";
uri_ = "";
body_ = "";
limitGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
batchTemplate_ = "";
batchSeparator_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_BatchRequest_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.BatchRequest getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.BatchRequest.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.BatchRequest build() {
cloud.prefab.domain.Prefab.BatchRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.BatchRequest buildPartial() {
cloud.prefab.domain.Prefab.BatchRequest result = new cloud.prefab.domain.Prefab.BatchRequest(this);
int from_bitField0_ = bitField0_;
result.accountId_ = accountId_;
result.method_ = method_;
result.uri_ = uri_;
result.body_ = body_;
if (((bitField0_ & 0x00000001) != 0)) {
limitGroups_ = limitGroups_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.limitGroups_ = limitGroups_;
result.batchTemplate_ = batchTemplate_;
result.batchSeparator_ = batchSeparator_;
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 cloud.prefab.domain.Prefab.BatchRequest) {
return mergeFrom((cloud.prefab.domain.Prefab.BatchRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.BatchRequest other) {
if (other == cloud.prefab.domain.Prefab.BatchRequest.getDefaultInstance()) return this;
if (other.getAccountId() != 0L) {
setAccountId(other.getAccountId());
}
if (!other.getMethod().isEmpty()) {
method_ = other.method_;
onChanged();
}
if (!other.getUri().isEmpty()) {
uri_ = other.uri_;
onChanged();
}
if (!other.getBody().isEmpty()) {
body_ = other.body_;
onChanged();
}
if (!other.limitGroups_.isEmpty()) {
if (limitGroups_.isEmpty()) {
limitGroups_ = other.limitGroups_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLimitGroupsIsMutable();
limitGroups_.addAll(other.limitGroups_);
}
onChanged();
}
if (!other.getBatchTemplate().isEmpty()) {
batchTemplate_ = other.batchTemplate_;
onChanged();
}
if (!other.getBatchSeparator().isEmpty()) {
batchSeparator_ = other.batchSeparator_;
onChanged();
}
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 {
cloud.prefab.domain.Prefab.BatchRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cloud.prefab.domain.Prefab.BatchRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long accountId_ ;
/**
* int64 account_id = 1;
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
/**
* int64 account_id = 1;
* @param value The accountId to set.
* @return This builder for chaining.
*/
public Builder setAccountId(long value) {
accountId_ = value;
onChanged();
return this;
}
/**
* int64 account_id = 1;
* @return This builder for chaining.
*/
public Builder clearAccountId() {
accountId_ = 0L;
onChanged();
return this;
}
private java.lang.Object method_ = "";
/**
* string method = 2;
* @return The method.
*/
public java.lang.String getMethod() {
java.lang.Object ref = method_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
method_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string method = 2;
* @return The bytes for method.
*/
public com.google.protobuf.ByteString
getMethodBytes() {
java.lang.Object ref = method_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
method_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string method = 2;
* @param value The method to set.
* @return This builder for chaining.
*/
public Builder setMethod(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
method_ = value;
onChanged();
return this;
}
/**
* string method = 2;
* @return This builder for chaining.
*/
public Builder clearMethod() {
method_ = getDefaultInstance().getMethod();
onChanged();
return this;
}
/**
* string method = 2;
* @param value The bytes for method to set.
* @return This builder for chaining.
*/
public Builder setMethodBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
method_ = value;
onChanged();
return this;
}
private java.lang.Object uri_ = "";
/**
* string uri = 3;
* @return The uri.
*/
public java.lang.String getUri() {
java.lang.Object ref = uri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string uri = 3;
* @return The bytes for uri.
*/
public com.google.protobuf.ByteString
getUriBytes() {
java.lang.Object ref = uri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string uri = 3;
* @param value The uri to set.
* @return This builder for chaining.
*/
public Builder setUri(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
uri_ = value;
onChanged();
return this;
}
/**
* string uri = 3;
* @return This builder for chaining.
*/
public Builder clearUri() {
uri_ = getDefaultInstance().getUri();
onChanged();
return this;
}
/**
* string uri = 3;
* @param value The bytes for uri to set.
* @return This builder for chaining.
*/
public Builder setUriBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uri_ = value;
onChanged();
return this;
}
private java.lang.Object body_ = "";
/**
* string body = 4;
* @return The body.
*/
public java.lang.String getBody() {
java.lang.Object ref = body_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
body_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string body = 4;
* @return The bytes for body.
*/
public com.google.protobuf.ByteString
getBodyBytes() {
java.lang.Object ref = body_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
body_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string body = 4;
* @param value The body to set.
* @return This builder for chaining.
*/
public Builder setBody(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
body_ = value;
onChanged();
return this;
}
/**
* string body = 4;
* @return This builder for chaining.
*/
public Builder clearBody() {
body_ = getDefaultInstance().getBody();
onChanged();
return this;
}
/**
* string body = 4;
* @param value The bytes for body to set.
* @return This builder for chaining.
*/
public Builder setBodyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
body_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList limitGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureLimitGroupsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
limitGroups_ = new com.google.protobuf.LazyStringArrayList(limitGroups_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string limit_groups = 5;
* @return A list containing the limitGroups.
*/
public com.google.protobuf.ProtocolStringList
getLimitGroupsList() {
return limitGroups_.getUnmodifiableView();
}
/**
* repeated string limit_groups = 5;
* @return The count of limitGroups.
*/
public int getLimitGroupsCount() {
return limitGroups_.size();
}
/**
* repeated string limit_groups = 5;
* @param index The index of the element to return.
* @return The limitGroups at the given index.
*/
public java.lang.String getLimitGroups(int index) {
return limitGroups_.get(index);
}
/**
* repeated string limit_groups = 5;
* @param index The index of the value to return.
* @return The bytes of the limitGroups at the given index.
*/
public com.google.protobuf.ByteString
getLimitGroupsBytes(int index) {
return limitGroups_.getByteString(index);
}
/**
* repeated string limit_groups = 5;
* @param index The index to set the value at.
* @param value The limitGroups to set.
* @return This builder for chaining.
*/
public Builder setLimitGroups(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLimitGroupsIsMutable();
limitGroups_.set(index, value);
onChanged();
return this;
}
/**
* repeated string limit_groups = 5;
* @param value The limitGroups to add.
* @return This builder for chaining.
*/
public Builder addLimitGroups(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLimitGroupsIsMutable();
limitGroups_.add(value);
onChanged();
return this;
}
/**
* repeated string limit_groups = 5;
* @param values The limitGroups to add.
* @return This builder for chaining.
*/
public Builder addAllLimitGroups(
java.lang.Iterable values) {
ensureLimitGroupsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, limitGroups_);
onChanged();
return this;
}
/**
* repeated string limit_groups = 5;
* @return This builder for chaining.
*/
public Builder clearLimitGroups() {
limitGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string limit_groups = 5;
* @param value The bytes of the limitGroups to add.
* @return This builder for chaining.
*/
public Builder addLimitGroupsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureLimitGroupsIsMutable();
limitGroups_.add(value);
onChanged();
return this;
}
private java.lang.Object batchTemplate_ = "";
/**
* string batch_template = 6;
* @return The batchTemplate.
*/
public java.lang.String getBatchTemplate() {
java.lang.Object ref = batchTemplate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
batchTemplate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string batch_template = 6;
* @return The bytes for batchTemplate.
*/
public com.google.protobuf.ByteString
getBatchTemplateBytes() {
java.lang.Object ref = batchTemplate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
batchTemplate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string batch_template = 6;
* @param value The batchTemplate to set.
* @return This builder for chaining.
*/
public Builder setBatchTemplate(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
batchTemplate_ = value;
onChanged();
return this;
}
/**
* string batch_template = 6;
* @return This builder for chaining.
*/
public Builder clearBatchTemplate() {
batchTemplate_ = getDefaultInstance().getBatchTemplate();
onChanged();
return this;
}
/**
* string batch_template = 6;
* @param value The bytes for batchTemplate to set.
* @return This builder for chaining.
*/
public Builder setBatchTemplateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
batchTemplate_ = value;
onChanged();
return this;
}
private java.lang.Object batchSeparator_ = "";
/**
* string batch_separator = 7;
* @return The batchSeparator.
*/
public java.lang.String getBatchSeparator() {
java.lang.Object ref = batchSeparator_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
batchSeparator_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string batch_separator = 7;
* @return The bytes for batchSeparator.
*/
public com.google.protobuf.ByteString
getBatchSeparatorBytes() {
java.lang.Object ref = batchSeparator_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
batchSeparator_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string batch_separator = 7;
* @param value The batchSeparator to set.
* @return This builder for chaining.
*/
public Builder setBatchSeparator(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
batchSeparator_ = value;
onChanged();
return this;
}
/**
* string batch_separator = 7;
* @return This builder for chaining.
*/
public Builder clearBatchSeparator() {
batchSeparator_ = getDefaultInstance().getBatchSeparator();
onChanged();
return this;
}
/**
* string batch_separator = 7;
* @param value The bytes for batchSeparator to set.
* @return This builder for chaining.
*/
public Builder setBatchSeparatorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
batchSeparator_ = value;
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:prefab.BatchRequest)
}
// @@protoc_insertion_point(class_scope:prefab.BatchRequest)
private static final cloud.prefab.domain.Prefab.BatchRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.BatchRequest();
}
public static cloud.prefab.domain.Prefab.BatchRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BatchRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BatchRequest(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 cloud.prefab.domain.Prefab.BatchRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BasicResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.BasicResponse)
com.google.protobuf.MessageOrBuilder {
/**
* string message = 1;
* @return The message.
*/
java.lang.String getMessage();
/**
* string message = 1;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
* Protobuf type {@code prefab.BasicResponse}
*/
public static final class BasicResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.BasicResponse)
BasicResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use BasicResponse.newBuilder() to construct.
private BasicResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private BasicResponse() {
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BasicResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BasicResponse(
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 10: {
java.lang.String s = input.readStringRequireUtf8();
message_ = s;
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 cloud.prefab.domain.Prefab.internal_static_prefab_BasicResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_BasicResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.BasicResponse.class, cloud.prefab.domain.Prefab.BasicResponse.Builder.class);
}
public static final int MESSAGE_FIELD_NUMBER = 1;
private volatile java.lang.Object message_;
/**
* string message = 1;
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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();
message_ = s;
return s;
}
}
/**
* string message = 1;
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_);
}
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 cloud.prefab.domain.Prefab.BasicResponse)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.BasicResponse other = (cloud.prefab.domain.Prefab.BasicResponse) obj;
if (!getMessage()
.equals(other.getMessage())) 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) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.BasicResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.BasicResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.BasicResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.BasicResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.BasicResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.BasicResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.BasicResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.BasicResponse 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 cloud.prefab.domain.Prefab.BasicResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.BasicResponse 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 cloud.prefab.domain.Prefab.BasicResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.BasicResponse 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(cloud.prefab.domain.Prefab.BasicResponse 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 prefab.BasicResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.BasicResponse)
cloud.prefab.domain.Prefab.BasicResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_BasicResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_BasicResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.BasicResponse.class, cloud.prefab.domain.Prefab.BasicResponse.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.BasicResponse.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();
message_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_BasicResponse_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.BasicResponse getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.BasicResponse.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.BasicResponse build() {
cloud.prefab.domain.Prefab.BasicResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.BasicResponse buildPartial() {
cloud.prefab.domain.Prefab.BasicResponse result = new cloud.prefab.domain.Prefab.BasicResponse(this);
result.message_ = message_;
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 cloud.prefab.domain.Prefab.BasicResponse) {
return mergeFrom((cloud.prefab.domain.Prefab.BasicResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.BasicResponse other) {
if (other == cloud.prefab.domain.Prefab.BasicResponse.getDefaultInstance()) return this;
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
onChanged();
}
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 {
cloud.prefab.domain.Prefab.BasicResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cloud.prefab.domain.Prefab.BasicResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object message_ = "";
/**
* string message = 1;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string message = 1;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string message = 1;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
* string message = 1;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* string message = 1;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = value;
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:prefab.BasicResponse)
}
// @@protoc_insertion_point(class_scope:prefab.BasicResponse)
private static final cloud.prefab.domain.Prefab.BasicResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.BasicResponse();
}
public static cloud.prefab.domain.Prefab.BasicResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BasicResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BasicResponse(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 cloud.prefab.domain.Prefab.BasicResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreationResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.CreationResponse)
com.google.protobuf.MessageOrBuilder {
/**
* string message = 1;
* @return The message.
*/
java.lang.String getMessage();
/**
* string message = 1;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
* int64 new_id = 2;
* @return The newId.
*/
long getNewId();
}
/**
* Protobuf type {@code prefab.CreationResponse}
*/
public static final class CreationResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.CreationResponse)
CreationResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreationResponse.newBuilder() to construct.
private CreationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private CreationResponse() {
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreationResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreationResponse(
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 10: {
java.lang.String s = input.readStringRequireUtf8();
message_ = s;
break;
}
case 16: {
newId_ = input.readInt64();
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 cloud.prefab.domain.Prefab.internal_static_prefab_CreationResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_CreationResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.CreationResponse.class, cloud.prefab.domain.Prefab.CreationResponse.Builder.class);
}
public static final int MESSAGE_FIELD_NUMBER = 1;
private volatile java.lang.Object message_;
/**
* string message = 1;
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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();
message_ = s;
return s;
}
}
/**
* string message = 1;
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NEW_ID_FIELD_NUMBER = 2;
private long newId_;
/**
* int64 new_id = 2;
* @return The newId.
*/
@java.lang.Override
public long getNewId() {
return newId_;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_);
}
if (newId_ != 0L) {
output.writeInt64(2, newId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_);
}
if (newId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, newId_);
}
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 cloud.prefab.domain.Prefab.CreationResponse)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.CreationResponse other = (cloud.prefab.domain.Prefab.CreationResponse) obj;
if (!getMessage()
.equals(other.getMessage())) return false;
if (getNewId()
!= other.getNewId()) 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) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (37 * hash) + NEW_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNewId());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.CreationResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.CreationResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.CreationResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.CreationResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.CreationResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.CreationResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.CreationResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.CreationResponse 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 cloud.prefab.domain.Prefab.CreationResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.CreationResponse 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 cloud.prefab.domain.Prefab.CreationResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.CreationResponse 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(cloud.prefab.domain.Prefab.CreationResponse 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 prefab.CreationResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.CreationResponse)
cloud.prefab.domain.Prefab.CreationResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_CreationResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_CreationResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.CreationResponse.class, cloud.prefab.domain.Prefab.CreationResponse.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.CreationResponse.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();
message_ = "";
newId_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_CreationResponse_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.CreationResponse getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.CreationResponse.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.CreationResponse build() {
cloud.prefab.domain.Prefab.CreationResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.CreationResponse buildPartial() {
cloud.prefab.domain.Prefab.CreationResponse result = new cloud.prefab.domain.Prefab.CreationResponse(this);
result.message_ = message_;
result.newId_ = newId_;
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 cloud.prefab.domain.Prefab.CreationResponse) {
return mergeFrom((cloud.prefab.domain.Prefab.CreationResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.CreationResponse other) {
if (other == cloud.prefab.domain.Prefab.CreationResponse.getDefaultInstance()) return this;
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
onChanged();
}
if (other.getNewId() != 0L) {
setNewId(other.getNewId());
}
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 {
cloud.prefab.domain.Prefab.CreationResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cloud.prefab.domain.Prefab.CreationResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object message_ = "";
/**
* string message = 1;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string message = 1;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string message = 1;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
* string message = 1;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* string message = 1;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = value;
onChanged();
return this;
}
private long newId_ ;
/**
* int64 new_id = 2;
* @return The newId.
*/
@java.lang.Override
public long getNewId() {
return newId_;
}
/**
* int64 new_id = 2;
* @param value The newId to set.
* @return This builder for chaining.
*/
public Builder setNewId(long value) {
newId_ = value;
onChanged();
return this;
}
/**
* int64 new_id = 2;
* @return This builder for chaining.
*/
public Builder clearNewId() {
newId_ = 0L;
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:prefab.CreationResponse)
}
// @@protoc_insertion_point(class_scope:prefab.CreationResponse)
private static final cloud.prefab.domain.Prefab.CreationResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.CreationResponse();
}
public static cloud.prefab.domain.Prefab.CreationResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreationResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreationResponse(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 cloud.prefab.domain.Prefab.CreationResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IdBlockOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.IdBlock)
com.google.protobuf.MessageOrBuilder {
/**
* int64 project_id = 1;
* @return The projectId.
*/
long getProjectId();
/**
* int64 project_env_id = 2;
* @return The projectEnvId.
*/
long getProjectEnvId();
/**
* string sequence_name = 3;
* @return The sequenceName.
*/
java.lang.String getSequenceName();
/**
* string sequence_name = 3;
* @return The bytes for sequenceName.
*/
com.google.protobuf.ByteString
getSequenceNameBytes();
/**
* int64 start = 4;
* @return The start.
*/
long getStart();
/**
* int64 end = 5;
* @return The end.
*/
long getEnd();
}
/**
* Protobuf type {@code prefab.IdBlock}
*/
public static final class IdBlock extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.IdBlock)
IdBlockOrBuilder {
private static final long serialVersionUID = 0L;
// Use IdBlock.newBuilder() to construct.
private IdBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private IdBlock() {
sequenceName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IdBlock();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IdBlock(
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: {
projectId_ = input.readInt64();
break;
}
case 16: {
projectEnvId_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
sequenceName_ = s;
break;
}
case 32: {
start_ = input.readInt64();
break;
}
case 40: {
end_ = input.readInt64();
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 cloud.prefab.domain.Prefab.internal_static_prefab_IdBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_IdBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.IdBlock.class, cloud.prefab.domain.Prefab.IdBlock.Builder.class);
}
public static final int PROJECT_ID_FIELD_NUMBER = 1;
private long projectId_;
/**
* int64 project_id = 1;
* @return The projectId.
*/
@java.lang.Override
public long getProjectId() {
return projectId_;
}
public static final int PROJECT_ENV_ID_FIELD_NUMBER = 2;
private long projectEnvId_;
/**
* int64 project_env_id = 2;
* @return The projectEnvId.
*/
@java.lang.Override
public long getProjectEnvId() {
return projectEnvId_;
}
public static final int SEQUENCE_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object sequenceName_;
/**
* string sequence_name = 3;
* @return The sequenceName.
*/
@java.lang.Override
public java.lang.String getSequenceName() {
java.lang.Object ref = sequenceName_;
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();
sequenceName_ = s;
return s;
}
}
/**
* string sequence_name = 3;
* @return The bytes for sequenceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSequenceNameBytes() {
java.lang.Object ref = sequenceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sequenceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int START_FIELD_NUMBER = 4;
private long start_;
/**
* int64 start = 4;
* @return The start.
*/
@java.lang.Override
public long getStart() {
return start_;
}
public static final int END_FIELD_NUMBER = 5;
private long end_;
/**
* int64 end = 5;
* @return The end.
*/
@java.lang.Override
public long getEnd() {
return end_;
}
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 (projectId_ != 0L) {
output.writeInt64(1, projectId_);
}
if (projectEnvId_ != 0L) {
output.writeInt64(2, projectEnvId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sequenceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sequenceName_);
}
if (start_ != 0L) {
output.writeInt64(4, start_);
}
if (end_ != 0L) {
output.writeInt64(5, end_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (projectId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, projectId_);
}
if (projectEnvId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, projectEnvId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sequenceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sequenceName_);
}
if (start_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, start_);
}
if (end_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, end_);
}
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 cloud.prefab.domain.Prefab.IdBlock)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.IdBlock other = (cloud.prefab.domain.Prefab.IdBlock) obj;
if (getProjectId()
!= other.getProjectId()) return false;
if (getProjectEnvId()
!= other.getProjectEnvId()) return false;
if (!getSequenceName()
.equals(other.getSequenceName())) return false;
if (getStart()
!= other.getStart()) return false;
if (getEnd()
!= other.getEnd()) 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) + PROJECT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getProjectId());
hash = (37 * hash) + PROJECT_ENV_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getProjectEnvId());
hash = (37 * hash) + SEQUENCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getSequenceName().hashCode();
hash = (37 * hash) + START_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStart());
hash = (37 * hash) + END_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEnd());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.IdBlock parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.IdBlock parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.IdBlock parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.IdBlock parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.IdBlock parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.IdBlock parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.IdBlock parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.IdBlock 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 cloud.prefab.domain.Prefab.IdBlock parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.IdBlock 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 cloud.prefab.domain.Prefab.IdBlock parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.IdBlock 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(cloud.prefab.domain.Prefab.IdBlock 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 prefab.IdBlock}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.IdBlock)
cloud.prefab.domain.Prefab.IdBlockOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_IdBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_IdBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.IdBlock.class, cloud.prefab.domain.Prefab.IdBlock.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.IdBlock.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();
projectId_ = 0L;
projectEnvId_ = 0L;
sequenceName_ = "";
start_ = 0L;
end_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_IdBlock_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.IdBlock getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.IdBlock.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.IdBlock build() {
cloud.prefab.domain.Prefab.IdBlock result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.IdBlock buildPartial() {
cloud.prefab.domain.Prefab.IdBlock result = new cloud.prefab.domain.Prefab.IdBlock(this);
result.projectId_ = projectId_;
result.projectEnvId_ = projectEnvId_;
result.sequenceName_ = sequenceName_;
result.start_ = start_;
result.end_ = end_;
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 cloud.prefab.domain.Prefab.IdBlock) {
return mergeFrom((cloud.prefab.domain.Prefab.IdBlock)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.IdBlock other) {
if (other == cloud.prefab.domain.Prefab.IdBlock.getDefaultInstance()) return this;
if (other.getProjectId() != 0L) {
setProjectId(other.getProjectId());
}
if (other.getProjectEnvId() != 0L) {
setProjectEnvId(other.getProjectEnvId());
}
if (!other.getSequenceName().isEmpty()) {
sequenceName_ = other.sequenceName_;
onChanged();
}
if (other.getStart() != 0L) {
setStart(other.getStart());
}
if (other.getEnd() != 0L) {
setEnd(other.getEnd());
}
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 {
cloud.prefab.domain.Prefab.IdBlock parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cloud.prefab.domain.Prefab.IdBlock) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long projectId_ ;
/**
* int64 project_id = 1;
* @return The projectId.
*/
@java.lang.Override
public long getProjectId() {
return projectId_;
}
/**
* int64 project_id = 1;
* @param value The projectId to set.
* @return This builder for chaining.
*/
public Builder setProjectId(long value) {
projectId_ = value;
onChanged();
return this;
}
/**
* int64 project_id = 1;
* @return This builder for chaining.
*/
public Builder clearProjectId() {
projectId_ = 0L;
onChanged();
return this;
}
private long projectEnvId_ ;
/**
* int64 project_env_id = 2;
* @return The projectEnvId.
*/
@java.lang.Override
public long getProjectEnvId() {
return projectEnvId_;
}
/**
* int64 project_env_id = 2;
* @param value The projectEnvId to set.
* @return This builder for chaining.
*/
public Builder setProjectEnvId(long value) {
projectEnvId_ = value;
onChanged();
return this;
}
/**
* int64 project_env_id = 2;
* @return This builder for chaining.
*/
public Builder clearProjectEnvId() {
projectEnvId_ = 0L;
onChanged();
return this;
}
private java.lang.Object sequenceName_ = "";
/**
* string sequence_name = 3;
* @return The sequenceName.
*/
public java.lang.String getSequenceName() {
java.lang.Object ref = sequenceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sequenceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string sequence_name = 3;
* @return The bytes for sequenceName.
*/
public com.google.protobuf.ByteString
getSequenceNameBytes() {
java.lang.Object ref = sequenceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sequenceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string sequence_name = 3;
* @param value The sequenceName to set.
* @return This builder for chaining.
*/
public Builder setSequenceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sequenceName_ = value;
onChanged();
return this;
}
/**
* string sequence_name = 3;
* @return This builder for chaining.
*/
public Builder clearSequenceName() {
sequenceName_ = getDefaultInstance().getSequenceName();
onChanged();
return this;
}
/**
* string sequence_name = 3;
* @param value The bytes for sequenceName to set.
* @return This builder for chaining.
*/
public Builder setSequenceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sequenceName_ = value;
onChanged();
return this;
}
private long start_ ;
/**
* int64 start = 4;
* @return The start.
*/
@java.lang.Override
public long getStart() {
return start_;
}
/**
* int64 start = 4;
* @param value The start to set.
* @return This builder for chaining.
*/
public Builder setStart(long value) {
start_ = value;
onChanged();
return this;
}
/**
* int64 start = 4;
* @return This builder for chaining.
*/
public Builder clearStart() {
start_ = 0L;
onChanged();
return this;
}
private long end_ ;
/**
* int64 end = 5;
* @return The end.
*/
@java.lang.Override
public long getEnd() {
return end_;
}
/**
* int64 end = 5;
* @param value The end to set.
* @return This builder for chaining.
*/
public Builder setEnd(long value) {
end_ = value;
onChanged();
return this;
}
/**
* int64 end = 5;
* @return This builder for chaining.
*/
public Builder clearEnd() {
end_ = 0L;
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:prefab.IdBlock)
}
// @@protoc_insertion_point(class_scope:prefab.IdBlock)
private static final cloud.prefab.domain.Prefab.IdBlock DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.IdBlock();
}
public static cloud.prefab.domain.Prefab.IdBlock getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IdBlock parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IdBlock(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 cloud.prefab.domain.Prefab.IdBlock getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IdBlockRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.IdBlockRequest)
com.google.protobuf.MessageOrBuilder {
/**
* int64 project_id = 1;
* @return The projectId.
*/
long getProjectId();
/**
* int64 project_env_id = 2;
* @return The projectEnvId.
*/
long getProjectEnvId();
/**
* string sequence_name = 3;
* @return The sequenceName.
*/
java.lang.String getSequenceName();
/**
* string sequence_name = 3;
* @return The bytes for sequenceName.
*/
com.google.protobuf.ByteString
getSequenceNameBytes();
/**
* int64 size = 4;
* @return The size.
*/
long getSize();
}
/**
* Protobuf type {@code prefab.IdBlockRequest}
*/
public static final class IdBlockRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.IdBlockRequest)
IdBlockRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use IdBlockRequest.newBuilder() to construct.
private IdBlockRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private IdBlockRequest() {
sequenceName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IdBlockRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IdBlockRequest(
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: {
projectId_ = input.readInt64();
break;
}
case 16: {
projectEnvId_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
sequenceName_ = s;
break;
}
case 32: {
size_ = input.readInt64();
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 cloud.prefab.domain.Prefab.internal_static_prefab_IdBlockRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_IdBlockRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.IdBlockRequest.class, cloud.prefab.domain.Prefab.IdBlockRequest.Builder.class);
}
public static final int PROJECT_ID_FIELD_NUMBER = 1;
private long projectId_;
/**
* int64 project_id = 1;
* @return The projectId.
*/
@java.lang.Override
public long getProjectId() {
return projectId_;
}
public static final int PROJECT_ENV_ID_FIELD_NUMBER = 2;
private long projectEnvId_;
/**
* int64 project_env_id = 2;
* @return The projectEnvId.
*/
@java.lang.Override
public long getProjectEnvId() {
return projectEnvId_;
}
public static final int SEQUENCE_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object sequenceName_;
/**
* string sequence_name = 3;
* @return The sequenceName.
*/
@java.lang.Override
public java.lang.String getSequenceName() {
java.lang.Object ref = sequenceName_;
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();
sequenceName_ = s;
return s;
}
}
/**
* string sequence_name = 3;
* @return The bytes for sequenceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSequenceNameBytes() {
java.lang.Object ref = sequenceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sequenceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SIZE_FIELD_NUMBER = 4;
private long size_;
/**
* int64 size = 4;
* @return The size.
*/
@java.lang.Override
public long getSize() {
return size_;
}
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 (projectId_ != 0L) {
output.writeInt64(1, projectId_);
}
if (projectEnvId_ != 0L) {
output.writeInt64(2, projectEnvId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sequenceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sequenceName_);
}
if (size_ != 0L) {
output.writeInt64(4, size_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (projectId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, projectId_);
}
if (projectEnvId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, projectEnvId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sequenceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sequenceName_);
}
if (size_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, size_);
}
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 cloud.prefab.domain.Prefab.IdBlockRequest)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.IdBlockRequest other = (cloud.prefab.domain.Prefab.IdBlockRequest) obj;
if (getProjectId()
!= other.getProjectId()) return false;
if (getProjectEnvId()
!= other.getProjectEnvId()) return false;
if (!getSequenceName()
.equals(other.getSequenceName())) return false;
if (getSize()
!= other.getSize()) 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) + PROJECT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getProjectId());
hash = (37 * hash) + PROJECT_ENV_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getProjectEnvId());
hash = (37 * hash) + SEQUENCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getSequenceName().hashCode();
hash = (37 * hash) + SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSize());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.IdBlockRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.IdBlockRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.IdBlockRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.IdBlockRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.IdBlockRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.IdBlockRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.IdBlockRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.IdBlockRequest 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 cloud.prefab.domain.Prefab.IdBlockRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.IdBlockRequest 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 cloud.prefab.domain.Prefab.IdBlockRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.IdBlockRequest 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(cloud.prefab.domain.Prefab.IdBlockRequest 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 prefab.IdBlockRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.IdBlockRequest)
cloud.prefab.domain.Prefab.IdBlockRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_IdBlockRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_IdBlockRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.IdBlockRequest.class, cloud.prefab.domain.Prefab.IdBlockRequest.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.IdBlockRequest.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();
projectId_ = 0L;
projectEnvId_ = 0L;
sequenceName_ = "";
size_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_IdBlockRequest_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.IdBlockRequest getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.IdBlockRequest.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.IdBlockRequest build() {
cloud.prefab.domain.Prefab.IdBlockRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.IdBlockRequest buildPartial() {
cloud.prefab.domain.Prefab.IdBlockRequest result = new cloud.prefab.domain.Prefab.IdBlockRequest(this);
result.projectId_ = projectId_;
result.projectEnvId_ = projectEnvId_;
result.sequenceName_ = sequenceName_;
result.size_ = size_;
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 cloud.prefab.domain.Prefab.IdBlockRequest) {
return mergeFrom((cloud.prefab.domain.Prefab.IdBlockRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.IdBlockRequest other) {
if (other == cloud.prefab.domain.Prefab.IdBlockRequest.getDefaultInstance()) return this;
if (other.getProjectId() != 0L) {
setProjectId(other.getProjectId());
}
if (other.getProjectEnvId() != 0L) {
setProjectEnvId(other.getProjectEnvId());
}
if (!other.getSequenceName().isEmpty()) {
sequenceName_ = other.sequenceName_;
onChanged();
}
if (other.getSize() != 0L) {
setSize(other.getSize());
}
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 {
cloud.prefab.domain.Prefab.IdBlockRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cloud.prefab.domain.Prefab.IdBlockRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long projectId_ ;
/**
* int64 project_id = 1;
* @return The projectId.
*/
@java.lang.Override
public long getProjectId() {
return projectId_;
}
/**
* int64 project_id = 1;
* @param value The projectId to set.
* @return This builder for chaining.
*/
public Builder setProjectId(long value) {
projectId_ = value;
onChanged();
return this;
}
/**
* int64 project_id = 1;
* @return This builder for chaining.
*/
public Builder clearProjectId() {
projectId_ = 0L;
onChanged();
return this;
}
private long projectEnvId_ ;
/**
* int64 project_env_id = 2;
* @return The projectEnvId.
*/
@java.lang.Override
public long getProjectEnvId() {
return projectEnvId_;
}
/**
* int64 project_env_id = 2;
* @param value The projectEnvId to set.
* @return This builder for chaining.
*/
public Builder setProjectEnvId(long value) {
projectEnvId_ = value;
onChanged();
return this;
}
/**
* int64 project_env_id = 2;
* @return This builder for chaining.
*/
public Builder clearProjectEnvId() {
projectEnvId_ = 0L;
onChanged();
return this;
}
private java.lang.Object sequenceName_ = "";
/**
* string sequence_name = 3;
* @return The sequenceName.
*/
public java.lang.String getSequenceName() {
java.lang.Object ref = sequenceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sequenceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string sequence_name = 3;
* @return The bytes for sequenceName.
*/
public com.google.protobuf.ByteString
getSequenceNameBytes() {
java.lang.Object ref = sequenceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sequenceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string sequence_name = 3;
* @param value The sequenceName to set.
* @return This builder for chaining.
*/
public Builder setSequenceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sequenceName_ = value;
onChanged();
return this;
}
/**
* string sequence_name = 3;
* @return This builder for chaining.
*/
public Builder clearSequenceName() {
sequenceName_ = getDefaultInstance().getSequenceName();
onChanged();
return this;
}
/**
* string sequence_name = 3;
* @param value The bytes for sequenceName to set.
* @return This builder for chaining.
*/
public Builder setSequenceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sequenceName_ = value;
onChanged();
return this;
}
private long size_ ;
/**
* int64 size = 4;
* @return The size.
*/
@java.lang.Override
public long getSize() {
return size_;
}
/**
* int64 size = 4;
* @param value The size to set.
* @return This builder for chaining.
*/
public Builder setSize(long value) {
size_ = value;
onChanged();
return this;
}
/**
* int64 size = 4;
* @return This builder for chaining.
*/
public Builder clearSize() {
size_ = 0L;
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:prefab.IdBlockRequest)
}
// @@protoc_insertion_point(class_scope:prefab.IdBlockRequest)
private static final cloud.prefab.domain.Prefab.IdBlockRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.IdBlockRequest();
}
public static cloud.prefab.domain.Prefab.IdBlockRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IdBlockRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IdBlockRequest(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 cloud.prefab.domain.Prefab.IdBlockRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_ConfigServicePointer_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_ConfigServicePointer_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_ConfigValue_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_ConfigValue_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_Configs_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_Configs_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_Config_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_Config_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_ConfigRow_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_ConfigRow_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_LimitResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_LimitResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_LimitRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_LimitRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_FeatureFlagVariant_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_FeatureFlagVariant_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_Criteria_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_Criteria_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_Rule_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_Rule_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_Segment_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_Segment_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_VariantWeight_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_VariantWeight_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_FeatureFlag_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_FeatureFlag_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_User_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_User_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_User_AttributesEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_User_AttributesEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_ClientConfigValue_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_ClientConfigValue_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_ConfigEvaluations_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_ConfigEvaluations_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_ConfigEvaluations_ValuesEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_ConfigEvaluations_ValuesEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_LimitDefinition_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_LimitDefinition_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_LimitDefinitions_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_LimitDefinitions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_BufferedRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_BufferedRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_BatchRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_BatchRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_BasicResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_BasicResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_CreationResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_CreationResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_IdBlock_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_IdBlock_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_prefab_IdBlockRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_prefab_IdBlockRequest_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\014prefab.proto\022\006prefab\"W\n\024ConfigServiceP" +
"ointer\022\022\n\nproject_id\030\001 \001(\003\022\023\n\013start_at_i" +
"d\030\002 \001(\003\022\026\n\016project_env_id\030\003 \001(\003\"\357\001\n\013Conf" +
"igValue\022\r\n\003int\030\001 \001(\003H\000\022\020\n\006string\030\002 \001(\tH\000" +
"\022\017\n\005bytes\030\003 \001(\014H\000\022\020\n\006double\030\004 \001(\001H\000\022\016\n\004b" +
"ool\030\005 \001(\010H\000\022+\n\014feature_flag\030\006 \001(\0132\023.pref" +
"ab.FeatureFlagH\000\0223\n\020limit_definition\030\007 \001" +
"(\0132\027.prefab.LimitDefinitionH\000\022\"\n\007segment" +
"\030\010 \001(\0132\017.prefab.SegmentH\000B\006\n\004type\"h\n\007Con" +
"figs\022\037\n\007configs\030\001 \003(\0132\016.prefab.Config\022<\n" +
"\026config_service_pointer\030\002 \001(\0132\034.prefab.C" +
"onfigServicePointer\"\230\001\n\006Config\022\n\n\002id\030\001 \001" +
"(\003\022\022\n\nproject_id\030\002 \001(\003\022\013\n\003key\030\003 \001(\t\022\022\n\nc" +
"hanged_by\030\004 \001(\t\022\037\n\004rows\030\005 \003(\0132\021.prefab.C" +
"onfigRow\022,\n\010variants\030\006 \003(\0132\032.prefab.Feat" +
"ureFlagVariant\"Z\n\tConfigRow\022\026\n\016project_e" +
"nv_id\030\001 \001(\003\022\021\n\tnamespace\030\002 \001(\t\022\"\n\005value\030" +
"\003 \001(\0132\023.prefab.ConfigValue\"\333\003\n\rLimitResp" +
"onse\022\016\n\006passed\030\001 \001(\010\022\022\n\nexpires_at\030\002 \001(\003" +
"\022\026\n\016enforced_group\030\003 \001(\t\022\026\n\016current_buck" +
"et\030\004 \001(\003\022\024\n\014policy_group\030\005 \001(\t\022;\n\013policy" +
"_name\030\006 \001(\0162&.prefab.LimitResponse.Limit" +
"PolicyNames\022\024\n\014policy_limit\030\007 \001(\005\022\016\n\006amo" +
"unt\030\010 \001(\003\022\026\n\016limit_reset_at\030\t \001(\003\0229\n\014saf" +
"ety_level\030\n \001(\0162#.prefab.LimitDefinition" +
".SafetyLevel\"\251\001\n\020LimitPolicyNames\022\013\n\007NOT" +
"_SET\020\000\022\024\n\020SECONDLY_ROLLING\020\001\022\024\n\020MINUTELY" +
"_ROLLING\020\003\022\022\n\016HOURLY_ROLLING\020\005\022\021\n\rDAILY_" +
"ROLLING\020\007\022\023\n\017MONTHLY_ROLLING\020\010\022\014\n\010INFINI" +
"TE\020\t\022\022\n\016YEARLY_ROLLING\020\n\"\231\002\n\014LimitReques" +
"t\022\022\n\naccount_id\030\001 \001(\003\022\026\n\016acquire_amount\030" +
"\002 \001(\005\022\016\n\006groups\030\003 \003(\t\022:\n\016limit_combiner\030" +
"\004 \001(\0162\".prefab.LimitRequest.LimitCombine" +
"r\022\036\n\026allow_partial_response\030\005 \001(\010\0229\n\014saf" +
"ety_level\030\006 \001(\0162#.prefab.LimitDefinition" +
".SafetyLevel\"6\n\rLimitCombiner\022\013\n\007NOT_SET" +
"\020\000\022\013\n\007MINIMUM\020\001\022\013\n\007MAXIMUM\020\002\"\255\001\n\022Feature" +
"FlagVariant\022\020\n\003int\030\001 \001(\003H\000\210\001\001\022\023\n\006string\030" +
"\002 \001(\tH\001\210\001\001\022\023\n\006double\030\003 \001(\001H\002\210\001\001\022\021\n\004bool\030" +
"\004 \001(\010H\003\210\001\001\022\014\n\004name\030\005 \001(\t\022\023\n\013description\030" +
"\006 \001(\tB\006\n\004_intB\t\n\007_stringB\t\n\007_doubleB\007\n\005_" +
"bool\"\304\002\n\010Criteria\022\020\n\010property\030\001 \001(\t\0223\n\010o" +
"perator\030\002 \001(\0162!.prefab.Criteria.Criteria" +
"Operator\022\016\n\006values\030\003 \003(\t\"\340\001\n\020CriteriaOpe" +
"rator\022\013\n\007NOT_SET\020\000\022\021\n\rLOOKUP_KEY_IN\020\001\022\025\n" +
"\021LOOKUP_KEY_NOT_IN\020\002\022\n\n\006IN_SEG\020\003\022\016\n\nNOT_" +
"IN_SEG\020\004\022\017\n\013ALWAYS_TRUE\020\005\022\022\n\016PROP_IS_ONE" +
"_OF\020\006\022\026\n\022PROP_IS_NOT_ONE_OF\020\007\022\031\n\025PROP_EN" +
"DS_WITH_ONE_OF\020\010\022!\n\035PROP_DOES_NOT_END_WI" +
"TH_ONE_OF\020\t\"Z\n\004Rule\022\"\n\010criteria\030\001 \001(\0132\020." +
"prefab.Criteria\022.\n\017variant_weights\030\002 \003(\013" +
"2\025.prefab.VariantWeight\".\n\007Segment\022#\n\tcr" +
"iterion\030\001 \003(\0132\020.prefab.Criteria\"4\n\rVaria" +
"ntWeight\022\016\n\006weight\030\001 \001(\005\022\023\n\013variant_idx\030" +
"\002 \001(\005\"X\n\013FeatureFlag\022\016\n\006active\030\001 \001(\010\022\034\n\024" +
"inactive_variant_idx\030\002 \001(\005\022\033\n\005rules\030\005 \003(" +
"\0132\014.prefab.Rule\"\213\001\n\004User\022\023\n\006lookup\030\001 \001(\t" +
"H\000\210\001\001\0220\n\nattributes\030\002 \003(\0132\034.prefab.User." +
"AttributesEntry\0321\n\017AttributesEntry\022\013\n\003ke" +
"y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007_lookup\"\211\001" +
"\n\021ClientConfigValue\022\020\n\003int\030\001 \001(\003H\000\210\001\001\022\023\n" +
"\006string\030\002 \001(\tH\001\210\001\001\022\023\n\006double\030\003 \001(\001H\002\210\001\001\022" +
"\021\n\004bool\030\004 \001(\010H\003\210\001\001B\006\n\004_intB\t\n\007_stringB\t\n" +
"\007_doubleB\007\n\005_bool\"\224\001\n\021ConfigEvaluations\022" +
"5\n\006values\030\001 \003(\0132%.prefab.ConfigEvaluatio" +
"ns.ValuesEntry\032H\n\013ValuesEntry\022\013\n\003key\030\001 \001" +
"(\t\022(\n\005value\030\002 \001(\0132\031.prefab.ClientConfigV" +
"alue:\0028\001\"\250\002\n\017LimitDefinition\022;\n\013policy_n" +
"ame\030\002 \001(\0162&.prefab.LimitResponse.LimitPo" +
"licyNames\022\r\n\005limit\030\003 \001(\005\022\r\n\005burst\030\004 \001(\005\022" +
"\022\n\naccount_id\030\005 \001(\003\022\025\n\rlast_modified\030\006 \001" +
"(\003\022\022\n\nreturnable\030\007 \001(\010\0229\n\014safety_level\030\010" +
" \001(\0162#.prefab.LimitDefinition.SafetyLeve" +
"l\"@\n\013SafetyLevel\022\013\n\007NOT_SET\020\000\022\022\n\016L4_BEST" +
"_EFFORT\020\004\022\020\n\014L5_BOMBPROOF\020\005\"@\n\020LimitDefi" +
"nitions\022,\n\013definitions\030\001 \003(\0132\027.prefab.Li" +
"mitDefinition\"\212\001\n\017BufferedRequest\022\022\n\nacc" +
"ount_id\030\001 \001(\003\022\016\n\006method\030\002 \001(\t\022\013\n\003uri\030\003 \001" +
"(\t\022\014\n\004body\030\004 \001(\t\022\024\n\014limit_groups\030\005 \003(\t\022\024" +
"\n\014content_type\030\006 \001(\t\022\014\n\004fifo\030\007 \001(\010\"\224\001\n\014B" +
"atchRequest\022\022\n\naccount_id\030\001 \001(\003\022\016\n\006metho" +
"d\030\002 \001(\t\022\013\n\003uri\030\003 \001(\t\022\014\n\004body\030\004 \001(\t\022\024\n\014li" +
"mit_groups\030\005 \003(\t\022\026\n\016batch_template\030\006 \001(\t" +
"\022\027\n\017batch_separator\030\007 \001(\t\" \n\rBasicRespon" +
"se\022\017\n\007message\030\001 \001(\t\"3\n\020CreationResponse\022" +
"\017\n\007message\030\001 \001(\t\022\016\n\006new_id\030\002 \001(\003\"h\n\007IdBl" +
"ock\022\022\n\nproject_id\030\001 \001(\003\022\026\n\016project_env_i" +
"d\030\002 \001(\003\022\025\n\rsequence_name\030\003 \001(\t\022\r\n\005start\030" +
"\004 \001(\003\022\013\n\003end\030\005 \001(\003\"a\n\016IdBlockRequest\022\022\n\n" +
"project_id\030\001 \001(\003\022\026\n\016project_env_id\030\002 \001(\003" +
"\022\025\n\rsequence_name\030\003 \001(\t\022\014\n\004size\030\004 \001(\003*G\n" +
"\tOnFailure\022\013\n\007NOT_SET\020\000\022\020\n\014LOG_AND_PASS\020" +
"\001\022\020\n\014LOG_AND_FAIL\020\002\022\t\n\005THROW\020\0032O\n\020RateLi" +
"mitService\022;\n\nLimitCheck\022\024.prefab.LimitR" +
"equest\032\025.prefab.LimitResponse\"\0002\306\001\n\rConf" +
"igService\022>\n\tGetConfig\022\034.prefab.ConfigSe" +
"rvicePointer\032\017.prefab.Configs\"\0000\001\022?\n\014Get" +
"AllConfig\022\034.prefab.ConfigServicePointer\032" +
"\017.prefab.Configs\"\000\0224\n\006Upsert\022\016.prefab.Co" +
"nfig\032\030.prefab.CreationResponse\"\0002B\n\tIdSe" +
"rvice\0225\n\010GetBlock\022\026.prefab.IdBlockReques" +
"t\032\017.prefab.IdBlock\"\0002D\n\rClientService\0223\n" +
"\006GetAll\022\014.prefab.User\032\031.prefab.ConfigEva" +
"luations\"\000B\035\n\023cloud.prefab.domainB\006Prefa" +
"bb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_prefab_ConfigServicePointer_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_prefab_ConfigServicePointer_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_ConfigServicePointer_descriptor,
new java.lang.String[] { "ProjectId", "StartAtId", "ProjectEnvId", });
internal_static_prefab_ConfigValue_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_prefab_ConfigValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_ConfigValue_descriptor,
new java.lang.String[] { "Int", "String", "Bytes", "Double", "Bool", "FeatureFlag", "LimitDefinition", "Segment", "Type", });
internal_static_prefab_Configs_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_prefab_Configs_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_Configs_descriptor,
new java.lang.String[] { "Configs", "ConfigServicePointer", });
internal_static_prefab_Config_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_prefab_Config_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_Config_descriptor,
new java.lang.String[] { "Id", "ProjectId", "Key", "ChangedBy", "Rows", "Variants", });
internal_static_prefab_ConfigRow_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_prefab_ConfigRow_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_ConfigRow_descriptor,
new java.lang.String[] { "ProjectEnvId", "Namespace", "Value", });
internal_static_prefab_LimitResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_prefab_LimitResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_LimitResponse_descriptor,
new java.lang.String[] { "Passed", "ExpiresAt", "EnforcedGroup", "CurrentBucket", "PolicyGroup", "PolicyName", "PolicyLimit", "Amount", "LimitResetAt", "SafetyLevel", });
internal_static_prefab_LimitRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_prefab_LimitRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_LimitRequest_descriptor,
new java.lang.String[] { "AccountId", "AcquireAmount", "Groups", "LimitCombiner", "AllowPartialResponse", "SafetyLevel", });
internal_static_prefab_FeatureFlagVariant_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_prefab_FeatureFlagVariant_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_FeatureFlagVariant_descriptor,
new java.lang.String[] { "Int", "String", "Double", "Bool", "Name", "Description", "Int", "String", "Double", "Bool", });
internal_static_prefab_Criteria_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_prefab_Criteria_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_Criteria_descriptor,
new java.lang.String[] { "Property", "Operator", "Values", });
internal_static_prefab_Rule_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_prefab_Rule_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_Rule_descriptor,
new java.lang.String[] { "Criteria", "VariantWeights", });
internal_static_prefab_Segment_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_prefab_Segment_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_Segment_descriptor,
new java.lang.String[] { "Criterion", });
internal_static_prefab_VariantWeight_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_prefab_VariantWeight_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_VariantWeight_descriptor,
new java.lang.String[] { "Weight", "VariantIdx", });
internal_static_prefab_FeatureFlag_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_prefab_FeatureFlag_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_FeatureFlag_descriptor,
new java.lang.String[] { "Active", "InactiveVariantIdx", "Rules", });
internal_static_prefab_User_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_prefab_User_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_User_descriptor,
new java.lang.String[] { "Lookup", "Attributes", "Lookup", });
internal_static_prefab_User_AttributesEntry_descriptor =
internal_static_prefab_User_descriptor.getNestedTypes().get(0);
internal_static_prefab_User_AttributesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_User_AttributesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_prefab_ClientConfigValue_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_prefab_ClientConfigValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_ClientConfigValue_descriptor,
new java.lang.String[] { "Int", "String", "Double", "Bool", "Int", "String", "Double", "Bool", });
internal_static_prefab_ConfigEvaluations_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_prefab_ConfigEvaluations_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_ConfigEvaluations_descriptor,
new java.lang.String[] { "Values", });
internal_static_prefab_ConfigEvaluations_ValuesEntry_descriptor =
internal_static_prefab_ConfigEvaluations_descriptor.getNestedTypes().get(0);
internal_static_prefab_ConfigEvaluations_ValuesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_ConfigEvaluations_ValuesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_prefab_LimitDefinition_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_prefab_LimitDefinition_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_LimitDefinition_descriptor,
new java.lang.String[] { "PolicyName", "Limit", "Burst", "AccountId", "LastModified", "Returnable", "SafetyLevel", });
internal_static_prefab_LimitDefinitions_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_prefab_LimitDefinitions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_LimitDefinitions_descriptor,
new java.lang.String[] { "Definitions", });
internal_static_prefab_BufferedRequest_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_prefab_BufferedRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_BufferedRequest_descriptor,
new java.lang.String[] { "AccountId", "Method", "Uri", "Body", "LimitGroups", "ContentType", "Fifo", });
internal_static_prefab_BatchRequest_descriptor =
getDescriptor().getMessageTypes().get(19);
internal_static_prefab_BatchRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_BatchRequest_descriptor,
new java.lang.String[] { "AccountId", "Method", "Uri", "Body", "LimitGroups", "BatchTemplate", "BatchSeparator", });
internal_static_prefab_BasicResponse_descriptor =
getDescriptor().getMessageTypes().get(20);
internal_static_prefab_BasicResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_BasicResponse_descriptor,
new java.lang.String[] { "Message", });
internal_static_prefab_CreationResponse_descriptor =
getDescriptor().getMessageTypes().get(21);
internal_static_prefab_CreationResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_CreationResponse_descriptor,
new java.lang.String[] { "Message", "NewId", });
internal_static_prefab_IdBlock_descriptor =
getDescriptor().getMessageTypes().get(22);
internal_static_prefab_IdBlock_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_IdBlock_descriptor,
new java.lang.String[] { "ProjectId", "ProjectEnvId", "SequenceName", "Start", "End", });
internal_static_prefab_IdBlockRequest_descriptor =
getDescriptor().getMessageTypes().get(23);
internal_static_prefab_IdBlockRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_prefab_IdBlockRequest_descriptor,
new java.lang.String[] { "ProjectId", "ProjectEnvId", "SequenceName", "Size", });
}
// @@protoc_insertion_point(outer_class_scope)
}