cloud.prefab.domain.Prefab Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client Show documentation
Show all versions of client Show documentation
API Client for https://prefab.cloud: rate limits, feature flags and semaphores as a service
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: prefab.proto
package cloud.prefab.domain;
public final class Prefab {
private Prefab() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code prefab.ProvidedSource}
*/
public enum ProvidedSource
implements com.google.protobuf.ProtocolMessageEnum {
/**
* PROVIDED_SOURCE_NOT_SET = 0;
*/
PROVIDED_SOURCE_NOT_SET(0),
/**
* ENV_VAR = 1;
*/
ENV_VAR(1),
UNRECOGNIZED(-1),
;
/**
* PROVIDED_SOURCE_NOT_SET = 0;
*/
public static final int PROVIDED_SOURCE_NOT_SET_VALUE = 0;
/**
* ENV_VAR = 1;
*/
public static final int ENV_VAR_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ProvidedSource 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 ProvidedSource forNumber(int value) {
switch (value) {
case 0: return PROVIDED_SOURCE_NOT_SET;
case 1: return ENV_VAR;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ProvidedSource> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ProvidedSource findValueByNumber(int number) {
return ProvidedSource.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.getDescriptor().getEnumTypes().get(0);
}
private static final ProvidedSource[] VALUES = values();
public static ProvidedSource 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 ProvidedSource(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:prefab.ProvidedSource)
}
/**
* Protobuf enum {@code prefab.ConfigType}
*/
public enum ConfigType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* proto null
*
*
* NOT_SET_CONFIG_TYPE = 0;
*/
NOT_SET_CONFIG_TYPE(0),
/**
* CONFIG = 1;
*/
CONFIG(1),
/**
* FEATURE_FLAG = 2;
*/
FEATURE_FLAG(2),
/**
* LOG_LEVEL = 3;
*/
LOG_LEVEL(3),
/**
* SEGMENT = 4;
*/
SEGMENT(4),
/**
* LIMIT_DEFINITION = 5;
*/
LIMIT_DEFINITION(5),
/**
* DELETED = 6;
*/
DELETED(6),
UNRECOGNIZED(-1),
;
/**
*
* proto null
*
*
* NOT_SET_CONFIG_TYPE = 0;
*/
public static final int NOT_SET_CONFIG_TYPE_VALUE = 0;
/**
* CONFIG = 1;
*/
public static final int CONFIG_VALUE = 1;
/**
* FEATURE_FLAG = 2;
*/
public static final int FEATURE_FLAG_VALUE = 2;
/**
* LOG_LEVEL = 3;
*/
public static final int LOG_LEVEL_VALUE = 3;
/**
* SEGMENT = 4;
*/
public static final int SEGMENT_VALUE = 4;
/**
* LIMIT_DEFINITION = 5;
*/
public static final int LIMIT_DEFINITION_VALUE = 5;
/**
* DELETED = 6;
*/
public static final int DELETED_VALUE = 6;
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 ConfigType 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 ConfigType forNumber(int value) {
switch (value) {
case 0: return NOT_SET_CONFIG_TYPE;
case 1: return CONFIG;
case 2: return FEATURE_FLAG;
case 3: return LOG_LEVEL;
case 4: return SEGMENT;
case 5: return LIMIT_DEFINITION;
case 6: return DELETED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ConfigType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ConfigType findValueByNumber(int number) {
return ConfigType.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.getDescriptor().getEnumTypes().get(1);
}
private static final ConfigType[] VALUES = values();
public static ConfigType 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 ConfigType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:prefab.ConfigType)
}
/**
* Protobuf enum {@code prefab.LogLevel}
*/
public enum LogLevel
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NOT_SET_LOG_LEVEL = 0;
*/
NOT_SET_LOG_LEVEL(0),
/**
* TRACE = 1;
*/
TRACE(1),
/**
* DEBUG = 2;
*/
DEBUG(2),
/**
* INFO = 3;
*/
INFO(3),
/**
*
* NOTICE = 4;
*
*
* WARN = 5;
*/
WARN(5),
/**
* ERROR = 6;
*/
ERROR(6),
/**
*
* CRITICAL = 7;
* ALERT = 8;
*
*
* FATAL = 9;
*/
FATAL(9),
UNRECOGNIZED(-1),
;
/**
* NOT_SET_LOG_LEVEL = 0;
*/
public static final int NOT_SET_LOG_LEVEL_VALUE = 0;
/**
* TRACE = 1;
*/
public static final int TRACE_VALUE = 1;
/**
* DEBUG = 2;
*/
public static final int DEBUG_VALUE = 2;
/**
* INFO = 3;
*/
public static final int INFO_VALUE = 3;
/**
*
* NOTICE = 4;
*
*
* WARN = 5;
*/
public static final int WARN_VALUE = 5;
/**
* ERROR = 6;
*/
public static final int ERROR_VALUE = 6;
/**
*
* CRITICAL = 7;
* ALERT = 8;
*
*
* FATAL = 9;
*/
public static final int FATAL_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 LogLevel 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 LogLevel forNumber(int value) {
switch (value) {
case 0: return NOT_SET_LOG_LEVEL;
case 1: return TRACE;
case 2: return DEBUG;
case 3: return INFO;
case 5: return WARN;
case 6: return ERROR;
case 9: return FATAL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
LogLevel> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public LogLevel findValueByNumber(int number) {
return LogLevel.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.getDescriptor().getEnumTypes().get(2);
}
private static final LogLevel[] VALUES = values();
public static LogLevel 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 LogLevel(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:prefab.LogLevel)
}
/**
* Protobuf enum {@code prefab.OnFailure}
*/
public enum OnFailure
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NOT_SET = 0;
*/
NOT_SET(0),
/**
* LOG_AND_PASS = 1;
*/
LOG_AND_PASS(1),
/**
* LOG_AND_FAIL = 2;
*/
LOG_AND_FAIL(2),
/**
* THROW = 3;
*/
THROW(3),
UNRECOGNIZED(-1),
;
/**
* NOT_SET = 0;
*/
public static final int NOT_SET_VALUE = 0;
/**
* LOG_AND_PASS = 1;
*/
public static final int LOG_AND_PASS_VALUE = 1;
/**
* LOG_AND_FAIL = 2;
*/
public static final int LOG_AND_FAIL_VALUE = 2;
/**
* THROW = 3;
*/
public static final int THROW_VALUE = 3;
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 OnFailure 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 OnFailure forNumber(int value) {
switch (value) {
case 0: return NOT_SET;
case 1: return LOG_AND_PASS;
case 2: return LOG_AND_FAIL;
case 3: return THROW;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
OnFailure> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public OnFailure findValueByNumber(int number) {
return OnFailure.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.getDescriptor().getEnumTypes().get(3);
}
private static final OnFailure[] VALUES = values();
public static OnFailure 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 OnFailure(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:prefab.OnFailure)
}
public interface ConfigServicePointerOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.ConfigServicePointer)
com.google.protobuf.MessageOrBuilder {
/**
* int64 project_id = 1;
* @return The projectId.
*/
long getProjectId();
/**
* int64 start_at_id = 2;
* @return The startAtId.
*/
long getStartAtId();
/**
* int64 project_env_id = 3;
* @return The projectEnvId.
*/
long getProjectEnvId();
}
/**
* Protobuf type {@code prefab.ConfigServicePointer}
*/
public static final class ConfigServicePointer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.ConfigServicePointer)
ConfigServicePointerOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConfigServicePointer.newBuilder() to construct.
private ConfigServicePointer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigServicePointer() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConfigServicePointer();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigServicePointer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigServicePointer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.ConfigServicePointer.class, cloud.prefab.domain.Prefab.ConfigServicePointer.Builder.class);
}
public static final int PROJECT_ID_FIELD_NUMBER = 1;
private long projectId_ = 0L;
/**
* int64 project_id = 1;
* @return The projectId.
*/
@java.lang.Override
public long getProjectId() {
return projectId_;
}
public static final int START_AT_ID_FIELD_NUMBER = 2;
private long startAtId_ = 0L;
/**
* int64 start_at_id = 2;
* @return The startAtId.
*/
@java.lang.Override
public long getStartAtId() {
return startAtId_;
}
public static final int PROJECT_ENV_ID_FIELD_NUMBER = 3;
private long projectEnvId_ = 0L;
/**
* int64 project_env_id = 3;
* @return The projectEnvId.
*/
@java.lang.Override
public long getProjectEnvId() {
return projectEnvId_;
}
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 (startAtId_ != 0L) {
output.writeInt64(2, startAtId_);
}
if (projectEnvId_ != 0L) {
output.writeInt64(3, projectEnvId_);
}
getUnknownFields().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 (startAtId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, startAtId_);
}
if (projectEnvId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, projectEnvId_);
}
size += getUnknownFields().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.ConfigServicePointer)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.ConfigServicePointer other = (cloud.prefab.domain.Prefab.ConfigServicePointer) obj;
if (getProjectId()
!= other.getProjectId()) return false;
if (getStartAtId()
!= other.getStartAtId()) return false;
if (getProjectEnvId()
!= other.getProjectEnvId()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + START_AT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartAtId());
hash = (37 * hash) + PROJECT_ENV_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getProjectEnvId());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.ConfigServicePointer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ConfigServicePointer 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.ConfigServicePointer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ConfigServicePointer 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.ConfigServicePointer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ConfigServicePointer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.ConfigServicePointer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ConfigServicePointer 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.ConfigServicePointer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ConfigServicePointer 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.ConfigServicePointer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ConfigServicePointer 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.ConfigServicePointer 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.ConfigServicePointer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.ConfigServicePointer)
cloud.prefab.domain.Prefab.ConfigServicePointerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigServicePointer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigServicePointer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.ConfigServicePointer.class, cloud.prefab.domain.Prefab.ConfigServicePointer.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.ConfigServicePointer.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
projectId_ = 0L;
startAtId_ = 0L;
projectEnvId_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigServicePointer_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigServicePointer getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.ConfigServicePointer.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigServicePointer build() {
cloud.prefab.domain.Prefab.ConfigServicePointer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigServicePointer buildPartial() {
cloud.prefab.domain.Prefab.ConfigServicePointer result = new cloud.prefab.domain.Prefab.ConfigServicePointer(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cloud.prefab.domain.Prefab.ConfigServicePointer result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.projectId_ = projectId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.startAtId_ = startAtId_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.projectEnvId_ = projectEnvId_;
}
}
@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.ConfigServicePointer) {
return mergeFrom((cloud.prefab.domain.Prefab.ConfigServicePointer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.ConfigServicePointer other) {
if (other == cloud.prefab.domain.Prefab.ConfigServicePointer.getDefaultInstance()) return this;
if (other.getProjectId() != 0L) {
setProjectId(other.getProjectId());
}
if (other.getStartAtId() != 0L) {
setStartAtId(other.getStartAtId());
}
if (other.getProjectEnvId() != 0L) {
setProjectEnvId(other.getProjectEnvId());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
projectId_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
startAtId_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
projectEnvId_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int64 project_id = 1;
* @return This builder for chaining.
*/
public Builder clearProjectId() {
bitField0_ = (bitField0_ & ~0x00000001);
projectId_ = 0L;
onChanged();
return this;
}
private long startAtId_ ;
/**
* int64 start_at_id = 2;
* @return The startAtId.
*/
@java.lang.Override
public long getStartAtId() {
return startAtId_;
}
/**
* int64 start_at_id = 2;
* @param value The startAtId to set.
* @return This builder for chaining.
*/
public Builder setStartAtId(long value) {
startAtId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int64 start_at_id = 2;
* @return This builder for chaining.
*/
public Builder clearStartAtId() {
bitField0_ = (bitField0_ & ~0x00000002);
startAtId_ = 0L;
onChanged();
return this;
}
private long projectEnvId_ ;
/**
* int64 project_env_id = 3;
* @return The projectEnvId.
*/
@java.lang.Override
public long getProjectEnvId() {
return projectEnvId_;
}
/**
* int64 project_env_id = 3;
* @param value The projectEnvId to set.
* @return This builder for chaining.
*/
public Builder setProjectEnvId(long value) {
projectEnvId_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* int64 project_env_id = 3;
* @return This builder for chaining.
*/
public Builder clearProjectEnvId() {
bitField0_ = (bitField0_ & ~0x00000004);
projectEnvId_ = 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.ConfigServicePointer)
}
// @@protoc_insertion_point(class_scope:prefab.ConfigServicePointer)
private static final cloud.prefab.domain.Prefab.ConfigServicePointer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ConfigServicePointer();
}
public static cloud.prefab.domain.Prefab.ConfigServicePointer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConfigServicePointer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.ConfigServicePointer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.ConfigValue)
com.google.protobuf.MessageOrBuilder {
/**
* int64 int = 1;
* @return Whether the int field is set.
*/
boolean hasInt();
/**
* int64 int = 1;
* @return The int.
*/
long getInt();
/**
* string string = 2;
* @return Whether the string field is set.
*/
boolean hasString();
/**
* string string = 2;
* @return The string.
*/
java.lang.String getString();
/**
* string string = 2;
* @return The bytes for string.
*/
com.google.protobuf.ByteString
getStringBytes();
/**
* bytes bytes = 3;
* @return Whether the bytes field is set.
*/
boolean hasBytes();
/**
* bytes bytes = 3;
* @return The bytes.
*/
com.google.protobuf.ByteString getBytes();
/**
* double double = 4;
* @return Whether the double field is set.
*/
boolean hasDouble();
/**
* double double = 4;
* @return The double.
*/
double getDouble();
/**
* bool bool = 5;
* @return Whether the bool field is set.
*/
boolean hasBool();
/**
* bool bool = 5;
* @return The bool.
*/
boolean getBool();
/**
* .prefab.WeightedValues weighted_values = 6;
* @return Whether the weightedValues field is set.
*/
boolean hasWeightedValues();
/**
* .prefab.WeightedValues weighted_values = 6;
* @return The weightedValues.
*/
cloud.prefab.domain.Prefab.WeightedValues getWeightedValues();
/**
* .prefab.WeightedValues weighted_values = 6;
*/
cloud.prefab.domain.Prefab.WeightedValuesOrBuilder getWeightedValuesOrBuilder();
/**
* .prefab.LimitDefinition limit_definition = 7;
* @return Whether the limitDefinition field is set.
*/
boolean hasLimitDefinition();
/**
* .prefab.LimitDefinition limit_definition = 7;
* @return The limitDefinition.
*/
cloud.prefab.domain.Prefab.LimitDefinition getLimitDefinition();
/**
* .prefab.LimitDefinition limit_definition = 7;
*/
cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder getLimitDefinitionOrBuilder();
/**
* .prefab.LogLevel log_level = 9;
* @return Whether the logLevel field is set.
*/
boolean hasLogLevel();
/**
* .prefab.LogLevel log_level = 9;
* @return The enum numeric value on the wire for logLevel.
*/
int getLogLevelValue();
/**
* .prefab.LogLevel log_level = 9;
* @return The logLevel.
*/
cloud.prefab.domain.Prefab.LogLevel getLogLevel();
/**
* .prefab.StringList string_list = 10;
* @return Whether the stringList field is set.
*/
boolean hasStringList();
/**
* .prefab.StringList string_list = 10;
* @return The stringList.
*/
cloud.prefab.domain.Prefab.StringList getStringList();
/**
* .prefab.StringList string_list = 10;
*/
cloud.prefab.domain.Prefab.StringListOrBuilder getStringListOrBuilder();
/**
* .prefab.IntRange int_range = 11;
* @return Whether the intRange field is set.
*/
boolean hasIntRange();
/**
* .prefab.IntRange int_range = 11;
* @return The intRange.
*/
cloud.prefab.domain.Prefab.IntRange getIntRange();
/**
* .prefab.IntRange int_range = 11;
*/
cloud.prefab.domain.Prefab.IntRangeOrBuilder getIntRangeOrBuilder();
/**
* .prefab.Provided provided = 12;
* @return Whether the provided field is set.
*/
boolean hasProvided();
/**
* .prefab.Provided provided = 12;
* @return The provided.
*/
cloud.prefab.domain.Prefab.Provided getProvided();
/**
* .prefab.Provided provided = 12;
*/
cloud.prefab.domain.Prefab.ProvidedOrBuilder getProvidedOrBuilder();
/**
* .prefab.IsoDuration duration = 15;
* @return Whether the duration field is set.
*/
boolean hasDuration();
/**
* .prefab.IsoDuration duration = 15;
* @return The duration.
*/
cloud.prefab.domain.Prefab.IsoDuration getDuration();
/**
* .prefab.IsoDuration duration = 15;
*/
cloud.prefab.domain.Prefab.IsoDurationOrBuilder getDurationOrBuilder();
/**
* .prefab.Json json = 16;
* @return Whether the json field is set.
*/
boolean hasJson();
/**
* .prefab.Json json = 16;
* @return The json.
*/
cloud.prefab.domain.Prefab.Json getJson();
/**
* .prefab.Json json = 16;
*/
cloud.prefab.domain.Prefab.JsonOrBuilder getJsonOrBuilder();
/**
*
* don't log or telemetry this value
*
*
* optional bool confidential = 13;
* @return Whether the confidential field is set.
*/
boolean hasConfidential();
/**
*
* don't log or telemetry this value
*
*
* optional bool confidential = 13;
* @return The confidential.
*/
boolean getConfidential();
/**
*
* key name to decrypt with
*
*
* optional string decrypt_with = 14;
* @return Whether the decryptWith field is set.
*/
boolean hasDecryptWith();
/**
*
* key name to decrypt with
*
*
* optional string decrypt_with = 14;
* @return The decryptWith.
*/
java.lang.String getDecryptWith();
/**
*
* key name to decrypt with
*
*
* optional string decrypt_with = 14;
* @return The bytes for decryptWith.
*/
com.google.protobuf.ByteString
getDecryptWithBytes();
cloud.prefab.domain.Prefab.ConfigValue.TypeCase getTypeCase();
}
/**
* Protobuf type {@code prefab.ConfigValue}
*/
public static final class ConfigValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.ConfigValue)
ConfigValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConfigValue.newBuilder() to construct.
private ConfigValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigValue() {
decryptWith_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConfigValue();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.ConfigValue.class, cloud.prefab.domain.Prefab.ConfigValue.Builder.class);
}
private int bitField0_;
private int typeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object type_;
public enum TypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
INT(1),
STRING(2),
BYTES(3),
DOUBLE(4),
BOOL(5),
WEIGHTED_VALUES(6),
LIMIT_DEFINITION(7),
LOG_LEVEL(9),
STRING_LIST(10),
INT_RANGE(11),
PROVIDED(12),
DURATION(15),
JSON(16),
TYPE_NOT_SET(0);
private final int value;
private TypeCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TypeCase valueOf(int value) {
return forNumber(value);
}
public static TypeCase forNumber(int value) {
switch (value) {
case 1: return INT;
case 2: return STRING;
case 3: return BYTES;
case 4: return DOUBLE;
case 5: return BOOL;
case 6: return WEIGHTED_VALUES;
case 7: return LIMIT_DEFINITION;
case 9: return LOG_LEVEL;
case 10: return STRING_LIST;
case 11: return INT_RANGE;
case 12: return PROVIDED;
case 15: return DURATION;
case 16: return JSON;
case 0: return TYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public TypeCase
getTypeCase() {
return TypeCase.forNumber(
typeCase_);
}
public static final int INT_FIELD_NUMBER = 1;
/**
* int64 int = 1;
* @return Whether the int field is set.
*/
@java.lang.Override
public boolean hasInt() {
return typeCase_ == 1;
}
/**
* int64 int = 1;
* @return The int.
*/
@java.lang.Override
public long getInt() {
if (typeCase_ == 1) {
return (java.lang.Long) type_;
}
return 0L;
}
public static final int STRING_FIELD_NUMBER = 2;
/**
* string string = 2;
* @return Whether the string field is set.
*/
public boolean hasString() {
return typeCase_ == 2;
}
/**
* string string = 2;
* @return The string.
*/
public java.lang.String getString() {
java.lang.Object ref = "";
if (typeCase_ == 2) {
ref = type_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (typeCase_ == 2) {
type_ = s;
}
return s;
}
}
/**
* string string = 2;
* @return The bytes for string.
*/
public com.google.protobuf.ByteString
getStringBytes() {
java.lang.Object ref = "";
if (typeCase_ == 2) {
ref = type_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (typeCase_ == 2) {
type_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BYTES_FIELD_NUMBER = 3;
/**
* bytes bytes = 3;
* @return Whether the bytes field is set.
*/
@java.lang.Override
public boolean hasBytes() {
return typeCase_ == 3;
}
/**
* bytes bytes = 3;
* @return The bytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBytes() {
if (typeCase_ == 3) {
return (com.google.protobuf.ByteString) type_;
}
return com.google.protobuf.ByteString.EMPTY;
}
public static final int DOUBLE_FIELD_NUMBER = 4;
/**
* double double = 4;
* @return Whether the double field is set.
*/
@java.lang.Override
public boolean hasDouble() {
return typeCase_ == 4;
}
/**
* double double = 4;
* @return The double.
*/
@java.lang.Override
public double getDouble() {
if (typeCase_ == 4) {
return (java.lang.Double) type_;
}
return 0D;
}
public static final int BOOL_FIELD_NUMBER = 5;
/**
* bool bool = 5;
* @return Whether the bool field is set.
*/
@java.lang.Override
public boolean hasBool() {
return typeCase_ == 5;
}
/**
* bool bool = 5;
* @return The bool.
*/
@java.lang.Override
public boolean getBool() {
if (typeCase_ == 5) {
return (java.lang.Boolean) type_;
}
return false;
}
public static final int WEIGHTED_VALUES_FIELD_NUMBER = 6;
/**
* .prefab.WeightedValues weighted_values = 6;
* @return Whether the weightedValues field is set.
*/
@java.lang.Override
public boolean hasWeightedValues() {
return typeCase_ == 6;
}
/**
* .prefab.WeightedValues weighted_values = 6;
* @return The weightedValues.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.WeightedValues getWeightedValues() {
if (typeCase_ == 6) {
return (cloud.prefab.domain.Prefab.WeightedValues) type_;
}
return cloud.prefab.domain.Prefab.WeightedValues.getDefaultInstance();
}
/**
* .prefab.WeightedValues weighted_values = 6;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.WeightedValuesOrBuilder getWeightedValuesOrBuilder() {
if (typeCase_ == 6) {
return (cloud.prefab.domain.Prefab.WeightedValues) type_;
}
return cloud.prefab.domain.Prefab.WeightedValues.getDefaultInstance();
}
public static final int LIMIT_DEFINITION_FIELD_NUMBER = 7;
/**
* .prefab.LimitDefinition limit_definition = 7;
* @return Whether the limitDefinition field is set.
*/
@java.lang.Override
public boolean hasLimitDefinition() {
return typeCase_ == 7;
}
/**
* .prefab.LimitDefinition limit_definition = 7;
* @return The limitDefinition.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitDefinition getLimitDefinition() {
if (typeCase_ == 7) {
return (cloud.prefab.domain.Prefab.LimitDefinition) type_;
}
return cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance();
}
/**
* .prefab.LimitDefinition limit_definition = 7;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder getLimitDefinitionOrBuilder() {
if (typeCase_ == 7) {
return (cloud.prefab.domain.Prefab.LimitDefinition) type_;
}
return cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance();
}
public static final int LOG_LEVEL_FIELD_NUMBER = 9;
/**
* .prefab.LogLevel log_level = 9;
* @return Whether the logLevel field is set.
*/
public boolean hasLogLevel() {
return typeCase_ == 9;
}
/**
* .prefab.LogLevel log_level = 9;
* @return The enum numeric value on the wire for logLevel.
*/
public int getLogLevelValue() {
if (typeCase_ == 9) {
return (java.lang.Integer) type_;
}
return 0;
}
/**
* .prefab.LogLevel log_level = 9;
* @return The logLevel.
*/
public cloud.prefab.domain.Prefab.LogLevel getLogLevel() {
if (typeCase_ == 9) {
cloud.prefab.domain.Prefab.LogLevel result = cloud.prefab.domain.Prefab.LogLevel.forNumber(
(java.lang.Integer) type_);
return result == null ? cloud.prefab.domain.Prefab.LogLevel.UNRECOGNIZED : result;
}
return cloud.prefab.domain.Prefab.LogLevel.NOT_SET_LOG_LEVEL;
}
public static final int STRING_LIST_FIELD_NUMBER = 10;
/**
* .prefab.StringList string_list = 10;
* @return Whether the stringList field is set.
*/
@java.lang.Override
public boolean hasStringList() {
return typeCase_ == 10;
}
/**
* .prefab.StringList string_list = 10;
* @return The stringList.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.StringList getStringList() {
if (typeCase_ == 10) {
return (cloud.prefab.domain.Prefab.StringList) type_;
}
return cloud.prefab.domain.Prefab.StringList.getDefaultInstance();
}
/**
* .prefab.StringList string_list = 10;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.StringListOrBuilder getStringListOrBuilder() {
if (typeCase_ == 10) {
return (cloud.prefab.domain.Prefab.StringList) type_;
}
return cloud.prefab.domain.Prefab.StringList.getDefaultInstance();
}
public static final int INT_RANGE_FIELD_NUMBER = 11;
/**
* .prefab.IntRange int_range = 11;
* @return Whether the intRange field is set.
*/
@java.lang.Override
public boolean hasIntRange() {
return typeCase_ == 11;
}
/**
* .prefab.IntRange int_range = 11;
* @return The intRange.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.IntRange getIntRange() {
if (typeCase_ == 11) {
return (cloud.prefab.domain.Prefab.IntRange) type_;
}
return cloud.prefab.domain.Prefab.IntRange.getDefaultInstance();
}
/**
* .prefab.IntRange int_range = 11;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.IntRangeOrBuilder getIntRangeOrBuilder() {
if (typeCase_ == 11) {
return (cloud.prefab.domain.Prefab.IntRange) type_;
}
return cloud.prefab.domain.Prefab.IntRange.getDefaultInstance();
}
public static final int PROVIDED_FIELD_NUMBER = 12;
/**
* .prefab.Provided provided = 12;
* @return Whether the provided field is set.
*/
@java.lang.Override
public boolean hasProvided() {
return typeCase_ == 12;
}
/**
* .prefab.Provided provided = 12;
* @return The provided.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.Provided getProvided() {
if (typeCase_ == 12) {
return (cloud.prefab.domain.Prefab.Provided) type_;
}
return cloud.prefab.domain.Prefab.Provided.getDefaultInstance();
}
/**
* .prefab.Provided provided = 12;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ProvidedOrBuilder getProvidedOrBuilder() {
if (typeCase_ == 12) {
return (cloud.prefab.domain.Prefab.Provided) type_;
}
return cloud.prefab.domain.Prefab.Provided.getDefaultInstance();
}
public static final int DURATION_FIELD_NUMBER = 15;
/**
* .prefab.IsoDuration duration = 15;
* @return Whether the duration field is set.
*/
@java.lang.Override
public boolean hasDuration() {
return typeCase_ == 15;
}
/**
* .prefab.IsoDuration duration = 15;
* @return The duration.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.IsoDuration getDuration() {
if (typeCase_ == 15) {
return (cloud.prefab.domain.Prefab.IsoDuration) type_;
}
return cloud.prefab.domain.Prefab.IsoDuration.getDefaultInstance();
}
/**
* .prefab.IsoDuration duration = 15;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.IsoDurationOrBuilder getDurationOrBuilder() {
if (typeCase_ == 15) {
return (cloud.prefab.domain.Prefab.IsoDuration) type_;
}
return cloud.prefab.domain.Prefab.IsoDuration.getDefaultInstance();
}
public static final int JSON_FIELD_NUMBER = 16;
/**
* .prefab.Json json = 16;
* @return Whether the json field is set.
*/
@java.lang.Override
public boolean hasJson() {
return typeCase_ == 16;
}
/**
* .prefab.Json json = 16;
* @return The json.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.Json getJson() {
if (typeCase_ == 16) {
return (cloud.prefab.domain.Prefab.Json) type_;
}
return cloud.prefab.domain.Prefab.Json.getDefaultInstance();
}
/**
* .prefab.Json json = 16;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.JsonOrBuilder getJsonOrBuilder() {
if (typeCase_ == 16) {
return (cloud.prefab.domain.Prefab.Json) type_;
}
return cloud.prefab.domain.Prefab.Json.getDefaultInstance();
}
public static final int CONFIDENTIAL_FIELD_NUMBER = 13;
private boolean confidential_ = false;
/**
*
* don't log or telemetry this value
*
*
* optional bool confidential = 13;
* @return Whether the confidential field is set.
*/
@java.lang.Override
public boolean hasConfidential() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* don't log or telemetry this value
*
*
* optional bool confidential = 13;
* @return The confidential.
*/
@java.lang.Override
public boolean getConfidential() {
return confidential_;
}
public static final int DECRYPT_WITH_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private volatile java.lang.Object decryptWith_ = "";
/**
*
* key name to decrypt with
*
*
* optional string decrypt_with = 14;
* @return Whether the decryptWith field is set.
*/
@java.lang.Override
public boolean hasDecryptWith() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* key name to decrypt with
*
*
* optional string decrypt_with = 14;
* @return The decryptWith.
*/
@java.lang.Override
public java.lang.String getDecryptWith() {
java.lang.Object ref = decryptWith_;
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();
decryptWith_ = s;
return s;
}
}
/**
*
* key name to decrypt with
*
*
* optional string decrypt_with = 14;
* @return The bytes for decryptWith.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDecryptWithBytes() {
java.lang.Object ref = decryptWith_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
decryptWith_ = 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 (typeCase_ == 1) {
output.writeInt64(
1, (long)((java.lang.Long) type_));
}
if (typeCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_);
}
if (typeCase_ == 3) {
output.writeBytes(
3, (com.google.protobuf.ByteString) type_);
}
if (typeCase_ == 4) {
output.writeDouble(
4, (double)((java.lang.Double) type_));
}
if (typeCase_ == 5) {
output.writeBool(
5, (boolean)((java.lang.Boolean) type_));
}
if (typeCase_ == 6) {
output.writeMessage(6, (cloud.prefab.domain.Prefab.WeightedValues) type_);
}
if (typeCase_ == 7) {
output.writeMessage(7, (cloud.prefab.domain.Prefab.LimitDefinition) type_);
}
if (typeCase_ == 9) {
output.writeEnum(9, ((java.lang.Integer) type_));
}
if (typeCase_ == 10) {
output.writeMessage(10, (cloud.prefab.domain.Prefab.StringList) type_);
}
if (typeCase_ == 11) {
output.writeMessage(11, (cloud.prefab.domain.Prefab.IntRange) type_);
}
if (typeCase_ == 12) {
output.writeMessage(12, (cloud.prefab.domain.Prefab.Provided) type_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBool(13, confidential_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, decryptWith_);
}
if (typeCase_ == 15) {
output.writeMessage(15, (cloud.prefab.domain.Prefab.IsoDuration) type_);
}
if (typeCase_ == 16) {
output.writeMessage(16, (cloud.prefab.domain.Prefab.Json) type_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (typeCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(
1, (long)((java.lang.Long) type_));
}
if (typeCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_);
}
if (typeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
3, (com.google.protobuf.ByteString) type_);
}
if (typeCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(
4, (double)((java.lang.Double) type_));
}
if (typeCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
5, (boolean)((java.lang.Boolean) type_));
}
if (typeCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (cloud.prefab.domain.Prefab.WeightedValues) type_);
}
if (typeCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (cloud.prefab.domain.Prefab.LimitDefinition) type_);
}
if (typeCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, ((java.lang.Integer) type_));
}
if (typeCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (cloud.prefab.domain.Prefab.StringList) type_);
}
if (typeCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (cloud.prefab.domain.Prefab.IntRange) type_);
}
if (typeCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (cloud.prefab.domain.Prefab.Provided) type_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(13, confidential_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, decryptWith_);
}
if (typeCase_ == 15) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, (cloud.prefab.domain.Prefab.IsoDuration) type_);
}
if (typeCase_ == 16) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, (cloud.prefab.domain.Prefab.Json) type_);
}
size += getUnknownFields().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.ConfigValue)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.ConfigValue other = (cloud.prefab.domain.Prefab.ConfigValue) obj;
if (hasConfidential() != other.hasConfidential()) return false;
if (hasConfidential()) {
if (getConfidential()
!= other.getConfidential()) return false;
}
if (hasDecryptWith() != other.hasDecryptWith()) return false;
if (hasDecryptWith()) {
if (!getDecryptWith()
.equals(other.getDecryptWith())) return false;
}
if (!getTypeCase().equals(other.getTypeCase())) return false;
switch (typeCase_) {
case 1:
if (getInt()
!= other.getInt()) return false;
break;
case 2:
if (!getString()
.equals(other.getString())) return false;
break;
case 3:
if (!getBytes()
.equals(other.getBytes())) return false;
break;
case 4:
if (java.lang.Double.doubleToLongBits(getDouble())
!= java.lang.Double.doubleToLongBits(
other.getDouble())) return false;
break;
case 5:
if (getBool()
!= other.getBool()) return false;
break;
case 6:
if (!getWeightedValues()
.equals(other.getWeightedValues())) return false;
break;
case 7:
if (!getLimitDefinition()
.equals(other.getLimitDefinition())) return false;
break;
case 9:
if (getLogLevelValue()
!= other.getLogLevelValue()) return false;
break;
case 10:
if (!getStringList()
.equals(other.getStringList())) return false;
break;
case 11:
if (!getIntRange()
.equals(other.getIntRange())) return false;
break;
case 12:
if (!getProvided()
.equals(other.getProvided())) return false;
break;
case 15:
if (!getDuration()
.equals(other.getDuration())) return false;
break;
case 16:
if (!getJson()
.equals(other.getJson())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasConfidential()) {
hash = (37 * hash) + CONFIDENTIAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getConfidential());
}
if (hasDecryptWith()) {
hash = (37 * hash) + DECRYPT_WITH_FIELD_NUMBER;
hash = (53 * hash) + getDecryptWith().hashCode();
}
switch (typeCase_) {
case 1:
hash = (37 * hash) + INT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInt());
break;
case 2:
hash = (37 * hash) + STRING_FIELD_NUMBER;
hash = (53 * hash) + getString().hashCode();
break;
case 3:
hash = (37 * hash) + BYTES_FIELD_NUMBER;
hash = (53 * hash) + getBytes().hashCode();
break;
case 4:
hash = (37 * hash) + DOUBLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDouble()));
break;
case 5:
hash = (37 * hash) + BOOL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBool());
break;
case 6:
hash = (37 * hash) + WEIGHTED_VALUES_FIELD_NUMBER;
hash = (53 * hash) + getWeightedValues().hashCode();
break;
case 7:
hash = (37 * hash) + LIMIT_DEFINITION_FIELD_NUMBER;
hash = (53 * hash) + getLimitDefinition().hashCode();
break;
case 9:
hash = (37 * hash) + LOG_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + getLogLevelValue();
break;
case 10:
hash = (37 * hash) + STRING_LIST_FIELD_NUMBER;
hash = (53 * hash) + getStringList().hashCode();
break;
case 11:
hash = (37 * hash) + INT_RANGE_FIELD_NUMBER;
hash = (53 * hash) + getIntRange().hashCode();
break;
case 12:
hash = (37 * hash) + PROVIDED_FIELD_NUMBER;
hash = (53 * hash) + getProvided().hashCode();
break;
case 15:
hash = (37 * hash) + DURATION_FIELD_NUMBER;
hash = (53 * hash) + getDuration().hashCode();
break;
case 16:
hash = (37 * hash) + JSON_FIELD_NUMBER;
hash = (53 * hash) + getJson().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.ConfigValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ConfigValue 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.ConfigValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ConfigValue 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.ConfigValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ConfigValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.ConfigValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ConfigValue 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.ConfigValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ConfigValue 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.ConfigValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ConfigValue 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.ConfigValue 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.ConfigValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.ConfigValue)
cloud.prefab.domain.Prefab.ConfigValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.ConfigValue.class, cloud.prefab.domain.Prefab.ConfigValue.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.ConfigValue.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (weightedValuesBuilder_ != null) {
weightedValuesBuilder_.clear();
}
if (limitDefinitionBuilder_ != null) {
limitDefinitionBuilder_.clear();
}
if (stringListBuilder_ != null) {
stringListBuilder_.clear();
}
if (intRangeBuilder_ != null) {
intRangeBuilder_.clear();
}
if (providedBuilder_ != null) {
providedBuilder_.clear();
}
if (durationBuilder_ != null) {
durationBuilder_.clear();
}
if (jsonBuilder_ != null) {
jsonBuilder_.clear();
}
confidential_ = false;
decryptWith_ = "";
typeCase_ = 0;
type_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigValue_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigValue getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigValue build() {
cloud.prefab.domain.Prefab.ConfigValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigValue buildPartial() {
cloud.prefab.domain.Prefab.ConfigValue result = new cloud.prefab.domain.Prefab.ConfigValue(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(cloud.prefab.domain.Prefab.ConfigValue result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00002000) != 0)) {
result.confidential_ = confidential_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.decryptWith_ = decryptWith_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(cloud.prefab.domain.Prefab.ConfigValue result) {
result.typeCase_ = typeCase_;
result.type_ = this.type_;
if (typeCase_ == 6 &&
weightedValuesBuilder_ != null) {
result.type_ = weightedValuesBuilder_.build();
}
if (typeCase_ == 7 &&
limitDefinitionBuilder_ != null) {
result.type_ = limitDefinitionBuilder_.build();
}
if (typeCase_ == 10 &&
stringListBuilder_ != null) {
result.type_ = stringListBuilder_.build();
}
if (typeCase_ == 11 &&
intRangeBuilder_ != null) {
result.type_ = intRangeBuilder_.build();
}
if (typeCase_ == 12 &&
providedBuilder_ != null) {
result.type_ = providedBuilder_.build();
}
if (typeCase_ == 15 &&
durationBuilder_ != null) {
result.type_ = durationBuilder_.build();
}
if (typeCase_ == 16 &&
jsonBuilder_ != null) {
result.type_ = jsonBuilder_.build();
}
}
@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.ConfigValue) {
return mergeFrom((cloud.prefab.domain.Prefab.ConfigValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.ConfigValue other) {
if (other == cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance()) return this;
if (other.hasConfidential()) {
setConfidential(other.getConfidential());
}
if (other.hasDecryptWith()) {
decryptWith_ = other.decryptWith_;
bitField0_ |= 0x00004000;
onChanged();
}
switch (other.getTypeCase()) {
case INT: {
setInt(other.getInt());
break;
}
case STRING: {
typeCase_ = 2;
type_ = other.type_;
onChanged();
break;
}
case BYTES: {
setBytes(other.getBytes());
break;
}
case DOUBLE: {
setDouble(other.getDouble());
break;
}
case BOOL: {
setBool(other.getBool());
break;
}
case WEIGHTED_VALUES: {
mergeWeightedValues(other.getWeightedValues());
break;
}
case LIMIT_DEFINITION: {
mergeLimitDefinition(other.getLimitDefinition());
break;
}
case LOG_LEVEL: {
setLogLevelValue(other.getLogLevelValue());
break;
}
case STRING_LIST: {
mergeStringList(other.getStringList());
break;
}
case INT_RANGE: {
mergeIntRange(other.getIntRange());
break;
}
case PROVIDED: {
mergeProvided(other.getProvided());
break;
}
case DURATION: {
mergeDuration(other.getDuration());
break;
}
case JSON: {
mergeJson(other.getJson());
break;
}
case TYPE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
type_ = input.readInt64();
typeCase_ = 1;
break;
} // case 8
case 18: {
java.lang.String s = input.readStringRequireUtf8();
typeCase_ = 2;
type_ = s;
break;
} // case 18
case 26: {
type_ = input.readBytes();
typeCase_ = 3;
break;
} // case 26
case 33: {
type_ = input.readDouble();
typeCase_ = 4;
break;
} // case 33
case 40: {
type_ = input.readBool();
typeCase_ = 5;
break;
} // case 40
case 50: {
input.readMessage(
getWeightedValuesFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 6;
break;
} // case 50
case 58: {
input.readMessage(
getLimitDefinitionFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 7;
break;
} // case 58
case 72: {
int rawValue = input.readEnum();
typeCase_ = 9;
type_ = rawValue;
break;
} // case 72
case 82: {
input.readMessage(
getStringListFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 10;
break;
} // case 82
case 90: {
input.readMessage(
getIntRangeFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 11;
break;
} // case 90
case 98: {
input.readMessage(
getProvidedFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 12;
break;
} // case 98
case 104: {
confidential_ = input.readBool();
bitField0_ |= 0x00002000;
break;
} // case 104
case 114: {
decryptWith_ = input.readStringRequireUtf8();
bitField0_ |= 0x00004000;
break;
} // case 114
case 122: {
input.readMessage(
getDurationFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 15;
break;
} // case 122
case 130: {
input.readMessage(
getJsonFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 16;
break;
} // case 130
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int typeCase_ = 0;
private java.lang.Object type_;
public TypeCase
getTypeCase() {
return TypeCase.forNumber(
typeCase_);
}
public Builder clearType() {
typeCase_ = 0;
type_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
* int64 int = 1;
* @return Whether the int field is set.
*/
public boolean hasInt() {
return typeCase_ == 1;
}
/**
* int64 int = 1;
* @return The int.
*/
public long getInt() {
if (typeCase_ == 1) {
return (java.lang.Long) type_;
}
return 0L;
}
/**
* int64 int = 1;
* @param value The int to set.
* @return This builder for chaining.
*/
public Builder setInt(long value) {
typeCase_ = 1;
type_ = value;
onChanged();
return this;
}
/**
* int64 int = 1;
* @return This builder for chaining.
*/
public Builder clearInt() {
if (typeCase_ == 1) {
typeCase_ = 0;
type_ = null;
onChanged();
}
return this;
}
/**
* string string = 2;
* @return Whether the string field is set.
*/
@java.lang.Override
public boolean hasString() {
return typeCase_ == 2;
}
/**
* string string = 2;
* @return The string.
*/
@java.lang.Override
public java.lang.String getString() {
java.lang.Object ref = "";
if (typeCase_ == 2) {
ref = type_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (typeCase_ == 2) {
type_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string string = 2;
* @return The bytes for string.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStringBytes() {
java.lang.Object ref = "";
if (typeCase_ == 2) {
ref = type_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (typeCase_ == 2) {
type_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* 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(); }
typeCase_ = 2;
type_ = value;
onChanged();
return this;
}
/**
* string string = 2;
* @return This builder for chaining.
*/
public Builder clearString() {
if (typeCase_ == 2) {
typeCase_ = 0;
type_ = null;
onChanged();
}
return this;
}
/**
* 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);
typeCase_ = 2;
type_ = value;
onChanged();
return this;
}
/**
* bytes bytes = 3;
* @return Whether the bytes field is set.
*/
public boolean hasBytes() {
return typeCase_ == 3;
}
/**
* bytes bytes = 3;
* @return The bytes.
*/
public com.google.protobuf.ByteString getBytes() {
if (typeCase_ == 3) {
return (com.google.protobuf.ByteString) type_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
* bytes bytes = 3;
* @param value The bytes to set.
* @return This builder for chaining.
*/
public Builder setBytes(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
typeCase_ = 3;
type_ = value;
onChanged();
return this;
}
/**
* bytes bytes = 3;
* @return This builder for chaining.
*/
public Builder clearBytes() {
if (typeCase_ == 3) {
typeCase_ = 0;
type_ = null;
onChanged();
}
return this;
}
/**
* double double = 4;
* @return Whether the double field is set.
*/
public boolean hasDouble() {
return typeCase_ == 4;
}
/**
* double double = 4;
* @return The double.
*/
public double getDouble() {
if (typeCase_ == 4) {
return (java.lang.Double) type_;
}
return 0D;
}
/**
* double double = 4;
* @param value The double to set.
* @return This builder for chaining.
*/
public Builder setDouble(double value) {
typeCase_ = 4;
type_ = value;
onChanged();
return this;
}
/**
* double double = 4;
* @return This builder for chaining.
*/
public Builder clearDouble() {
if (typeCase_ == 4) {
typeCase_ = 0;
type_ = null;
onChanged();
}
return this;
}
/**
* bool bool = 5;
* @return Whether the bool field is set.
*/
public boolean hasBool() {
return typeCase_ == 5;
}
/**
* bool bool = 5;
* @return The bool.
*/
public boolean getBool() {
if (typeCase_ == 5) {
return (java.lang.Boolean) type_;
}
return false;
}
/**
* bool bool = 5;
* @param value The bool to set.
* @return This builder for chaining.
*/
public Builder setBool(boolean value) {
typeCase_ = 5;
type_ = value;
onChanged();
return this;
}
/**
* bool bool = 5;
* @return This builder for chaining.
*/
public Builder clearBool() {
if (typeCase_ == 5) {
typeCase_ = 0;
type_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.WeightedValues, cloud.prefab.domain.Prefab.WeightedValues.Builder, cloud.prefab.domain.Prefab.WeightedValuesOrBuilder> weightedValuesBuilder_;
/**
* .prefab.WeightedValues weighted_values = 6;
* @return Whether the weightedValues field is set.
*/
@java.lang.Override
public boolean hasWeightedValues() {
return typeCase_ == 6;
}
/**
* .prefab.WeightedValues weighted_values = 6;
* @return The weightedValues.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.WeightedValues getWeightedValues() {
if (weightedValuesBuilder_ == null) {
if (typeCase_ == 6) {
return (cloud.prefab.domain.Prefab.WeightedValues) type_;
}
return cloud.prefab.domain.Prefab.WeightedValues.getDefaultInstance();
} else {
if (typeCase_ == 6) {
return weightedValuesBuilder_.getMessage();
}
return cloud.prefab.domain.Prefab.WeightedValues.getDefaultInstance();
}
}
/**
* .prefab.WeightedValues weighted_values = 6;
*/
public Builder setWeightedValues(cloud.prefab.domain.Prefab.WeightedValues value) {
if (weightedValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
weightedValuesBuilder_.setMessage(value);
}
typeCase_ = 6;
return this;
}
/**
* .prefab.WeightedValues weighted_values = 6;
*/
public Builder setWeightedValues(
cloud.prefab.domain.Prefab.WeightedValues.Builder builderForValue) {
if (weightedValuesBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
weightedValuesBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 6;
return this;
}
/**
* .prefab.WeightedValues weighted_values = 6;
*/
public Builder mergeWeightedValues(cloud.prefab.domain.Prefab.WeightedValues value) {
if (weightedValuesBuilder_ == null) {
if (typeCase_ == 6 &&
type_ != cloud.prefab.domain.Prefab.WeightedValues.getDefaultInstance()) {
type_ = cloud.prefab.domain.Prefab.WeightedValues.newBuilder((cloud.prefab.domain.Prefab.WeightedValues) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 6) {
weightedValuesBuilder_.mergeFrom(value);
} else {
weightedValuesBuilder_.setMessage(value);
}
}
typeCase_ = 6;
return this;
}
/**
* .prefab.WeightedValues weighted_values = 6;
*/
public Builder clearWeightedValues() {
if (weightedValuesBuilder_ == null) {
if (typeCase_ == 6) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 6) {
typeCase_ = 0;
type_ = null;
}
weightedValuesBuilder_.clear();
}
return this;
}
/**
* .prefab.WeightedValues weighted_values = 6;
*/
public cloud.prefab.domain.Prefab.WeightedValues.Builder getWeightedValuesBuilder() {
return getWeightedValuesFieldBuilder().getBuilder();
}
/**
* .prefab.WeightedValues weighted_values = 6;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.WeightedValuesOrBuilder getWeightedValuesOrBuilder() {
if ((typeCase_ == 6) && (weightedValuesBuilder_ != null)) {
return weightedValuesBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 6) {
return (cloud.prefab.domain.Prefab.WeightedValues) type_;
}
return cloud.prefab.domain.Prefab.WeightedValues.getDefaultInstance();
}
}
/**
* .prefab.WeightedValues weighted_values = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.WeightedValues, cloud.prefab.domain.Prefab.WeightedValues.Builder, cloud.prefab.domain.Prefab.WeightedValuesOrBuilder>
getWeightedValuesFieldBuilder() {
if (weightedValuesBuilder_ == null) {
if (!(typeCase_ == 6)) {
type_ = cloud.prefab.domain.Prefab.WeightedValues.getDefaultInstance();
}
weightedValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.WeightedValues, cloud.prefab.domain.Prefab.WeightedValues.Builder, cloud.prefab.domain.Prefab.WeightedValuesOrBuilder>(
(cloud.prefab.domain.Prefab.WeightedValues) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 6;
onChanged();
return weightedValuesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.LimitDefinition, cloud.prefab.domain.Prefab.LimitDefinition.Builder, cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder> limitDefinitionBuilder_;
/**
* .prefab.LimitDefinition limit_definition = 7;
* @return Whether the limitDefinition field is set.
*/
@java.lang.Override
public boolean hasLimitDefinition() {
return typeCase_ == 7;
}
/**
* .prefab.LimitDefinition limit_definition = 7;
* @return The limitDefinition.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitDefinition getLimitDefinition() {
if (limitDefinitionBuilder_ == null) {
if (typeCase_ == 7) {
return (cloud.prefab.domain.Prefab.LimitDefinition) type_;
}
return cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance();
} else {
if (typeCase_ == 7) {
return limitDefinitionBuilder_.getMessage();
}
return cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance();
}
}
/**
* .prefab.LimitDefinition limit_definition = 7;
*/
public Builder setLimitDefinition(cloud.prefab.domain.Prefab.LimitDefinition value) {
if (limitDefinitionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
limitDefinitionBuilder_.setMessage(value);
}
typeCase_ = 7;
return this;
}
/**
* .prefab.LimitDefinition limit_definition = 7;
*/
public Builder setLimitDefinition(
cloud.prefab.domain.Prefab.LimitDefinition.Builder builderForValue) {
if (limitDefinitionBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
limitDefinitionBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 7;
return this;
}
/**
* .prefab.LimitDefinition limit_definition = 7;
*/
public Builder mergeLimitDefinition(cloud.prefab.domain.Prefab.LimitDefinition value) {
if (limitDefinitionBuilder_ == null) {
if (typeCase_ == 7 &&
type_ != cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance()) {
type_ = cloud.prefab.domain.Prefab.LimitDefinition.newBuilder((cloud.prefab.domain.Prefab.LimitDefinition) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 7) {
limitDefinitionBuilder_.mergeFrom(value);
} else {
limitDefinitionBuilder_.setMessage(value);
}
}
typeCase_ = 7;
return this;
}
/**
* .prefab.LimitDefinition limit_definition = 7;
*/
public Builder clearLimitDefinition() {
if (limitDefinitionBuilder_ == null) {
if (typeCase_ == 7) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 7) {
typeCase_ = 0;
type_ = null;
}
limitDefinitionBuilder_.clear();
}
return this;
}
/**
* .prefab.LimitDefinition limit_definition = 7;
*/
public cloud.prefab.domain.Prefab.LimitDefinition.Builder getLimitDefinitionBuilder() {
return getLimitDefinitionFieldBuilder().getBuilder();
}
/**
* .prefab.LimitDefinition limit_definition = 7;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder getLimitDefinitionOrBuilder() {
if ((typeCase_ == 7) && (limitDefinitionBuilder_ != null)) {
return limitDefinitionBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 7) {
return (cloud.prefab.domain.Prefab.LimitDefinition) type_;
}
return cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance();
}
}
/**
* .prefab.LimitDefinition limit_definition = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.LimitDefinition, cloud.prefab.domain.Prefab.LimitDefinition.Builder, cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder>
getLimitDefinitionFieldBuilder() {
if (limitDefinitionBuilder_ == null) {
if (!(typeCase_ == 7)) {
type_ = cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance();
}
limitDefinitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.LimitDefinition, cloud.prefab.domain.Prefab.LimitDefinition.Builder, cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder>(
(cloud.prefab.domain.Prefab.LimitDefinition) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 7;
onChanged();
return limitDefinitionBuilder_;
}
/**
* .prefab.LogLevel log_level = 9;
* @return Whether the logLevel field is set.
*/
@java.lang.Override
public boolean hasLogLevel() {
return typeCase_ == 9;
}
/**
* .prefab.LogLevel log_level = 9;
* @return The enum numeric value on the wire for logLevel.
*/
@java.lang.Override
public int getLogLevelValue() {
if (typeCase_ == 9) {
return ((java.lang.Integer) type_).intValue();
}
return 0;
}
/**
* .prefab.LogLevel log_level = 9;
* @param value The enum numeric value on the wire for logLevel to set.
* @return This builder for chaining.
*/
public Builder setLogLevelValue(int value) {
typeCase_ = 9;
type_ = value;
onChanged();
return this;
}
/**
* .prefab.LogLevel log_level = 9;
* @return The logLevel.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.LogLevel getLogLevel() {
if (typeCase_ == 9) {
cloud.prefab.domain.Prefab.LogLevel result = cloud.prefab.domain.Prefab.LogLevel.forNumber(
(java.lang.Integer) type_);
return result == null ? cloud.prefab.domain.Prefab.LogLevel.UNRECOGNIZED : result;
}
return cloud.prefab.domain.Prefab.LogLevel.NOT_SET_LOG_LEVEL;
}
/**
* .prefab.LogLevel log_level = 9;
* @param value The logLevel to set.
* @return This builder for chaining.
*/
public Builder setLogLevel(cloud.prefab.domain.Prefab.LogLevel value) {
if (value == null) {
throw new NullPointerException();
}
typeCase_ = 9;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .prefab.LogLevel log_level = 9;
* @return This builder for chaining.
*/
public Builder clearLogLevel() {
if (typeCase_ == 9) {
typeCase_ = 0;
type_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.StringList, cloud.prefab.domain.Prefab.StringList.Builder, cloud.prefab.domain.Prefab.StringListOrBuilder> stringListBuilder_;
/**
* .prefab.StringList string_list = 10;
* @return Whether the stringList field is set.
*/
@java.lang.Override
public boolean hasStringList() {
return typeCase_ == 10;
}
/**
* .prefab.StringList string_list = 10;
* @return The stringList.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.StringList getStringList() {
if (stringListBuilder_ == null) {
if (typeCase_ == 10) {
return (cloud.prefab.domain.Prefab.StringList) type_;
}
return cloud.prefab.domain.Prefab.StringList.getDefaultInstance();
} else {
if (typeCase_ == 10) {
return stringListBuilder_.getMessage();
}
return cloud.prefab.domain.Prefab.StringList.getDefaultInstance();
}
}
/**
* .prefab.StringList string_list = 10;
*/
public Builder setStringList(cloud.prefab.domain.Prefab.StringList value) {
if (stringListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
stringListBuilder_.setMessage(value);
}
typeCase_ = 10;
return this;
}
/**
* .prefab.StringList string_list = 10;
*/
public Builder setStringList(
cloud.prefab.domain.Prefab.StringList.Builder builderForValue) {
if (stringListBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
stringListBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 10;
return this;
}
/**
* .prefab.StringList string_list = 10;
*/
public Builder mergeStringList(cloud.prefab.domain.Prefab.StringList value) {
if (stringListBuilder_ == null) {
if (typeCase_ == 10 &&
type_ != cloud.prefab.domain.Prefab.StringList.getDefaultInstance()) {
type_ = cloud.prefab.domain.Prefab.StringList.newBuilder((cloud.prefab.domain.Prefab.StringList) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 10) {
stringListBuilder_.mergeFrom(value);
} else {
stringListBuilder_.setMessage(value);
}
}
typeCase_ = 10;
return this;
}
/**
* .prefab.StringList string_list = 10;
*/
public Builder clearStringList() {
if (stringListBuilder_ == null) {
if (typeCase_ == 10) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 10) {
typeCase_ = 0;
type_ = null;
}
stringListBuilder_.clear();
}
return this;
}
/**
* .prefab.StringList string_list = 10;
*/
public cloud.prefab.domain.Prefab.StringList.Builder getStringListBuilder() {
return getStringListFieldBuilder().getBuilder();
}
/**
* .prefab.StringList string_list = 10;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.StringListOrBuilder getStringListOrBuilder() {
if ((typeCase_ == 10) && (stringListBuilder_ != null)) {
return stringListBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 10) {
return (cloud.prefab.domain.Prefab.StringList) type_;
}
return cloud.prefab.domain.Prefab.StringList.getDefaultInstance();
}
}
/**
* .prefab.StringList string_list = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.StringList, cloud.prefab.domain.Prefab.StringList.Builder, cloud.prefab.domain.Prefab.StringListOrBuilder>
getStringListFieldBuilder() {
if (stringListBuilder_ == null) {
if (!(typeCase_ == 10)) {
type_ = cloud.prefab.domain.Prefab.StringList.getDefaultInstance();
}
stringListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.StringList, cloud.prefab.domain.Prefab.StringList.Builder, cloud.prefab.domain.Prefab.StringListOrBuilder>(
(cloud.prefab.domain.Prefab.StringList) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 10;
onChanged();
return stringListBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.IntRange, cloud.prefab.domain.Prefab.IntRange.Builder, cloud.prefab.domain.Prefab.IntRangeOrBuilder> intRangeBuilder_;
/**
* .prefab.IntRange int_range = 11;
* @return Whether the intRange field is set.
*/
@java.lang.Override
public boolean hasIntRange() {
return typeCase_ == 11;
}
/**
* .prefab.IntRange int_range = 11;
* @return The intRange.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.IntRange getIntRange() {
if (intRangeBuilder_ == null) {
if (typeCase_ == 11) {
return (cloud.prefab.domain.Prefab.IntRange) type_;
}
return cloud.prefab.domain.Prefab.IntRange.getDefaultInstance();
} else {
if (typeCase_ == 11) {
return intRangeBuilder_.getMessage();
}
return cloud.prefab.domain.Prefab.IntRange.getDefaultInstance();
}
}
/**
* .prefab.IntRange int_range = 11;
*/
public Builder setIntRange(cloud.prefab.domain.Prefab.IntRange value) {
if (intRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
intRangeBuilder_.setMessage(value);
}
typeCase_ = 11;
return this;
}
/**
* .prefab.IntRange int_range = 11;
*/
public Builder setIntRange(
cloud.prefab.domain.Prefab.IntRange.Builder builderForValue) {
if (intRangeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
intRangeBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 11;
return this;
}
/**
* .prefab.IntRange int_range = 11;
*/
public Builder mergeIntRange(cloud.prefab.domain.Prefab.IntRange value) {
if (intRangeBuilder_ == null) {
if (typeCase_ == 11 &&
type_ != cloud.prefab.domain.Prefab.IntRange.getDefaultInstance()) {
type_ = cloud.prefab.domain.Prefab.IntRange.newBuilder((cloud.prefab.domain.Prefab.IntRange) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 11) {
intRangeBuilder_.mergeFrom(value);
} else {
intRangeBuilder_.setMessage(value);
}
}
typeCase_ = 11;
return this;
}
/**
* .prefab.IntRange int_range = 11;
*/
public Builder clearIntRange() {
if (intRangeBuilder_ == null) {
if (typeCase_ == 11) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 11) {
typeCase_ = 0;
type_ = null;
}
intRangeBuilder_.clear();
}
return this;
}
/**
* .prefab.IntRange int_range = 11;
*/
public cloud.prefab.domain.Prefab.IntRange.Builder getIntRangeBuilder() {
return getIntRangeFieldBuilder().getBuilder();
}
/**
* .prefab.IntRange int_range = 11;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.IntRangeOrBuilder getIntRangeOrBuilder() {
if ((typeCase_ == 11) && (intRangeBuilder_ != null)) {
return intRangeBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 11) {
return (cloud.prefab.domain.Prefab.IntRange) type_;
}
return cloud.prefab.domain.Prefab.IntRange.getDefaultInstance();
}
}
/**
* .prefab.IntRange int_range = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.IntRange, cloud.prefab.domain.Prefab.IntRange.Builder, cloud.prefab.domain.Prefab.IntRangeOrBuilder>
getIntRangeFieldBuilder() {
if (intRangeBuilder_ == null) {
if (!(typeCase_ == 11)) {
type_ = cloud.prefab.domain.Prefab.IntRange.getDefaultInstance();
}
intRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.IntRange, cloud.prefab.domain.Prefab.IntRange.Builder, cloud.prefab.domain.Prefab.IntRangeOrBuilder>(
(cloud.prefab.domain.Prefab.IntRange) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 11;
onChanged();
return intRangeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.Provided, cloud.prefab.domain.Prefab.Provided.Builder, cloud.prefab.domain.Prefab.ProvidedOrBuilder> providedBuilder_;
/**
* .prefab.Provided provided = 12;
* @return Whether the provided field is set.
*/
@java.lang.Override
public boolean hasProvided() {
return typeCase_ == 12;
}
/**
* .prefab.Provided provided = 12;
* @return The provided.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.Provided getProvided() {
if (providedBuilder_ == null) {
if (typeCase_ == 12) {
return (cloud.prefab.domain.Prefab.Provided) type_;
}
return cloud.prefab.domain.Prefab.Provided.getDefaultInstance();
} else {
if (typeCase_ == 12) {
return providedBuilder_.getMessage();
}
return cloud.prefab.domain.Prefab.Provided.getDefaultInstance();
}
}
/**
* .prefab.Provided provided = 12;
*/
public Builder setProvided(cloud.prefab.domain.Prefab.Provided value) {
if (providedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
providedBuilder_.setMessage(value);
}
typeCase_ = 12;
return this;
}
/**
* .prefab.Provided provided = 12;
*/
public Builder setProvided(
cloud.prefab.domain.Prefab.Provided.Builder builderForValue) {
if (providedBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
providedBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 12;
return this;
}
/**
* .prefab.Provided provided = 12;
*/
public Builder mergeProvided(cloud.prefab.domain.Prefab.Provided value) {
if (providedBuilder_ == null) {
if (typeCase_ == 12 &&
type_ != cloud.prefab.domain.Prefab.Provided.getDefaultInstance()) {
type_ = cloud.prefab.domain.Prefab.Provided.newBuilder((cloud.prefab.domain.Prefab.Provided) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 12) {
providedBuilder_.mergeFrom(value);
} else {
providedBuilder_.setMessage(value);
}
}
typeCase_ = 12;
return this;
}
/**
* .prefab.Provided provided = 12;
*/
public Builder clearProvided() {
if (providedBuilder_ == null) {
if (typeCase_ == 12) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 12) {
typeCase_ = 0;
type_ = null;
}
providedBuilder_.clear();
}
return this;
}
/**
* .prefab.Provided provided = 12;
*/
public cloud.prefab.domain.Prefab.Provided.Builder getProvidedBuilder() {
return getProvidedFieldBuilder().getBuilder();
}
/**
* .prefab.Provided provided = 12;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ProvidedOrBuilder getProvidedOrBuilder() {
if ((typeCase_ == 12) && (providedBuilder_ != null)) {
return providedBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 12) {
return (cloud.prefab.domain.Prefab.Provided) type_;
}
return cloud.prefab.domain.Prefab.Provided.getDefaultInstance();
}
}
/**
* .prefab.Provided provided = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.Provided, cloud.prefab.domain.Prefab.Provided.Builder, cloud.prefab.domain.Prefab.ProvidedOrBuilder>
getProvidedFieldBuilder() {
if (providedBuilder_ == null) {
if (!(typeCase_ == 12)) {
type_ = cloud.prefab.domain.Prefab.Provided.getDefaultInstance();
}
providedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.Provided, cloud.prefab.domain.Prefab.Provided.Builder, cloud.prefab.domain.Prefab.ProvidedOrBuilder>(
(cloud.prefab.domain.Prefab.Provided) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 12;
onChanged();
return providedBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.IsoDuration, cloud.prefab.domain.Prefab.IsoDuration.Builder, cloud.prefab.domain.Prefab.IsoDurationOrBuilder> durationBuilder_;
/**
* .prefab.IsoDuration duration = 15;
* @return Whether the duration field is set.
*/
@java.lang.Override
public boolean hasDuration() {
return typeCase_ == 15;
}
/**
* .prefab.IsoDuration duration = 15;
* @return The duration.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.IsoDuration getDuration() {
if (durationBuilder_ == null) {
if (typeCase_ == 15) {
return (cloud.prefab.domain.Prefab.IsoDuration) type_;
}
return cloud.prefab.domain.Prefab.IsoDuration.getDefaultInstance();
} else {
if (typeCase_ == 15) {
return durationBuilder_.getMessage();
}
return cloud.prefab.domain.Prefab.IsoDuration.getDefaultInstance();
}
}
/**
* .prefab.IsoDuration duration = 15;
*/
public Builder setDuration(cloud.prefab.domain.Prefab.IsoDuration value) {
if (durationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
durationBuilder_.setMessage(value);
}
typeCase_ = 15;
return this;
}
/**
* .prefab.IsoDuration duration = 15;
*/
public Builder setDuration(
cloud.prefab.domain.Prefab.IsoDuration.Builder builderForValue) {
if (durationBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
durationBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 15;
return this;
}
/**
* .prefab.IsoDuration duration = 15;
*/
public Builder mergeDuration(cloud.prefab.domain.Prefab.IsoDuration value) {
if (durationBuilder_ == null) {
if (typeCase_ == 15 &&
type_ != cloud.prefab.domain.Prefab.IsoDuration.getDefaultInstance()) {
type_ = cloud.prefab.domain.Prefab.IsoDuration.newBuilder((cloud.prefab.domain.Prefab.IsoDuration) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 15) {
durationBuilder_.mergeFrom(value);
} else {
durationBuilder_.setMessage(value);
}
}
typeCase_ = 15;
return this;
}
/**
* .prefab.IsoDuration duration = 15;
*/
public Builder clearDuration() {
if (durationBuilder_ == null) {
if (typeCase_ == 15) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 15) {
typeCase_ = 0;
type_ = null;
}
durationBuilder_.clear();
}
return this;
}
/**
* .prefab.IsoDuration duration = 15;
*/
public cloud.prefab.domain.Prefab.IsoDuration.Builder getDurationBuilder() {
return getDurationFieldBuilder().getBuilder();
}
/**
* .prefab.IsoDuration duration = 15;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.IsoDurationOrBuilder getDurationOrBuilder() {
if ((typeCase_ == 15) && (durationBuilder_ != null)) {
return durationBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 15) {
return (cloud.prefab.domain.Prefab.IsoDuration) type_;
}
return cloud.prefab.domain.Prefab.IsoDuration.getDefaultInstance();
}
}
/**
* .prefab.IsoDuration duration = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.IsoDuration, cloud.prefab.domain.Prefab.IsoDuration.Builder, cloud.prefab.domain.Prefab.IsoDurationOrBuilder>
getDurationFieldBuilder() {
if (durationBuilder_ == null) {
if (!(typeCase_ == 15)) {
type_ = cloud.prefab.domain.Prefab.IsoDuration.getDefaultInstance();
}
durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.IsoDuration, cloud.prefab.domain.Prefab.IsoDuration.Builder, cloud.prefab.domain.Prefab.IsoDurationOrBuilder>(
(cloud.prefab.domain.Prefab.IsoDuration) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 15;
onChanged();
return durationBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.Json, cloud.prefab.domain.Prefab.Json.Builder, cloud.prefab.domain.Prefab.JsonOrBuilder> jsonBuilder_;
/**
* .prefab.Json json = 16;
* @return Whether the json field is set.
*/
@java.lang.Override
public boolean hasJson() {
return typeCase_ == 16;
}
/**
* .prefab.Json json = 16;
* @return The json.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.Json getJson() {
if (jsonBuilder_ == null) {
if (typeCase_ == 16) {
return (cloud.prefab.domain.Prefab.Json) type_;
}
return cloud.prefab.domain.Prefab.Json.getDefaultInstance();
} else {
if (typeCase_ == 16) {
return jsonBuilder_.getMessage();
}
return cloud.prefab.domain.Prefab.Json.getDefaultInstance();
}
}
/**
* .prefab.Json json = 16;
*/
public Builder setJson(cloud.prefab.domain.Prefab.Json value) {
if (jsonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
jsonBuilder_.setMessage(value);
}
typeCase_ = 16;
return this;
}
/**
* .prefab.Json json = 16;
*/
public Builder setJson(
cloud.prefab.domain.Prefab.Json.Builder builderForValue) {
if (jsonBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
jsonBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 16;
return this;
}
/**
* .prefab.Json json = 16;
*/
public Builder mergeJson(cloud.prefab.domain.Prefab.Json value) {
if (jsonBuilder_ == null) {
if (typeCase_ == 16 &&
type_ != cloud.prefab.domain.Prefab.Json.getDefaultInstance()) {
type_ = cloud.prefab.domain.Prefab.Json.newBuilder((cloud.prefab.domain.Prefab.Json) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 16) {
jsonBuilder_.mergeFrom(value);
} else {
jsonBuilder_.setMessage(value);
}
}
typeCase_ = 16;
return this;
}
/**
* .prefab.Json json = 16;
*/
public Builder clearJson() {
if (jsonBuilder_ == null) {
if (typeCase_ == 16) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 16) {
typeCase_ = 0;
type_ = null;
}
jsonBuilder_.clear();
}
return this;
}
/**
* .prefab.Json json = 16;
*/
public cloud.prefab.domain.Prefab.Json.Builder getJsonBuilder() {
return getJsonFieldBuilder().getBuilder();
}
/**
* .prefab.Json json = 16;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.JsonOrBuilder getJsonOrBuilder() {
if ((typeCase_ == 16) && (jsonBuilder_ != null)) {
return jsonBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 16) {
return (cloud.prefab.domain.Prefab.Json) type_;
}
return cloud.prefab.domain.Prefab.Json.getDefaultInstance();
}
}
/**
* .prefab.Json json = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.Json, cloud.prefab.domain.Prefab.Json.Builder, cloud.prefab.domain.Prefab.JsonOrBuilder>
getJsonFieldBuilder() {
if (jsonBuilder_ == null) {
if (!(typeCase_ == 16)) {
type_ = cloud.prefab.domain.Prefab.Json.getDefaultInstance();
}
jsonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.Json, cloud.prefab.domain.Prefab.Json.Builder, cloud.prefab.domain.Prefab.JsonOrBuilder>(
(cloud.prefab.domain.Prefab.Json) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 16;
onChanged();
return jsonBuilder_;
}
private boolean confidential_ ;
/**
*
* don't log or telemetry this value
*
*
* optional bool confidential = 13;
* @return Whether the confidential field is set.
*/
@java.lang.Override
public boolean hasConfidential() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* don't log or telemetry this value
*
*
* optional bool confidential = 13;
* @return The confidential.
*/
@java.lang.Override
public boolean getConfidential() {
return confidential_;
}
/**
*
* don't log or telemetry this value
*
*
* optional bool confidential = 13;
* @param value The confidential to set.
* @return This builder for chaining.
*/
public Builder setConfidential(boolean value) {
confidential_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
* don't log or telemetry this value
*
*
* optional bool confidential = 13;
* @return This builder for chaining.
*/
public Builder clearConfidential() {
bitField0_ = (bitField0_ & ~0x00002000);
confidential_ = false;
onChanged();
return this;
}
private java.lang.Object decryptWith_ = "";
/**
*
* key name to decrypt with
*
*
* optional string decrypt_with = 14;
* @return Whether the decryptWith field is set.
*/
public boolean hasDecryptWith() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
* key name to decrypt with
*
*
* optional string decrypt_with = 14;
* @return The decryptWith.
*/
public java.lang.String getDecryptWith() {
java.lang.Object ref = decryptWith_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
decryptWith_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* key name to decrypt with
*
*
* optional string decrypt_with = 14;
* @return The bytes for decryptWith.
*/
public com.google.protobuf.ByteString
getDecryptWithBytes() {
java.lang.Object ref = decryptWith_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
decryptWith_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* key name to decrypt with
*
*
* optional string decrypt_with = 14;
* @param value The decryptWith to set.
* @return This builder for chaining.
*/
public Builder setDecryptWith(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
decryptWith_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
* key name to decrypt with
*
*
* optional string decrypt_with = 14;
* @return This builder for chaining.
*/
public Builder clearDecryptWith() {
decryptWith_ = getDefaultInstance().getDecryptWith();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
/**
*
* key name to decrypt with
*
*
* optional string decrypt_with = 14;
* @param value The bytes for decryptWith to set.
* @return This builder for chaining.
*/
public Builder setDecryptWithBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
decryptWith_ = value;
bitField0_ |= 0x00004000;
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.ConfigValue)
}
// @@protoc_insertion_point(class_scope:prefab.ConfigValue)
private static final cloud.prefab.domain.Prefab.ConfigValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ConfigValue();
}
public static cloud.prefab.domain.Prefab.ConfigValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConfigValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.ConfigValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface JsonOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.Json)
com.google.protobuf.MessageOrBuilder {
/**
* string json = 1;
* @return The json.
*/
java.lang.String getJson();
/**
* string json = 1;
* @return The bytes for json.
*/
com.google.protobuf.ByteString
getJsonBytes();
}
/**
* Protobuf type {@code prefab.Json}
*/
public static final class Json extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.Json)
JsonOrBuilder {
private static final long serialVersionUID = 0L;
// Use Json.newBuilder() to construct.
private Json(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Json() {
json_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Json();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Json_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Json_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Json.class, cloud.prefab.domain.Prefab.Json.Builder.class);
}
public static final int JSON_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object json_ = "";
/**
* string json = 1;
* @return The json.
*/
@java.lang.Override
public java.lang.String getJson() {
java.lang.Object ref = json_;
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();
json_ = s;
return s;
}
}
/**
* string json = 1;
* @return The bytes for json.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getJsonBytes() {
java.lang.Object ref = json_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
json_ = 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(json_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, json_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(json_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, json_);
}
size += getUnknownFields().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.Json)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.Json other = (cloud.prefab.domain.Prefab.Json) obj;
if (!getJson()
.equals(other.getJson())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + JSON_FIELD_NUMBER;
hash = (53 * hash) + getJson().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.Json parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Json 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.Json parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Json 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.Json parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Json parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.Json parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Json 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.Json parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Json 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.Json parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Json 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.Json 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.Json}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.Json)
cloud.prefab.domain.Prefab.JsonOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Json_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Json_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Json.class, cloud.prefab.domain.Prefab.Json.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.Json.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
json_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Json_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Json getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.Json.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Json build() {
cloud.prefab.domain.Prefab.Json result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Json buildPartial() {
cloud.prefab.domain.Prefab.Json result = new cloud.prefab.domain.Prefab.Json(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cloud.prefab.domain.Prefab.Json result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.json_ = json_;
}
}
@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.Json) {
return mergeFrom((cloud.prefab.domain.Prefab.Json)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.Json other) {
if (other == cloud.prefab.domain.Prefab.Json.getDefaultInstance()) return this;
if (!other.getJson().isEmpty()) {
json_ = other.json_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
json_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object json_ = "";
/**
* string json = 1;
* @return The json.
*/
public java.lang.String getJson() {
java.lang.Object ref = json_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
json_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string json = 1;
* @return The bytes for json.
*/
public com.google.protobuf.ByteString
getJsonBytes() {
java.lang.Object ref = json_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
json_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string json = 1;
* @param value The json to set.
* @return This builder for chaining.
*/
public Builder setJson(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
json_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string json = 1;
* @return This builder for chaining.
*/
public Builder clearJson() {
json_ = getDefaultInstance().getJson();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string json = 1;
* @param value The bytes for json to set.
* @return This builder for chaining.
*/
public Builder setJsonBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
json_ = value;
bitField0_ |= 0x00000001;
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.Json)
}
// @@protoc_insertion_point(class_scope:prefab.Json)
private static final cloud.prefab.domain.Prefab.Json DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Json();
}
public static cloud.prefab.domain.Prefab.Json getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Json parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.Json getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IsoDurationOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.IsoDuration)
com.google.protobuf.MessageOrBuilder {
/**
*
* value is eg P1h30s
*
*
* string definition = 1;
* @return The definition.
*/
java.lang.String getDefinition();
/**
*
* value is eg P1h30s
*
*
* string definition = 1;
* @return The bytes for definition.
*/
com.google.protobuf.ByteString
getDefinitionBytes();
}
/**
* Protobuf type {@code prefab.IsoDuration}
*/
public static final class IsoDuration extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.IsoDuration)
IsoDurationOrBuilder {
private static final long serialVersionUID = 0L;
// Use IsoDuration.newBuilder() to construct.
private IsoDuration(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IsoDuration() {
definition_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IsoDuration();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_IsoDuration_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_IsoDuration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.IsoDuration.class, cloud.prefab.domain.Prefab.IsoDuration.Builder.class);
}
public static final int DEFINITION_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object definition_ = "";
/**
*
* value is eg P1h30s
*
*
* string definition = 1;
* @return The definition.
*/
@java.lang.Override
public java.lang.String getDefinition() {
java.lang.Object ref = definition_;
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();
definition_ = s;
return s;
}
}
/**
*
* value is eg P1h30s
*
*
* string definition = 1;
* @return The bytes for definition.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDefinitionBytes() {
java.lang.Object ref = definition_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
definition_ = 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(definition_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, definition_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definition_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, definition_);
}
size += getUnknownFields().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.IsoDuration)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.IsoDuration other = (cloud.prefab.domain.Prefab.IsoDuration) obj;
if (!getDefinition()
.equals(other.getDefinition())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + DEFINITION_FIELD_NUMBER;
hash = (53 * hash) + getDefinition().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.IsoDuration parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.IsoDuration 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.IsoDuration parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.IsoDuration 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.IsoDuration parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.IsoDuration parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.IsoDuration parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.IsoDuration 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.IsoDuration parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.IsoDuration 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.IsoDuration parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.IsoDuration 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.IsoDuration 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.IsoDuration}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.IsoDuration)
cloud.prefab.domain.Prefab.IsoDurationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_IsoDuration_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_IsoDuration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.IsoDuration.class, cloud.prefab.domain.Prefab.IsoDuration.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.IsoDuration.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
definition_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_IsoDuration_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.IsoDuration getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.IsoDuration.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.IsoDuration build() {
cloud.prefab.domain.Prefab.IsoDuration result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.IsoDuration buildPartial() {
cloud.prefab.domain.Prefab.IsoDuration result = new cloud.prefab.domain.Prefab.IsoDuration(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cloud.prefab.domain.Prefab.IsoDuration result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.definition_ = definition_;
}
}
@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.IsoDuration) {
return mergeFrom((cloud.prefab.domain.Prefab.IsoDuration)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.IsoDuration other) {
if (other == cloud.prefab.domain.Prefab.IsoDuration.getDefaultInstance()) return this;
if (!other.getDefinition().isEmpty()) {
definition_ = other.definition_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
definition_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object definition_ = "";
/**
*
* value is eg P1h30s
*
*
* string definition = 1;
* @return The definition.
*/
public java.lang.String getDefinition() {
java.lang.Object ref = definition_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
definition_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* value is eg P1h30s
*
*
* string definition = 1;
* @return The bytes for definition.
*/
public com.google.protobuf.ByteString
getDefinitionBytes() {
java.lang.Object ref = definition_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
definition_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* value is eg P1h30s
*
*
* string definition = 1;
* @param value The definition to set.
* @return This builder for chaining.
*/
public Builder setDefinition(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
definition_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* value is eg P1h30s
*
*
* string definition = 1;
* @return This builder for chaining.
*/
public Builder clearDefinition() {
definition_ = getDefaultInstance().getDefinition();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* value is eg P1h30s
*
*
* string definition = 1;
* @param value The bytes for definition to set.
* @return This builder for chaining.
*/
public Builder setDefinitionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
definition_ = value;
bitField0_ |= 0x00000001;
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.IsoDuration)
}
// @@protoc_insertion_point(class_scope:prefab.IsoDuration)
private static final cloud.prefab.domain.Prefab.IsoDuration DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.IsoDuration();
}
public static cloud.prefab.domain.Prefab.IsoDuration getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IsoDuration parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.IsoDuration getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProvidedOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.Provided)
com.google.protobuf.MessageOrBuilder {
/**
* optional .prefab.ProvidedSource source = 1;
* @return Whether the source field is set.
*/
boolean hasSource();
/**
* optional .prefab.ProvidedSource source = 1;
* @return The enum numeric value on the wire for source.
*/
int getSourceValue();
/**
* optional .prefab.ProvidedSource source = 1;
* @return The source.
*/
cloud.prefab.domain.Prefab.ProvidedSource getSource();
/**
*
* eg MY_ENV_VAR
*
*
* optional string lookup = 2;
* @return Whether the lookup field is set.
*/
boolean hasLookup();
/**
*
* eg MY_ENV_VAR
*
*
* optional string lookup = 2;
* @return The lookup.
*/
java.lang.String getLookup();
/**
*
* eg MY_ENV_VAR
*
*
* optional string lookup = 2;
* @return The bytes for lookup.
*/
com.google.protobuf.ByteString
getLookupBytes();
}
/**
* Protobuf type {@code prefab.Provided}
*/
public static final class Provided extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.Provided)
ProvidedOrBuilder {
private static final long serialVersionUID = 0L;
// Use Provided.newBuilder() to construct.
private Provided(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Provided() {
source_ = 0;
lookup_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Provided();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Provided_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Provided_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Provided.class, cloud.prefab.domain.Prefab.Provided.Builder.class);
}
private int bitField0_;
public static final int SOURCE_FIELD_NUMBER = 1;
private int source_ = 0;
/**
* optional .prefab.ProvidedSource source = 1;
* @return Whether the source field is set.
*/
@java.lang.Override public boolean hasSource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .prefab.ProvidedSource source = 1;
* @return The enum numeric value on the wire for source.
*/
@java.lang.Override public int getSourceValue() {
return source_;
}
/**
* optional .prefab.ProvidedSource source = 1;
* @return The source.
*/
@java.lang.Override public cloud.prefab.domain.Prefab.ProvidedSource getSource() {
cloud.prefab.domain.Prefab.ProvidedSource result = cloud.prefab.domain.Prefab.ProvidedSource.forNumber(source_);
return result == null ? cloud.prefab.domain.Prefab.ProvidedSource.UNRECOGNIZED : result;
}
public static final int LOOKUP_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object lookup_ = "";
/**
*
* eg MY_ENV_VAR
*
*
* optional string lookup = 2;
* @return Whether the lookup field is set.
*/
@java.lang.Override
public boolean hasLookup() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* eg MY_ENV_VAR
*
*
* optional string lookup = 2;
* @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;
}
}
/**
*
* eg MY_ENV_VAR
*
*
* optional string lookup = 2;
* @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;
}
}
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.writeEnum(1, source_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, lookup_);
}
getUnknownFields().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
.computeEnumSize(1, source_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, lookup_);
}
size += getUnknownFields().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.Provided)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.Provided other = (cloud.prefab.domain.Prefab.Provided) obj;
if (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (source_ != other.source_) return false;
}
if (hasLookup() != other.hasLookup()) return false;
if (hasLookup()) {
if (!getLookup()
.equals(other.getLookup())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + source_;
}
if (hasLookup()) {
hash = (37 * hash) + LOOKUP_FIELD_NUMBER;
hash = (53 * hash) + getLookup().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.Provided parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Provided 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.Provided parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Provided 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.Provided parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Provided parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.Provided parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Provided 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.Provided parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Provided 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.Provided parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Provided 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.Provided 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.Provided}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.Provided)
cloud.prefab.domain.Prefab.ProvidedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Provided_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Provided_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Provided.class, cloud.prefab.domain.Prefab.Provided.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.Provided.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
source_ = 0;
lookup_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Provided_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Provided getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.Provided.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Provided build() {
cloud.prefab.domain.Prefab.Provided result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Provided buildPartial() {
cloud.prefab.domain.Prefab.Provided result = new cloud.prefab.domain.Prefab.Provided(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cloud.prefab.domain.Prefab.Provided result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.source_ = source_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.lookup_ = lookup_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@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.Provided) {
return mergeFrom((cloud.prefab.domain.Prefab.Provided)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.Provided other) {
if (other == cloud.prefab.domain.Prefab.Provided.getDefaultInstance()) return this;
if (other.hasSource()) {
setSource(other.getSource());
}
if (other.hasLookup()) {
lookup_ = other.lookup_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
source_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
lookup_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int source_ = 0;
/**
* optional .prefab.ProvidedSource source = 1;
* @return Whether the source field is set.
*/
@java.lang.Override public boolean hasSource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .prefab.ProvidedSource source = 1;
* @return The enum numeric value on the wire for source.
*/
@java.lang.Override public int getSourceValue() {
return source_;
}
/**
* optional .prefab.ProvidedSource source = 1;
* @param value The enum numeric value on the wire for source to set.
* @return This builder for chaining.
*/
public Builder setSourceValue(int value) {
source_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional .prefab.ProvidedSource source = 1;
* @return The source.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ProvidedSource getSource() {
cloud.prefab.domain.Prefab.ProvidedSource result = cloud.prefab.domain.Prefab.ProvidedSource.forNumber(source_);
return result == null ? cloud.prefab.domain.Prefab.ProvidedSource.UNRECOGNIZED : result;
}
/**
* optional .prefab.ProvidedSource source = 1;
* @param value The source to set.
* @return This builder for chaining.
*/
public Builder setSource(cloud.prefab.domain.Prefab.ProvidedSource value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
source_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .prefab.ProvidedSource source = 1;
* @return This builder for chaining.
*/
public Builder clearSource() {
bitField0_ = (bitField0_ & ~0x00000001);
source_ = 0;
onChanged();
return this;
}
private java.lang.Object lookup_ = "";
/**
*
* eg MY_ENV_VAR
*
*
* optional string lookup = 2;
* @return Whether the lookup field is set.
*/
public boolean hasLookup() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* eg MY_ENV_VAR
*
*
* optional string lookup = 2;
* @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;
}
}
/**
*
* eg MY_ENV_VAR
*
*
* optional string lookup = 2;
* @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;
}
}
/**
*
* eg MY_ENV_VAR
*
*
* optional string lookup = 2;
* @param value The lookup to set.
* @return This builder for chaining.
*/
public Builder setLookup(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
lookup_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* eg MY_ENV_VAR
*
*
* optional string lookup = 2;
* @return This builder for chaining.
*/
public Builder clearLookup() {
lookup_ = getDefaultInstance().getLookup();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* eg MY_ENV_VAR
*
*
* optional string lookup = 2;
* @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);
lookup_ = value;
bitField0_ |= 0x00000002;
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.Provided)
}
// @@protoc_insertion_point(class_scope:prefab.Provided)
private static final cloud.prefab.domain.Prefab.Provided DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Provided();
}
public static cloud.prefab.domain.Prefab.Provided getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Provided parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.Provided getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IntRangeOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.IntRange)
com.google.protobuf.MessageOrBuilder {
/**
*
* if empty treat as Long.MIN_VALUE. Inclusive
*
*
* optional int64 start = 1;
* @return Whether the start field is set.
*/
boolean hasStart();
/**
*
* if empty treat as Long.MIN_VALUE. Inclusive
*
*
* optional int64 start = 1;
* @return The start.
*/
long getStart();
/**
*
* if empty treat as Long.MAX_VALUE. Exclusive
*
*
* optional int64 end = 2;
* @return Whether the end field is set.
*/
boolean hasEnd();
/**
*
* if empty treat as Long.MAX_VALUE. Exclusive
*
*
* optional int64 end = 2;
* @return The end.
*/
long getEnd();
}
/**
* Protobuf type {@code prefab.IntRange}
*/
public static final class IntRange extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.IntRange)
IntRangeOrBuilder {
private static final long serialVersionUID = 0L;
// Use IntRange.newBuilder() to construct.
private IntRange(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IntRange() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IntRange();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_IntRange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_IntRange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.IntRange.class, cloud.prefab.domain.Prefab.IntRange.Builder.class);
}
private int bitField0_;
public static final int START_FIELD_NUMBER = 1;
private long start_ = 0L;
/**
*
* if empty treat as Long.MIN_VALUE. Inclusive
*
*
* optional int64 start = 1;
* @return Whether the start field is set.
*/
@java.lang.Override
public boolean hasStart() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* if empty treat as Long.MIN_VALUE. Inclusive
*
*
* optional int64 start = 1;
* @return The start.
*/
@java.lang.Override
public long getStart() {
return start_;
}
public static final int END_FIELD_NUMBER = 2;
private long end_ = 0L;
/**
*
* if empty treat as Long.MAX_VALUE. Exclusive
*
*
* optional int64 end = 2;
* @return Whether the end field is set.
*/
@java.lang.Override
public boolean hasEnd() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* if empty treat as Long.MAX_VALUE. Exclusive
*
*
* optional int64 end = 2;
* @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 (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(1, start_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, end_);
}
getUnknownFields().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, start_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, end_);
}
size += getUnknownFields().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.IntRange)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.IntRange other = (cloud.prefab.domain.Prefab.IntRange) obj;
if (hasStart() != other.hasStart()) return false;
if (hasStart()) {
if (getStart()
!= other.getStart()) return false;
}
if (hasEnd() != other.hasEnd()) return false;
if (hasEnd()) {
if (getEnd()
!= other.getEnd()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasStart()) {
hash = (37 * hash) + START_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStart());
}
if (hasEnd()) {
hash = (37 * hash) + END_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEnd());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.IntRange parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.IntRange 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.IntRange parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.IntRange 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.IntRange parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.IntRange parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.IntRange parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.IntRange 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.IntRange parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.IntRange 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.IntRange parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.IntRange 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.IntRange 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.IntRange}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.IntRange)
cloud.prefab.domain.Prefab.IntRangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_IntRange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_IntRange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.IntRange.class, cloud.prefab.domain.Prefab.IntRange.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.IntRange.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
start_ = 0L;
end_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_IntRange_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.IntRange getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.IntRange.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.IntRange build() {
cloud.prefab.domain.Prefab.IntRange result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.IntRange buildPartial() {
cloud.prefab.domain.Prefab.IntRange result = new cloud.prefab.domain.Prefab.IntRange(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cloud.prefab.domain.Prefab.IntRange result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.start_ = start_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.end_ = end_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@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.IntRange) {
return mergeFrom((cloud.prefab.domain.Prefab.IntRange)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.IntRange other) {
if (other == cloud.prefab.domain.Prefab.IntRange.getDefaultInstance()) return this;
if (other.hasStart()) {
setStart(other.getStart());
}
if (other.hasEnd()) {
setEnd(other.getEnd());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
start_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
end_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long start_ ;
/**
*
* if empty treat as Long.MIN_VALUE. Inclusive
*
*
* optional int64 start = 1;
* @return Whether the start field is set.
*/
@java.lang.Override
public boolean hasStart() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* if empty treat as Long.MIN_VALUE. Inclusive
*
*
* optional int64 start = 1;
* @return The start.
*/
@java.lang.Override
public long getStart() {
return start_;
}
/**
*
* if empty treat as Long.MIN_VALUE. Inclusive
*
*
* optional int64 start = 1;
* @param value The start to set.
* @return This builder for chaining.
*/
public Builder setStart(long value) {
start_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* if empty treat as Long.MIN_VALUE. Inclusive
*
*
* optional int64 start = 1;
* @return This builder for chaining.
*/
public Builder clearStart() {
bitField0_ = (bitField0_ & ~0x00000001);
start_ = 0L;
onChanged();
return this;
}
private long end_ ;
/**
*
* if empty treat as Long.MAX_VALUE. Exclusive
*
*
* optional int64 end = 2;
* @return Whether the end field is set.
*/
@java.lang.Override
public boolean hasEnd() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* if empty treat as Long.MAX_VALUE. Exclusive
*
*
* optional int64 end = 2;
* @return The end.
*/
@java.lang.Override
public long getEnd() {
return end_;
}
/**
*
* if empty treat as Long.MAX_VALUE. Exclusive
*
*
* optional int64 end = 2;
* @param value The end to set.
* @return This builder for chaining.
*/
public Builder setEnd(long value) {
end_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* if empty treat as Long.MAX_VALUE. Exclusive
*
*
* optional int64 end = 2;
* @return This builder for chaining.
*/
public Builder clearEnd() {
bitField0_ = (bitField0_ & ~0x00000002);
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.IntRange)
}
// @@protoc_insertion_point(class_scope:prefab.IntRange)
private static final cloud.prefab.domain.Prefab.IntRange DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.IntRange();
}
public static cloud.prefab.domain.Prefab.IntRange getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IntRange parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.IntRange getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StringListOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.StringList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string values = 1;
* @return A list containing the values.
*/
java.util.List
getValuesList();
/**
* repeated string values = 1;
* @return The count of values.
*/
int getValuesCount();
/**
* repeated string values = 1;
* @param index The index of the element to return.
* @return The values at the given index.
*/
java.lang.String getValues(int index);
/**
* repeated string values = 1;
* @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.StringList}
*/
public static final class StringList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.StringList)
StringListOrBuilder {
private static final long serialVersionUID = 0L;
// Use StringList.newBuilder() to construct.
private StringList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StringList() {
values_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StringList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_StringList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_StringList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.StringList.class, cloud.prefab.domain.Prefab.StringList.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList values_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string values = 1;
* @return A list containing the values.
*/
public com.google.protobuf.ProtocolStringList
getValuesList() {
return values_;
}
/**
* repeated string values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated string values = 1;
* @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);
}
/**
* repeated string values = 1;
* @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 {
for (int i = 0; i < values_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < values_.size(); i++) {
dataSize += computeStringSizeNoTag(values_.getRaw(i));
}
size += dataSize;
size += 1 * getValuesList().size();
}
size += getUnknownFields().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.StringList)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.StringList other = (cloud.prefab.domain.Prefab.StringList) obj;
if (!getValuesList()
.equals(other.getValuesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.StringList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.StringList 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.StringList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.StringList 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.StringList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.StringList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.StringList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.StringList 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.StringList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.StringList 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.StringList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.StringList 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.StringList 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.StringList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.StringList)
cloud.prefab.domain.Prefab.StringListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_StringList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_StringList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.StringList.class, cloud.prefab.domain.Prefab.StringList.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.StringList.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
values_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_StringList_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.StringList getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.StringList.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.StringList build() {
cloud.prefab.domain.Prefab.StringList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.StringList buildPartial() {
cloud.prefab.domain.Prefab.StringList result = new cloud.prefab.domain.Prefab.StringList(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cloud.prefab.domain.Prefab.StringList result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
values_.makeImmutable();
result.values_ = values_;
}
}
@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.StringList) {
return mergeFrom((cloud.prefab.domain.Prefab.StringList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.StringList other) {
if (other == cloud.prefab.domain.Prefab.StringList.getDefaultInstance()) return this;
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ |= 0x00000001;
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
ensureValuesIsMutable();
values_.add(s);
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList values_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureValuesIsMutable() {
if (!values_.isModifiable()) {
values_ = new com.google.protobuf.LazyStringArrayList(values_);
}
bitField0_ |= 0x00000001;
}
/**
* repeated string values = 1;
* @return A list containing the values.
*/
public com.google.protobuf.ProtocolStringList
getValuesList() {
values_.makeImmutable();
return values_;
}
/**
* repeated string values = 1;
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated string values = 1;
* @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);
}
/**
* repeated string values = 1;
* @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);
}
/**
* repeated string values = 1;
* @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);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string values = 1;
* @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);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string values = 1;
* @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_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string values = 1;
* @return This builder for chaining.
*/
public Builder clearValues() {
values_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
* repeated string values = 1;
* @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);
bitField0_ |= 0x00000001;
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.StringList)
}
// @@protoc_insertion_point(class_scope:prefab.StringList)
private static final cloud.prefab.domain.Prefab.StringList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.StringList();
}
public static cloud.prefab.domain.Prefab.StringList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StringList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.StringList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WeightedValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.WeightedValue)
com.google.protobuf.MessageOrBuilder {
/**
*
* out of 1000
*
*
* int32 weight = 1;
* @return The weight.
*/
int getWeight();
/**
* .prefab.ConfigValue value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* .prefab.ConfigValue value = 2;
* @return The value.
*/
cloud.prefab.domain.Prefab.ConfigValue getValue();
/**
* .prefab.ConfigValue value = 2;
*/
cloud.prefab.domain.Prefab.ConfigValueOrBuilder getValueOrBuilder();
}
/**
* Protobuf type {@code prefab.WeightedValue}
*/
public static final class WeightedValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.WeightedValue)
WeightedValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use WeightedValue.newBuilder() to construct.
private WeightedValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WeightedValue() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WeightedValue();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.WeightedValue.class, cloud.prefab.domain.Prefab.WeightedValue.Builder.class);
}
private int bitField0_;
public static final int WEIGHT_FIELD_NUMBER = 1;
private int weight_ = 0;
/**
*
* out of 1000
*
*
* int32 weight = 1;
* @return The weight.
*/
@java.lang.Override
public int getWeight() {
return weight_;
}
public static final int VALUE_FIELD_NUMBER = 2;
private cloud.prefab.domain.Prefab.ConfigValue value_;
/**
* .prefab.ConfigValue value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .prefab.ConfigValue value = 2;
* @return The value.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigValue getValue() {
return value_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : value_;
}
/**
* .prefab.ConfigValue value = 2;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getValueOrBuilder() {
return value_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : value_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getValue());
}
getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getValue());
}
size += getUnknownFields().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.WeightedValue)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.WeightedValue other = (cloud.prefab.domain.Prefab.WeightedValue) obj;
if (getWeight()
!= other.getWeight()) return false;
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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();
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.WeightedValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.WeightedValue 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.WeightedValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.WeightedValue 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.WeightedValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.WeightedValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.WeightedValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.WeightedValue 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.WeightedValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.WeightedValue 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.WeightedValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.WeightedValue 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.WeightedValue 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.WeightedValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.WeightedValue)
cloud.prefab.domain.Prefab.WeightedValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.WeightedValue.class, cloud.prefab.domain.Prefab.WeightedValue.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.WeightedValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
weight_ = 0;
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValue_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.WeightedValue getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.WeightedValue.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.WeightedValue build() {
cloud.prefab.domain.Prefab.WeightedValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.WeightedValue buildPartial() {
cloud.prefab.domain.Prefab.WeightedValue result = new cloud.prefab.domain.Prefab.WeightedValue(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cloud.prefab.domain.Prefab.WeightedValue result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.weight_ = weight_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = valueBuilder_ == null
? value_
: valueBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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.WeightedValue) {
return mergeFrom((cloud.prefab.domain.Prefab.WeightedValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.WeightedValue other) {
if (other == cloud.prefab.domain.Prefab.WeightedValue.getDefaultInstance()) return this;
if (other.getWeight() != 0) {
setWeight(other.getWeight());
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
weight_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
input.readMessage(
getValueFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* out of 1000
*
*
* int32 weight = 1;
* @return This builder for chaining.
*/
public Builder clearWeight() {
bitField0_ = (bitField0_ & ~0x00000001);
weight_ = 0;
onChanged();
return this;
}
private cloud.prefab.domain.Prefab.ConfigValue value_;
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder> valueBuilder_;
/**
* .prefab.ConfigValue value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .prefab.ConfigValue value = 2;
* @return The value.
*/
public cloud.prefab.domain.Prefab.ConfigValue getValue() {
if (valueBuilder_ == null) {
return value_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* .prefab.ConfigValue value = 2;
*/
public Builder setValue(cloud.prefab.domain.Prefab.ConfigValue value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .prefab.ConfigValue value = 2;
*/
public Builder setValue(
cloud.prefab.domain.Prefab.ConfigValue.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .prefab.ConfigValue value = 2;
*/
public Builder mergeValue(cloud.prefab.domain.Prefab.ConfigValue value) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
value_ != null &&
value_ != cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance()) {
getValueBuilder().mergeFrom(value);
} else {
value_ = value;
}
} else {
valueBuilder_.mergeFrom(value);
}
if (value_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .prefab.ConfigValue value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
onChanged();
return this;
}
/**
* .prefab.ConfigValue value = 2;
*/
public cloud.prefab.domain.Prefab.ConfigValue.Builder getValueBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* .prefab.ConfigValue value = 2;
*/
public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : value_;
}
}
/**
* .prefab.ConfigValue value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
@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.WeightedValue)
}
// @@protoc_insertion_point(class_scope:prefab.WeightedValue)
private static final cloud.prefab.domain.Prefab.WeightedValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.WeightedValue();
}
public static cloud.prefab.domain.Prefab.WeightedValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WeightedValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.WeightedValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WeightedValuesOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.WeightedValues)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
java.util.List
getWeightedValuesList();
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
cloud.prefab.domain.Prefab.WeightedValue getWeightedValues(int index);
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
int getWeightedValuesCount();
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
java.util.List extends cloud.prefab.domain.Prefab.WeightedValueOrBuilder>
getWeightedValuesOrBuilderList();
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
cloud.prefab.domain.Prefab.WeightedValueOrBuilder getWeightedValuesOrBuilder(
int index);
/**
* optional string hash_by_property_name = 2;
* @return Whether the hashByPropertyName field is set.
*/
boolean hasHashByPropertyName();
/**
* optional string hash_by_property_name = 2;
* @return The hashByPropertyName.
*/
java.lang.String getHashByPropertyName();
/**
* optional string hash_by_property_name = 2;
* @return The bytes for hashByPropertyName.
*/
com.google.protobuf.ByteString
getHashByPropertyNameBytes();
}
/**
* Protobuf type {@code prefab.WeightedValues}
*/
public static final class WeightedValues extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.WeightedValues)
WeightedValuesOrBuilder {
private static final long serialVersionUID = 0L;
// Use WeightedValues.newBuilder() to construct.
private WeightedValues(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WeightedValues() {
weightedValues_ = java.util.Collections.emptyList();
hashByPropertyName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WeightedValues();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValues_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValues_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.WeightedValues.class, cloud.prefab.domain.Prefab.WeightedValues.Builder.class);
}
private int bitField0_;
public static final int WEIGHTED_VALUES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List weightedValues_;
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
@java.lang.Override
public java.util.List getWeightedValuesList() {
return weightedValues_;
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
@java.lang.Override
public java.util.List extends cloud.prefab.domain.Prefab.WeightedValueOrBuilder>
getWeightedValuesOrBuilderList() {
return weightedValues_;
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
@java.lang.Override
public int getWeightedValuesCount() {
return weightedValues_.size();
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.WeightedValue getWeightedValues(int index) {
return weightedValues_.get(index);
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.WeightedValueOrBuilder getWeightedValuesOrBuilder(
int index) {
return weightedValues_.get(index);
}
public static final int HASH_BY_PROPERTY_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object hashByPropertyName_ = "";
/**
* optional string hash_by_property_name = 2;
* @return Whether the hashByPropertyName field is set.
*/
@java.lang.Override
public boolean hasHashByPropertyName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string hash_by_property_name = 2;
* @return The hashByPropertyName.
*/
@java.lang.Override
public java.lang.String getHashByPropertyName() {
java.lang.Object ref = hashByPropertyName_;
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();
hashByPropertyName_ = s;
return s;
}
}
/**
* optional string hash_by_property_name = 2;
* @return The bytes for hashByPropertyName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHashByPropertyNameBytes() {
java.lang.Object ref = hashByPropertyName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hashByPropertyName_ = 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 {
for (int i = 0; i < weightedValues_.size(); i++) {
output.writeMessage(1, weightedValues_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hashByPropertyName_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < weightedValues_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, weightedValues_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hashByPropertyName_);
}
size += getUnknownFields().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.WeightedValues)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.WeightedValues other = (cloud.prefab.domain.Prefab.WeightedValues) obj;
if (!getWeightedValuesList()
.equals(other.getWeightedValuesList())) return false;
if (hasHashByPropertyName() != other.hasHashByPropertyName()) return false;
if (hasHashByPropertyName()) {
if (!getHashByPropertyName()
.equals(other.getHashByPropertyName())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getWeightedValuesCount() > 0) {
hash = (37 * hash) + WEIGHTED_VALUES_FIELD_NUMBER;
hash = (53 * hash) + getWeightedValuesList().hashCode();
}
if (hasHashByPropertyName()) {
hash = (37 * hash) + HASH_BY_PROPERTY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getHashByPropertyName().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.WeightedValues parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.WeightedValues 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.WeightedValues parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.WeightedValues 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.WeightedValues parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.WeightedValues parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.WeightedValues parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.WeightedValues 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.WeightedValues parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.WeightedValues 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.WeightedValues parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.WeightedValues 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.WeightedValues 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.WeightedValues}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.WeightedValues)
cloud.prefab.domain.Prefab.WeightedValuesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValues_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValues_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.WeightedValues.class, cloud.prefab.domain.Prefab.WeightedValues.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.WeightedValues.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (weightedValuesBuilder_ == null) {
weightedValues_ = java.util.Collections.emptyList();
} else {
weightedValues_ = null;
weightedValuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
hashByPropertyName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValues_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.WeightedValues getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.WeightedValues.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.WeightedValues build() {
cloud.prefab.domain.Prefab.WeightedValues result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.WeightedValues buildPartial() {
cloud.prefab.domain.Prefab.WeightedValues result = new cloud.prefab.domain.Prefab.WeightedValues(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.WeightedValues result) {
if (weightedValuesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
weightedValues_ = java.util.Collections.unmodifiableList(weightedValues_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.weightedValues_ = weightedValues_;
} else {
result.weightedValues_ = weightedValuesBuilder_.build();
}
}
private void buildPartial0(cloud.prefab.domain.Prefab.WeightedValues result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.hashByPropertyName_ = hashByPropertyName_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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.WeightedValues) {
return mergeFrom((cloud.prefab.domain.Prefab.WeightedValues)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.WeightedValues other) {
if (other == cloud.prefab.domain.Prefab.WeightedValues.getDefaultInstance()) return this;
if (weightedValuesBuilder_ == null) {
if (!other.weightedValues_.isEmpty()) {
if (weightedValues_.isEmpty()) {
weightedValues_ = other.weightedValues_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureWeightedValuesIsMutable();
weightedValues_.addAll(other.weightedValues_);
}
onChanged();
}
} else {
if (!other.weightedValues_.isEmpty()) {
if (weightedValuesBuilder_.isEmpty()) {
weightedValuesBuilder_.dispose();
weightedValuesBuilder_ = null;
weightedValues_ = other.weightedValues_;
bitField0_ = (bitField0_ & ~0x00000001);
weightedValuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getWeightedValuesFieldBuilder() : null;
} else {
weightedValuesBuilder_.addAllMessages(other.weightedValues_);
}
}
}
if (other.hasHashByPropertyName()) {
hashByPropertyName_ = other.hashByPropertyName_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
cloud.prefab.domain.Prefab.WeightedValue m =
input.readMessage(
cloud.prefab.domain.Prefab.WeightedValue.parser(),
extensionRegistry);
if (weightedValuesBuilder_ == null) {
ensureWeightedValuesIsMutable();
weightedValues_.add(m);
} else {
weightedValuesBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
hashByPropertyName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List weightedValues_ =
java.util.Collections.emptyList();
private void ensureWeightedValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
weightedValues_ = new java.util.ArrayList(weightedValues_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.WeightedValue, cloud.prefab.domain.Prefab.WeightedValue.Builder, cloud.prefab.domain.Prefab.WeightedValueOrBuilder> weightedValuesBuilder_;
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
public java.util.List getWeightedValuesList() {
if (weightedValuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(weightedValues_);
} else {
return weightedValuesBuilder_.getMessageList();
}
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
public int getWeightedValuesCount() {
if (weightedValuesBuilder_ == null) {
return weightedValues_.size();
} else {
return weightedValuesBuilder_.getCount();
}
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
public cloud.prefab.domain.Prefab.WeightedValue getWeightedValues(int index) {
if (weightedValuesBuilder_ == null) {
return weightedValues_.get(index);
} else {
return weightedValuesBuilder_.getMessage(index);
}
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
public Builder setWeightedValues(
int index, cloud.prefab.domain.Prefab.WeightedValue value) {
if (weightedValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWeightedValuesIsMutable();
weightedValues_.set(index, value);
onChanged();
} else {
weightedValuesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
public Builder setWeightedValues(
int index, cloud.prefab.domain.Prefab.WeightedValue.Builder builderForValue) {
if (weightedValuesBuilder_ == null) {
ensureWeightedValuesIsMutable();
weightedValues_.set(index, builderForValue.build());
onChanged();
} else {
weightedValuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
public Builder addWeightedValues(cloud.prefab.domain.Prefab.WeightedValue value) {
if (weightedValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWeightedValuesIsMutable();
weightedValues_.add(value);
onChanged();
} else {
weightedValuesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
public Builder addWeightedValues(
int index, cloud.prefab.domain.Prefab.WeightedValue value) {
if (weightedValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWeightedValuesIsMutable();
weightedValues_.add(index, value);
onChanged();
} else {
weightedValuesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
public Builder addWeightedValues(
cloud.prefab.domain.Prefab.WeightedValue.Builder builderForValue) {
if (weightedValuesBuilder_ == null) {
ensureWeightedValuesIsMutable();
weightedValues_.add(builderForValue.build());
onChanged();
} else {
weightedValuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
public Builder addWeightedValues(
int index, cloud.prefab.domain.Prefab.WeightedValue.Builder builderForValue) {
if (weightedValuesBuilder_ == null) {
ensureWeightedValuesIsMutable();
weightedValues_.add(index, builderForValue.build());
onChanged();
} else {
weightedValuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
public Builder addAllWeightedValues(
java.lang.Iterable extends cloud.prefab.domain.Prefab.WeightedValue> values) {
if (weightedValuesBuilder_ == null) {
ensureWeightedValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, weightedValues_);
onChanged();
} else {
weightedValuesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
public Builder clearWeightedValues() {
if (weightedValuesBuilder_ == null) {
weightedValues_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
weightedValuesBuilder_.clear();
}
return this;
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
public Builder removeWeightedValues(int index) {
if (weightedValuesBuilder_ == null) {
ensureWeightedValuesIsMutable();
weightedValues_.remove(index);
onChanged();
} else {
weightedValuesBuilder_.remove(index);
}
return this;
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
public cloud.prefab.domain.Prefab.WeightedValue.Builder getWeightedValuesBuilder(
int index) {
return getWeightedValuesFieldBuilder().getBuilder(index);
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
public cloud.prefab.domain.Prefab.WeightedValueOrBuilder getWeightedValuesOrBuilder(
int index) {
if (weightedValuesBuilder_ == null) {
return weightedValues_.get(index); } else {
return weightedValuesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
public java.util.List extends cloud.prefab.domain.Prefab.WeightedValueOrBuilder>
getWeightedValuesOrBuilderList() {
if (weightedValuesBuilder_ != null) {
return weightedValuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(weightedValues_);
}
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
public cloud.prefab.domain.Prefab.WeightedValue.Builder addWeightedValuesBuilder() {
return getWeightedValuesFieldBuilder().addBuilder(
cloud.prefab.domain.Prefab.WeightedValue.getDefaultInstance());
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
public cloud.prefab.domain.Prefab.WeightedValue.Builder addWeightedValuesBuilder(
int index) {
return getWeightedValuesFieldBuilder().addBuilder(
index, cloud.prefab.domain.Prefab.WeightedValue.getDefaultInstance());
}
/**
* repeated .prefab.WeightedValue weighted_values = 1;
*/
public java.util.List
getWeightedValuesBuilderList() {
return getWeightedValuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.WeightedValue, cloud.prefab.domain.Prefab.WeightedValue.Builder, cloud.prefab.domain.Prefab.WeightedValueOrBuilder>
getWeightedValuesFieldBuilder() {
if (weightedValuesBuilder_ == null) {
weightedValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.WeightedValue, cloud.prefab.domain.Prefab.WeightedValue.Builder, cloud.prefab.domain.Prefab.WeightedValueOrBuilder>(
weightedValues_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
weightedValues_ = null;
}
return weightedValuesBuilder_;
}
private java.lang.Object hashByPropertyName_ = "";
/**
* optional string hash_by_property_name = 2;
* @return Whether the hashByPropertyName field is set.
*/
public boolean hasHashByPropertyName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string hash_by_property_name = 2;
* @return The hashByPropertyName.
*/
public java.lang.String getHashByPropertyName() {
java.lang.Object ref = hashByPropertyName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hashByPropertyName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string hash_by_property_name = 2;
* @return The bytes for hashByPropertyName.
*/
public com.google.protobuf.ByteString
getHashByPropertyNameBytes() {
java.lang.Object ref = hashByPropertyName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hashByPropertyName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string hash_by_property_name = 2;
* @param value The hashByPropertyName to set.
* @return This builder for chaining.
*/
public Builder setHashByPropertyName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
hashByPropertyName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional string hash_by_property_name = 2;
* @return This builder for chaining.
*/
public Builder clearHashByPropertyName() {
hashByPropertyName_ = getDefaultInstance().getHashByPropertyName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* optional string hash_by_property_name = 2;
* @param value The bytes for hashByPropertyName to set.
* @return This builder for chaining.
*/
public Builder setHashByPropertyNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
hashByPropertyName_ = value;
bitField0_ |= 0x00000002;
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.WeightedValues)
}
// @@protoc_insertion_point(class_scope:prefab.WeightedValues)
private static final cloud.prefab.domain.Prefab.WeightedValues DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.WeightedValues();
}
public static cloud.prefab.domain.Prefab.WeightedValues getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WeightedValues parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.WeightedValues getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ApiKeyMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.ApiKeyMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* numeric currently, but making it string will be more flexible over time
*
*
* optional string key_id = 1;
* @return Whether the keyId field is set.
*/
boolean hasKeyId();
/**
*
* numeric currently, but making it string will be more flexible over time
*
*
* optional string key_id = 1;
* @return The keyId.
*/
java.lang.String getKeyId();
/**
*
* numeric currently, but making it string will be more flexible over time
*
*
* optional string key_id = 1;
* @return The bytes for keyId.
*/
com.google.protobuf.ByteString
getKeyIdBytes();
/**
*
*ditto
*
*
* optional string user_id = 3;
* @return Whether the userId field is set.
*/
boolean hasUserId();
/**
*
*ditto
*
*
* optional string user_id = 3;
* @return The userId.
*/
java.lang.String getUserId();
/**
*
*ditto
*
*
* optional string user_id = 3;
* @return The bytes for userId.
*/
com.google.protobuf.ByteString
getUserIdBytes();
}
/**
* Protobuf type {@code prefab.ApiKeyMetadata}
*/
public static final class ApiKeyMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.ApiKeyMetadata)
ApiKeyMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApiKeyMetadata.newBuilder() to construct.
private ApiKeyMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ApiKeyMetadata() {
keyId_ = "";
userId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ApiKeyMetadata();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ApiKeyMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ApiKeyMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.ApiKeyMetadata.class, cloud.prefab.domain.Prefab.ApiKeyMetadata.Builder.class);
}
private int bitField0_;
public static final int KEY_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object keyId_ = "";
/**
*
* numeric currently, but making it string will be more flexible over time
*
*
* optional string key_id = 1;
* @return Whether the keyId field is set.
*/
@java.lang.Override
public boolean hasKeyId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* numeric currently, but making it string will be more flexible over time
*
*
* optional string key_id = 1;
* @return The keyId.
*/
@java.lang.Override
public java.lang.String getKeyId() {
java.lang.Object ref = keyId_;
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();
keyId_ = s;
return s;
}
}
/**
*
* numeric currently, but making it string will be more flexible over time
*
*
* optional string key_id = 1;
* @return The bytes for keyId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyIdBytes() {
java.lang.Object ref = keyId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_ID_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object userId_ = "";
/**
*
*ditto
*
*
* optional string user_id = 3;
* @return Whether the userId field is set.
*/
@java.lang.Override
public boolean hasUserId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*ditto
*
*
* optional string user_id = 3;
* @return The userId.
*/
@java.lang.Override
public java.lang.String getUserId() {
java.lang.Object ref = userId_;
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();
userId_ = s;
return s;
}
}
/**
*
*ditto
*
*
* optional string user_id = 3;
* @return The bytes for userId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserIdBytes() {
java.lang.Object ref = userId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userId_ = 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)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userId_);
}
getUnknownFields().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, keyId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userId_);
}
size += getUnknownFields().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.ApiKeyMetadata)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.ApiKeyMetadata other = (cloud.prefab.domain.Prefab.ApiKeyMetadata) obj;
if (hasKeyId() != other.hasKeyId()) return false;
if (hasKeyId()) {
if (!getKeyId()
.equals(other.getKeyId())) return false;
}
if (hasUserId() != other.hasUserId()) return false;
if (hasUserId()) {
if (!getUserId()
.equals(other.getUserId())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKeyId()) {
hash = (37 * hash) + KEY_ID_FIELD_NUMBER;
hash = (53 * hash) + getKeyId().hashCode();
}
if (hasUserId()) {
hash = (37 * hash) + USER_ID_FIELD_NUMBER;
hash = (53 * hash) + getUserId().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.ApiKeyMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ApiKeyMetadata 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.ApiKeyMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ApiKeyMetadata 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.ApiKeyMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ApiKeyMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.ApiKeyMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ApiKeyMetadata 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.ApiKeyMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ApiKeyMetadata 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.ApiKeyMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ApiKeyMetadata 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.ApiKeyMetadata 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.ApiKeyMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.ApiKeyMetadata)
cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ApiKeyMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ApiKeyMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.ApiKeyMetadata.class, cloud.prefab.domain.Prefab.ApiKeyMetadata.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.ApiKeyMetadata.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
keyId_ = "";
userId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ApiKeyMetadata_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ApiKeyMetadata getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.ApiKeyMetadata.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ApiKeyMetadata build() {
cloud.prefab.domain.Prefab.ApiKeyMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ApiKeyMetadata buildPartial() {
cloud.prefab.domain.Prefab.ApiKeyMetadata result = new cloud.prefab.domain.Prefab.ApiKeyMetadata(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cloud.prefab.domain.Prefab.ApiKeyMetadata result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.keyId_ = keyId_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.userId_ = userId_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@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.ApiKeyMetadata) {
return mergeFrom((cloud.prefab.domain.Prefab.ApiKeyMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.ApiKeyMetadata other) {
if (other == cloud.prefab.domain.Prefab.ApiKeyMetadata.getDefaultInstance()) return this;
if (other.hasKeyId()) {
keyId_ = other.keyId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasUserId()) {
userId_ = other.userId_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
keyId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 26: {
userId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object keyId_ = "";
/**
*
* numeric currently, but making it string will be more flexible over time
*
*
* optional string key_id = 1;
* @return Whether the keyId field is set.
*/
public boolean hasKeyId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* numeric currently, but making it string will be more flexible over time
*
*
* optional string key_id = 1;
* @return The keyId.
*/
public java.lang.String getKeyId() {
java.lang.Object ref = keyId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
keyId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* numeric currently, but making it string will be more flexible over time
*
*
* optional string key_id = 1;
* @return The bytes for keyId.
*/
public com.google.protobuf.ByteString
getKeyIdBytes() {
java.lang.Object ref = keyId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* numeric currently, but making it string will be more flexible over time
*
*
* optional string key_id = 1;
* @param value The keyId to set.
* @return This builder for chaining.
*/
public Builder setKeyId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
keyId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* numeric currently, but making it string will be more flexible over time
*
*
* optional string key_id = 1;
* @return This builder for chaining.
*/
public Builder clearKeyId() {
keyId_ = getDefaultInstance().getKeyId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* numeric currently, but making it string will be more flexible over time
*
*
* optional string key_id = 1;
* @param value The bytes for keyId to set.
* @return This builder for chaining.
*/
public Builder setKeyIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
keyId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object userId_ = "";
/**
*
*ditto
*
*
* optional string user_id = 3;
* @return Whether the userId field is set.
*/
public boolean hasUserId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*ditto
*
*
* optional string user_id = 3;
* @return The userId.
*/
public java.lang.String getUserId() {
java.lang.Object ref = userId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*ditto
*
*
* optional string user_id = 3;
* @return The bytes for userId.
*/
public com.google.protobuf.ByteString
getUserIdBytes() {
java.lang.Object ref = userId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*ditto
*
*
* optional string user_id = 3;
* @param value The userId to set.
* @return This builder for chaining.
*/
public Builder setUserId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
userId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*ditto
*
*
* optional string user_id = 3;
* @return This builder for chaining.
*/
public Builder clearUserId() {
userId_ = getDefaultInstance().getUserId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*ditto
*
*
* optional string user_id = 3;
* @param value The bytes for userId to set.
* @return This builder for chaining.
*/
public Builder setUserIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
userId_ = value;
bitField0_ |= 0x00000002;
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.ApiKeyMetadata)
}
// @@protoc_insertion_point(class_scope:prefab.ApiKeyMetadata)
private static final cloud.prefab.domain.Prefab.ApiKeyMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ApiKeyMetadata();
}
public static cloud.prefab.domain.Prefab.ApiKeyMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ApiKeyMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.ApiKeyMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigsOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.Configs)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .prefab.Config configs = 1;
*/
java.util.List
getConfigsList();
/**
* repeated .prefab.Config configs = 1;
*/
cloud.prefab.domain.Prefab.Config getConfigs(int index);
/**
* repeated .prefab.Config configs = 1;
*/
int getConfigsCount();
/**
* repeated .prefab.Config configs = 1;
*/
java.util.List extends cloud.prefab.domain.Prefab.ConfigOrBuilder>
getConfigsOrBuilderList();
/**
* repeated .prefab.Config configs = 1;
*/
cloud.prefab.domain.Prefab.ConfigOrBuilder getConfigsOrBuilder(
int index);
/**
* .prefab.ConfigServicePointer config_service_pointer = 2;
* @return Whether the configServicePointer field is set.
*/
boolean hasConfigServicePointer();
/**
* .prefab.ConfigServicePointer config_service_pointer = 2;
* @return The configServicePointer.
*/
cloud.prefab.domain.Prefab.ConfigServicePointer getConfigServicePointer();
/**
* .prefab.ConfigServicePointer config_service_pointer = 2;
*/
cloud.prefab.domain.Prefab.ConfigServicePointerOrBuilder getConfigServicePointerOrBuilder();
/**
* optional .prefab.ApiKeyMetadata apikey_metadata = 3;
* @return Whether the apikeyMetadata field is set.
*/
boolean hasApikeyMetadata();
/**
* optional .prefab.ApiKeyMetadata apikey_metadata = 3;
* @return The apikeyMetadata.
*/
cloud.prefab.domain.Prefab.ApiKeyMetadata getApikeyMetadata();
/**
* optional .prefab.ApiKeyMetadata apikey_metadata = 3;
*/
cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder getApikeyMetadataOrBuilder();
/**
* optional .prefab.ContextSet default_context = 4;
* @return Whether the defaultContext field is set.
*/
boolean hasDefaultContext();
/**
* optional .prefab.ContextSet default_context = 4;
* @return The defaultContext.
*/
cloud.prefab.domain.Prefab.ContextSet getDefaultContext();
/**
* optional .prefab.ContextSet default_context = 4;
*/
cloud.prefab.domain.Prefab.ContextSetOrBuilder getDefaultContextOrBuilder();
/**
* optional bool keep_alive = 5;
* @return Whether the keepAlive field is set.
*/
boolean hasKeepAlive();
/**
* optional bool keep_alive = 5;
* @return The keepAlive.
*/
boolean getKeepAlive();
}
/**
* Protobuf type {@code prefab.Configs}
*/
public static final class Configs extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.Configs)
ConfigsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Configs.newBuilder() to construct.
private Configs(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Configs() {
configs_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Configs();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Configs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Configs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Configs.class, cloud.prefab.domain.Prefab.Configs.Builder.class);
}
private int bitField0_;
public static final int CONFIGS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List configs_;
/**
* repeated .prefab.Config configs = 1;
*/
@java.lang.Override
public java.util.List getConfigsList() {
return configs_;
}
/**
* repeated .prefab.Config configs = 1;
*/
@java.lang.Override
public java.util.List extends cloud.prefab.domain.Prefab.ConfigOrBuilder>
getConfigsOrBuilderList() {
return configs_;
}
/**
* repeated .prefab.Config configs = 1;
*/
@java.lang.Override
public int getConfigsCount() {
return configs_.size();
}
/**
* repeated .prefab.Config configs = 1;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.Config getConfigs(int index) {
return configs_.get(index);
}
/**
* repeated .prefab.Config configs = 1;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigOrBuilder getConfigsOrBuilder(
int index) {
return configs_.get(index);
}
public static final int CONFIG_SERVICE_POINTER_FIELD_NUMBER = 2;
private cloud.prefab.domain.Prefab.ConfigServicePointer configServicePointer_;
/**
* .prefab.ConfigServicePointer config_service_pointer = 2;
* @return Whether the configServicePointer field is set.
*/
@java.lang.Override
public boolean hasConfigServicePointer() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .prefab.ConfigServicePointer config_service_pointer = 2;
* @return The configServicePointer.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigServicePointer getConfigServicePointer() {
return configServicePointer_ == null ? cloud.prefab.domain.Prefab.ConfigServicePointer.getDefaultInstance() : configServicePointer_;
}
/**
* .prefab.ConfigServicePointer config_service_pointer = 2;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigServicePointerOrBuilder getConfigServicePointerOrBuilder() {
return configServicePointer_ == null ? cloud.prefab.domain.Prefab.ConfigServicePointer.getDefaultInstance() : configServicePointer_;
}
public static final int APIKEY_METADATA_FIELD_NUMBER = 3;
private cloud.prefab.domain.Prefab.ApiKeyMetadata apikeyMetadata_;
/**
* optional .prefab.ApiKeyMetadata apikey_metadata = 3;
* @return Whether the apikeyMetadata field is set.
*/
@java.lang.Override
public boolean hasApikeyMetadata() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .prefab.ApiKeyMetadata apikey_metadata = 3;
* @return The apikeyMetadata.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ApiKeyMetadata getApikeyMetadata() {
return apikeyMetadata_ == null ? cloud.prefab.domain.Prefab.ApiKeyMetadata.getDefaultInstance() : apikeyMetadata_;
}
/**
* optional .prefab.ApiKeyMetadata apikey_metadata = 3;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder getApikeyMetadataOrBuilder() {
return apikeyMetadata_ == null ? cloud.prefab.domain.Prefab.ApiKeyMetadata.getDefaultInstance() : apikeyMetadata_;
}
public static final int DEFAULT_CONTEXT_FIELD_NUMBER = 4;
private cloud.prefab.domain.Prefab.ContextSet defaultContext_;
/**
* optional .prefab.ContextSet default_context = 4;
* @return Whether the defaultContext field is set.
*/
@java.lang.Override
public boolean hasDefaultContext() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .prefab.ContextSet default_context = 4;
* @return The defaultContext.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ContextSet getDefaultContext() {
return defaultContext_ == null ? cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : defaultContext_;
}
/**
* optional .prefab.ContextSet default_context = 4;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ContextSetOrBuilder getDefaultContextOrBuilder() {
return defaultContext_ == null ? cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : defaultContext_;
}
public static final int KEEP_ALIVE_FIELD_NUMBER = 5;
private boolean keepAlive_ = false;
/**
* optional bool keep_alive = 5;
* @return Whether the keepAlive field is set.
*/
@java.lang.Override
public boolean hasKeepAlive() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bool keep_alive = 5;
* @return The keepAlive.
*/
@java.lang.Override
public boolean getKeepAlive() {
return keepAlive_;
}
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 < configs_.size(); i++) {
output.writeMessage(1, configs_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getConfigServicePointer());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getApikeyMetadata());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getDefaultContext());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(5, keepAlive_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < configs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, configs_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getConfigServicePointer());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getApikeyMetadata());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getDefaultContext());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, keepAlive_);
}
size += getUnknownFields().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.Configs)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.Configs other = (cloud.prefab.domain.Prefab.Configs) obj;
if (!getConfigsList()
.equals(other.getConfigsList())) return false;
if (hasConfigServicePointer() != other.hasConfigServicePointer()) return false;
if (hasConfigServicePointer()) {
if (!getConfigServicePointer()
.equals(other.getConfigServicePointer())) return false;
}
if (hasApikeyMetadata() != other.hasApikeyMetadata()) return false;
if (hasApikeyMetadata()) {
if (!getApikeyMetadata()
.equals(other.getApikeyMetadata())) return false;
}
if (hasDefaultContext() != other.hasDefaultContext()) return false;
if (hasDefaultContext()) {
if (!getDefaultContext()
.equals(other.getDefaultContext())) return false;
}
if (hasKeepAlive() != other.hasKeepAlive()) return false;
if (hasKeepAlive()) {
if (getKeepAlive()
!= other.getKeepAlive()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getConfigsCount() > 0) {
hash = (37 * hash) + CONFIGS_FIELD_NUMBER;
hash = (53 * hash) + getConfigsList().hashCode();
}
if (hasConfigServicePointer()) {
hash = (37 * hash) + CONFIG_SERVICE_POINTER_FIELD_NUMBER;
hash = (53 * hash) + getConfigServicePointer().hashCode();
}
if (hasApikeyMetadata()) {
hash = (37 * hash) + APIKEY_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getApikeyMetadata().hashCode();
}
if (hasDefaultContext()) {
hash = (37 * hash) + DEFAULT_CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getDefaultContext().hashCode();
}
if (hasKeepAlive()) {
hash = (37 * hash) + KEEP_ALIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getKeepAlive());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.Configs parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Configs 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.Configs parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Configs 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.Configs parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Configs parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.Configs parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Configs 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.Configs parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Configs 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.Configs parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Configs 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.Configs 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.Configs}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.Configs)
cloud.prefab.domain.Prefab.ConfigsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Configs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Configs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Configs.class, cloud.prefab.domain.Prefab.Configs.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.Configs.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getConfigsFieldBuilder();
getConfigServicePointerFieldBuilder();
getApikeyMetadataFieldBuilder();
getDefaultContextFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (configsBuilder_ == null) {
configs_ = java.util.Collections.emptyList();
} else {
configs_ = null;
configsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
configServicePointer_ = null;
if (configServicePointerBuilder_ != null) {
configServicePointerBuilder_.dispose();
configServicePointerBuilder_ = null;
}
apikeyMetadata_ = null;
if (apikeyMetadataBuilder_ != null) {
apikeyMetadataBuilder_.dispose();
apikeyMetadataBuilder_ = null;
}
defaultContext_ = null;
if (defaultContextBuilder_ != null) {
defaultContextBuilder_.dispose();
defaultContextBuilder_ = null;
}
keepAlive_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Configs_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Configs getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.Configs.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Configs build() {
cloud.prefab.domain.Prefab.Configs result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Configs buildPartial() {
cloud.prefab.domain.Prefab.Configs result = new cloud.prefab.domain.Prefab.Configs(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.Configs result) {
if (configsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
configs_ = java.util.Collections.unmodifiableList(configs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.configs_ = configs_;
} else {
result.configs_ = configsBuilder_.build();
}
}
private void buildPartial0(cloud.prefab.domain.Prefab.Configs result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.configServicePointer_ = configServicePointerBuilder_ == null
? configServicePointer_
: configServicePointerBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.apikeyMetadata_ = apikeyMetadataBuilder_ == null
? apikeyMetadata_
: apikeyMetadataBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.defaultContext_ = defaultContextBuilder_ == null
? defaultContext_
: defaultContextBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.keepAlive_ = keepAlive_;
to_bitField0_ |= 0x00000008;
}
result.bitField0_ |= to_bitField0_;
}
@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.Configs) {
return mergeFrom((cloud.prefab.domain.Prefab.Configs)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.Configs other) {
if (other == cloud.prefab.domain.Prefab.Configs.getDefaultInstance()) return this;
if (configsBuilder_ == null) {
if (!other.configs_.isEmpty()) {
if (configs_.isEmpty()) {
configs_ = other.configs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureConfigsIsMutable();
configs_.addAll(other.configs_);
}
onChanged();
}
} else {
if (!other.configs_.isEmpty()) {
if (configsBuilder_.isEmpty()) {
configsBuilder_.dispose();
configsBuilder_ = null;
configs_ = other.configs_;
bitField0_ = (bitField0_ & ~0x00000001);
configsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getConfigsFieldBuilder() : null;
} else {
configsBuilder_.addAllMessages(other.configs_);
}
}
}
if (other.hasConfigServicePointer()) {
mergeConfigServicePointer(other.getConfigServicePointer());
}
if (other.hasApikeyMetadata()) {
mergeApikeyMetadata(other.getApikeyMetadata());
}
if (other.hasDefaultContext()) {
mergeDefaultContext(other.getDefaultContext());
}
if (other.hasKeepAlive()) {
setKeepAlive(other.getKeepAlive());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
cloud.prefab.domain.Prefab.Config m =
input.readMessage(
cloud.prefab.domain.Prefab.Config.parser(),
extensionRegistry);
if (configsBuilder_ == null) {
ensureConfigsIsMutable();
configs_.add(m);
} else {
configsBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
input.readMessage(
getConfigServicePointerFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getApikeyMetadataFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getDefaultContextFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
keepAlive_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List configs_ =
java.util.Collections.emptyList();
private void ensureConfigsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
configs_ = new java.util.ArrayList(configs_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.Config, cloud.prefab.domain.Prefab.Config.Builder, cloud.prefab.domain.Prefab.ConfigOrBuilder> configsBuilder_;
/**
* repeated .prefab.Config configs = 1;
*/
public java.util.List getConfigsList() {
if (configsBuilder_ == null) {
return java.util.Collections.unmodifiableList(configs_);
} else {
return configsBuilder_.getMessageList();
}
}
/**
* repeated .prefab.Config configs = 1;
*/
public int getConfigsCount() {
if (configsBuilder_ == null) {
return configs_.size();
} else {
return configsBuilder_.getCount();
}
}
/**
* repeated .prefab.Config configs = 1;
*/
public cloud.prefab.domain.Prefab.Config getConfigs(int index) {
if (configsBuilder_ == null) {
return configs_.get(index);
} else {
return configsBuilder_.getMessage(index);
}
}
/**
* repeated .prefab.Config configs = 1;
*/
public Builder setConfigs(
int index, cloud.prefab.domain.Prefab.Config value) {
if (configsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigsIsMutable();
configs_.set(index, value);
onChanged();
} else {
configsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .prefab.Config configs = 1;
*/
public Builder setConfigs(
int index, cloud.prefab.domain.Prefab.Config.Builder builderForValue) {
if (configsBuilder_ == null) {
ensureConfigsIsMutable();
configs_.set(index, builderForValue.build());
onChanged();
} else {
configsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.Config configs = 1;
*/
public Builder addConfigs(cloud.prefab.domain.Prefab.Config value) {
if (configsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigsIsMutable();
configs_.add(value);
onChanged();
} else {
configsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .prefab.Config configs = 1;
*/
public Builder addConfigs(
int index, cloud.prefab.domain.Prefab.Config value) {
if (configsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigsIsMutable();
configs_.add(index, value);
onChanged();
} else {
configsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .prefab.Config configs = 1;
*/
public Builder addConfigs(
cloud.prefab.domain.Prefab.Config.Builder builderForValue) {
if (configsBuilder_ == null) {
ensureConfigsIsMutable();
configs_.add(builderForValue.build());
onChanged();
} else {
configsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .prefab.Config configs = 1;
*/
public Builder addConfigs(
int index, cloud.prefab.domain.Prefab.Config.Builder builderForValue) {
if (configsBuilder_ == null) {
ensureConfigsIsMutable();
configs_.add(index, builderForValue.build());
onChanged();
} else {
configsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.Config configs = 1;
*/
public Builder addAllConfigs(
java.lang.Iterable extends cloud.prefab.domain.Prefab.Config> values) {
if (configsBuilder_ == null) {
ensureConfigsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, configs_);
onChanged();
} else {
configsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .prefab.Config configs = 1;
*/
public Builder clearConfigs() {
if (configsBuilder_ == null) {
configs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
configsBuilder_.clear();
}
return this;
}
/**
* repeated .prefab.Config configs = 1;
*/
public Builder removeConfigs(int index) {
if (configsBuilder_ == null) {
ensureConfigsIsMutable();
configs_.remove(index);
onChanged();
} else {
configsBuilder_.remove(index);
}
return this;
}
/**
* repeated .prefab.Config configs = 1;
*/
public cloud.prefab.domain.Prefab.Config.Builder getConfigsBuilder(
int index) {
return getConfigsFieldBuilder().getBuilder(index);
}
/**
* repeated .prefab.Config configs = 1;
*/
public cloud.prefab.domain.Prefab.ConfigOrBuilder getConfigsOrBuilder(
int index) {
if (configsBuilder_ == null) {
return configs_.get(index); } else {
return configsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .prefab.Config configs = 1;
*/
public java.util.List extends cloud.prefab.domain.Prefab.ConfigOrBuilder>
getConfigsOrBuilderList() {
if (configsBuilder_ != null) {
return configsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(configs_);
}
}
/**
* repeated .prefab.Config configs = 1;
*/
public cloud.prefab.domain.Prefab.Config.Builder addConfigsBuilder() {
return getConfigsFieldBuilder().addBuilder(
cloud.prefab.domain.Prefab.Config.getDefaultInstance());
}
/**
* repeated .prefab.Config configs = 1;
*/
public cloud.prefab.domain.Prefab.Config.Builder addConfigsBuilder(
int index) {
return getConfigsFieldBuilder().addBuilder(
index, cloud.prefab.domain.Prefab.Config.getDefaultInstance());
}
/**
* repeated .prefab.Config configs = 1;
*/
public java.util.List
getConfigsBuilderList() {
return getConfigsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.Config, cloud.prefab.domain.Prefab.Config.Builder, cloud.prefab.domain.Prefab.ConfigOrBuilder>
getConfigsFieldBuilder() {
if (configsBuilder_ == null) {
configsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.Config, cloud.prefab.domain.Prefab.Config.Builder, cloud.prefab.domain.Prefab.ConfigOrBuilder>(
configs_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
configs_ = null;
}
return configsBuilder_;
}
private cloud.prefab.domain.Prefab.ConfigServicePointer configServicePointer_;
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ConfigServicePointer, cloud.prefab.domain.Prefab.ConfigServicePointer.Builder, cloud.prefab.domain.Prefab.ConfigServicePointerOrBuilder> configServicePointerBuilder_;
/**
* .prefab.ConfigServicePointer config_service_pointer = 2;
* @return Whether the configServicePointer field is set.
*/
public boolean hasConfigServicePointer() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .prefab.ConfigServicePointer config_service_pointer = 2;
* @return The configServicePointer.
*/
public cloud.prefab.domain.Prefab.ConfigServicePointer getConfigServicePointer() {
if (configServicePointerBuilder_ == null) {
return configServicePointer_ == null ? cloud.prefab.domain.Prefab.ConfigServicePointer.getDefaultInstance() : configServicePointer_;
} else {
return configServicePointerBuilder_.getMessage();
}
}
/**
* .prefab.ConfigServicePointer config_service_pointer = 2;
*/
public Builder setConfigServicePointer(cloud.prefab.domain.Prefab.ConfigServicePointer value) {
if (configServicePointerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
configServicePointer_ = value;
} else {
configServicePointerBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .prefab.ConfigServicePointer config_service_pointer = 2;
*/
public Builder setConfigServicePointer(
cloud.prefab.domain.Prefab.ConfigServicePointer.Builder builderForValue) {
if (configServicePointerBuilder_ == null) {
configServicePointer_ = builderForValue.build();
} else {
configServicePointerBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .prefab.ConfigServicePointer config_service_pointer = 2;
*/
public Builder mergeConfigServicePointer(cloud.prefab.domain.Prefab.ConfigServicePointer value) {
if (configServicePointerBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
configServicePointer_ != null &&
configServicePointer_ != cloud.prefab.domain.Prefab.ConfigServicePointer.getDefaultInstance()) {
getConfigServicePointerBuilder().mergeFrom(value);
} else {
configServicePointer_ = value;
}
} else {
configServicePointerBuilder_.mergeFrom(value);
}
if (configServicePointer_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .prefab.ConfigServicePointer config_service_pointer = 2;
*/
public Builder clearConfigServicePointer() {
bitField0_ = (bitField0_ & ~0x00000002);
configServicePointer_ = null;
if (configServicePointerBuilder_ != null) {
configServicePointerBuilder_.dispose();
configServicePointerBuilder_ = null;
}
onChanged();
return this;
}
/**
* .prefab.ConfigServicePointer config_service_pointer = 2;
*/
public cloud.prefab.domain.Prefab.ConfigServicePointer.Builder getConfigServicePointerBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getConfigServicePointerFieldBuilder().getBuilder();
}
/**
* .prefab.ConfigServicePointer config_service_pointer = 2;
*/
public cloud.prefab.domain.Prefab.ConfigServicePointerOrBuilder getConfigServicePointerOrBuilder() {
if (configServicePointerBuilder_ != null) {
return configServicePointerBuilder_.getMessageOrBuilder();
} else {
return configServicePointer_ == null ?
cloud.prefab.domain.Prefab.ConfigServicePointer.getDefaultInstance() : configServicePointer_;
}
}
/**
* .prefab.ConfigServicePointer config_service_pointer = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ConfigServicePointer, cloud.prefab.domain.Prefab.ConfigServicePointer.Builder, cloud.prefab.domain.Prefab.ConfigServicePointerOrBuilder>
getConfigServicePointerFieldBuilder() {
if (configServicePointerBuilder_ == null) {
configServicePointerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ConfigServicePointer, cloud.prefab.domain.Prefab.ConfigServicePointer.Builder, cloud.prefab.domain.Prefab.ConfigServicePointerOrBuilder>(
getConfigServicePointer(),
getParentForChildren(),
isClean());
configServicePointer_ = null;
}
return configServicePointerBuilder_;
}
private cloud.prefab.domain.Prefab.ApiKeyMetadata apikeyMetadata_;
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ApiKeyMetadata, cloud.prefab.domain.Prefab.ApiKeyMetadata.Builder, cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder> apikeyMetadataBuilder_;
/**
* optional .prefab.ApiKeyMetadata apikey_metadata = 3;
* @return Whether the apikeyMetadata field is set.
*/
public boolean hasApikeyMetadata() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .prefab.ApiKeyMetadata apikey_metadata = 3;
* @return The apikeyMetadata.
*/
public cloud.prefab.domain.Prefab.ApiKeyMetadata getApikeyMetadata() {
if (apikeyMetadataBuilder_ == null) {
return apikeyMetadata_ == null ? cloud.prefab.domain.Prefab.ApiKeyMetadata.getDefaultInstance() : apikeyMetadata_;
} else {
return apikeyMetadataBuilder_.getMessage();
}
}
/**
* optional .prefab.ApiKeyMetadata apikey_metadata = 3;
*/
public Builder setApikeyMetadata(cloud.prefab.domain.Prefab.ApiKeyMetadata value) {
if (apikeyMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
apikeyMetadata_ = value;
} else {
apikeyMetadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional .prefab.ApiKeyMetadata apikey_metadata = 3;
*/
public Builder setApikeyMetadata(
cloud.prefab.domain.Prefab.ApiKeyMetadata.Builder builderForValue) {
if (apikeyMetadataBuilder_ == null) {
apikeyMetadata_ = builderForValue.build();
} else {
apikeyMetadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional .prefab.ApiKeyMetadata apikey_metadata = 3;
*/
public Builder mergeApikeyMetadata(cloud.prefab.domain.Prefab.ApiKeyMetadata value) {
if (apikeyMetadataBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
apikeyMetadata_ != null &&
apikeyMetadata_ != cloud.prefab.domain.Prefab.ApiKeyMetadata.getDefaultInstance()) {
getApikeyMetadataBuilder().mergeFrom(value);
} else {
apikeyMetadata_ = value;
}
} else {
apikeyMetadataBuilder_.mergeFrom(value);
}
if (apikeyMetadata_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* optional .prefab.ApiKeyMetadata apikey_metadata = 3;
*/
public Builder clearApikeyMetadata() {
bitField0_ = (bitField0_ & ~0x00000004);
apikeyMetadata_ = null;
if (apikeyMetadataBuilder_ != null) {
apikeyMetadataBuilder_.dispose();
apikeyMetadataBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .prefab.ApiKeyMetadata apikey_metadata = 3;
*/
public cloud.prefab.domain.Prefab.ApiKeyMetadata.Builder getApikeyMetadataBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getApikeyMetadataFieldBuilder().getBuilder();
}
/**
* optional .prefab.ApiKeyMetadata apikey_metadata = 3;
*/
public cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder getApikeyMetadataOrBuilder() {
if (apikeyMetadataBuilder_ != null) {
return apikeyMetadataBuilder_.getMessageOrBuilder();
} else {
return apikeyMetadata_ == null ?
cloud.prefab.domain.Prefab.ApiKeyMetadata.getDefaultInstance() : apikeyMetadata_;
}
}
/**
* optional .prefab.ApiKeyMetadata apikey_metadata = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ApiKeyMetadata, cloud.prefab.domain.Prefab.ApiKeyMetadata.Builder, cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder>
getApikeyMetadataFieldBuilder() {
if (apikeyMetadataBuilder_ == null) {
apikeyMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ApiKeyMetadata, cloud.prefab.domain.Prefab.ApiKeyMetadata.Builder, cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder>(
getApikeyMetadata(),
getParentForChildren(),
isClean());
apikeyMetadata_ = null;
}
return apikeyMetadataBuilder_;
}
private cloud.prefab.domain.Prefab.ContextSet defaultContext_;
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ContextSet, cloud.prefab.domain.Prefab.ContextSet.Builder, cloud.prefab.domain.Prefab.ContextSetOrBuilder> defaultContextBuilder_;
/**
* optional .prefab.ContextSet default_context = 4;
* @return Whether the defaultContext field is set.
*/
public boolean hasDefaultContext() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .prefab.ContextSet default_context = 4;
* @return The defaultContext.
*/
public cloud.prefab.domain.Prefab.ContextSet getDefaultContext() {
if (defaultContextBuilder_ == null) {
return defaultContext_ == null ? cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : defaultContext_;
} else {
return defaultContextBuilder_.getMessage();
}
}
/**
* optional .prefab.ContextSet default_context = 4;
*/
public Builder setDefaultContext(cloud.prefab.domain.Prefab.ContextSet value) {
if (defaultContextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
defaultContext_ = value;
} else {
defaultContextBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional .prefab.ContextSet default_context = 4;
*/
public Builder setDefaultContext(
cloud.prefab.domain.Prefab.ContextSet.Builder builderForValue) {
if (defaultContextBuilder_ == null) {
defaultContext_ = builderForValue.build();
} else {
defaultContextBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional .prefab.ContextSet default_context = 4;
*/
public Builder mergeDefaultContext(cloud.prefab.domain.Prefab.ContextSet value) {
if (defaultContextBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
defaultContext_ != null &&
defaultContext_ != cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance()) {
getDefaultContextBuilder().mergeFrom(value);
} else {
defaultContext_ = value;
}
} else {
defaultContextBuilder_.mergeFrom(value);
}
if (defaultContext_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* optional .prefab.ContextSet default_context = 4;
*/
public Builder clearDefaultContext() {
bitField0_ = (bitField0_ & ~0x00000008);
defaultContext_ = null;
if (defaultContextBuilder_ != null) {
defaultContextBuilder_.dispose();
defaultContextBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .prefab.ContextSet default_context = 4;
*/
public cloud.prefab.domain.Prefab.ContextSet.Builder getDefaultContextBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getDefaultContextFieldBuilder().getBuilder();
}
/**
* optional .prefab.ContextSet default_context = 4;
*/
public cloud.prefab.domain.Prefab.ContextSetOrBuilder getDefaultContextOrBuilder() {
if (defaultContextBuilder_ != null) {
return defaultContextBuilder_.getMessageOrBuilder();
} else {
return defaultContext_ == null ?
cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : defaultContext_;
}
}
/**
* optional .prefab.ContextSet default_context = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ContextSet, cloud.prefab.domain.Prefab.ContextSet.Builder, cloud.prefab.domain.Prefab.ContextSetOrBuilder>
getDefaultContextFieldBuilder() {
if (defaultContextBuilder_ == null) {
defaultContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ContextSet, cloud.prefab.domain.Prefab.ContextSet.Builder, cloud.prefab.domain.Prefab.ContextSetOrBuilder>(
getDefaultContext(),
getParentForChildren(),
isClean());
defaultContext_ = null;
}
return defaultContextBuilder_;
}
private boolean keepAlive_ ;
/**
* optional bool keep_alive = 5;
* @return Whether the keepAlive field is set.
*/
@java.lang.Override
public boolean hasKeepAlive() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional bool keep_alive = 5;
* @return The keepAlive.
*/
@java.lang.Override
public boolean getKeepAlive() {
return keepAlive_;
}
/**
* optional bool keep_alive = 5;
* @param value The keepAlive to set.
* @return This builder for chaining.
*/
public Builder setKeepAlive(boolean value) {
keepAlive_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional bool keep_alive = 5;
* @return This builder for chaining.
*/
public Builder clearKeepAlive() {
bitField0_ = (bitField0_ & ~0x00000010);
keepAlive_ = 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.Configs)
}
// @@protoc_insertion_point(class_scope:prefab.Configs)
private static final cloud.prefab.domain.Prefab.Configs DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Configs();
}
public static cloud.prefab.domain.Prefab.Configs getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Configs parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.Configs getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.Config)
com.google.protobuf.MessageOrBuilder {
/**
* int64 id = 1;
* @return The id.
*/
long getId();
/**
* int64 project_id = 2;
* @return The projectId.
*/
long getProjectId();
/**
* string key = 3;
* @return The key.
*/
java.lang.String getKey();
/**
* string key = 3;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
* .prefab.ChangedBy changed_by = 4;
* @return Whether the changedBy field is set.
*/
boolean hasChangedBy();
/**
* .prefab.ChangedBy changed_by = 4;
* @return The changedBy.
*/
cloud.prefab.domain.Prefab.ChangedBy getChangedBy();
/**
* .prefab.ChangedBy changed_by = 4;
*/
cloud.prefab.domain.Prefab.ChangedByOrBuilder getChangedByOrBuilder();
/**
* repeated .prefab.ConfigRow rows = 5;
*/
java.util.List
getRowsList();
/**
* repeated .prefab.ConfigRow rows = 5;
*/
cloud.prefab.domain.Prefab.ConfigRow getRows(int index);
/**
* repeated .prefab.ConfigRow rows = 5;
*/
int getRowsCount();
/**
* repeated .prefab.ConfigRow rows = 5;
*/
java.util.List extends cloud.prefab.domain.Prefab.ConfigRowOrBuilder>
getRowsOrBuilderList();
/**
* repeated .prefab.ConfigRow rows = 5;
*/
cloud.prefab.domain.Prefab.ConfigRowOrBuilder getRowsOrBuilder(
int index);
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
java.util.List
getAllowableValuesList();
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
cloud.prefab.domain.Prefab.ConfigValue getAllowableValues(int index);
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
int getAllowableValuesCount();
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
java.util.List extends cloud.prefab.domain.Prefab.ConfigValueOrBuilder>
getAllowableValuesOrBuilderList();
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
cloud.prefab.domain.Prefab.ConfigValueOrBuilder getAllowableValuesOrBuilder(
int index);
/**
* .prefab.ConfigType config_type = 7;
* @return The enum numeric value on the wire for configType.
*/
int getConfigTypeValue();
/**
* .prefab.ConfigType config_type = 7;
* @return The configType.
*/
cloud.prefab.domain.Prefab.ConfigType getConfigType();
/**
* optional int64 draft_id = 8;
* @return Whether the draftId field is set.
*/
boolean hasDraftId();
/**
* optional int64 draft_id = 8;
* @return The draftId.
*/
long getDraftId();
/**
* .prefab.Config.ValueType value_type = 9;
* @return The enum numeric value on the wire for valueType.
*/
int getValueTypeValue();
/**
* .prefab.Config.ValueType value_type = 9;
* @return The valueType.
*/
cloud.prefab.domain.Prefab.Config.ValueType getValueType();
/**
*
* default value of a boolean in proto3 is false
*
*
* bool send_to_client_sdk = 10;
* @return The sendToClientSdk.
*/
boolean getSendToClientSdk();
}
/**
* Protobuf type {@code prefab.Config}
*/
public static final class Config extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.Config)
ConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use Config.newBuilder() to construct.
private Config(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Config() {
key_ = "";
rows_ = java.util.Collections.emptyList();
allowableValues_ = java.util.Collections.emptyList();
configType_ = 0;
valueType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Config();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Config_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Config_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Config.class, cloud.prefab.domain.Prefab.Config.Builder.class);
}
/**
* Protobuf enum {@code prefab.Config.ValueType}
*/
public enum ValueType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* proto null
*
*
* NOT_SET_VALUE_TYPE = 0;
*/
NOT_SET_VALUE_TYPE(0),
/**
* INT = 1;
*/
INT(1),
/**
* STRING = 2;
*/
STRING(2),
/**
* BYTES = 3;
*/
BYTES(3),
/**
* DOUBLE = 4;
*/
DOUBLE(4),
/**
* BOOL = 5;
*/
BOOL(5),
/**
* LIMIT_DEFINITION = 7;
*/
LIMIT_DEFINITION(7),
/**
* LOG_LEVEL = 9;
*/
LOG_LEVEL(9),
/**
* STRING_LIST = 10;
*/
STRING_LIST(10),
/**
* INT_RANGE = 11;
*/
INT_RANGE(11),
/**
* DURATION = 12;
*/
DURATION(12),
/**
* JSON = 13;
*/
JSON(13),
UNRECOGNIZED(-1),
;
/**
*
* proto null
*
*
* NOT_SET_VALUE_TYPE = 0;
*/
public static final int NOT_SET_VALUE_TYPE_VALUE = 0;
/**
* INT = 1;
*/
public static final int INT_VALUE = 1;
/**
* STRING = 2;
*/
public static final int STRING_VALUE = 2;
/**
* BYTES = 3;
*/
public static final int BYTES_VALUE = 3;
/**
* DOUBLE = 4;
*/
public static final int DOUBLE_VALUE = 4;
/**
* BOOL = 5;
*/
public static final int BOOL_VALUE = 5;
/**
* LIMIT_DEFINITION = 7;
*/
public static final int LIMIT_DEFINITION_VALUE = 7;
/**
* LOG_LEVEL = 9;
*/
public static final int LOG_LEVEL_VALUE = 9;
/**
* STRING_LIST = 10;
*/
public static final int STRING_LIST_VALUE = 10;
/**
* INT_RANGE = 11;
*/
public static final int INT_RANGE_VALUE = 11;
/**
* DURATION = 12;
*/
public static final int DURATION_VALUE = 12;
/**
* JSON = 13;
*/
public static final int JSON_VALUE = 13;
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 ValueType 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 ValueType forNumber(int value) {
switch (value) {
case 0: return NOT_SET_VALUE_TYPE;
case 1: return INT;
case 2: return STRING;
case 3: return BYTES;
case 4: return DOUBLE;
case 5: return BOOL;
case 7: return LIMIT_DEFINITION;
case 9: return LOG_LEVEL;
case 10: return STRING_LIST;
case 11: return INT_RANGE;
case 12: return DURATION;
case 13: return JSON;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ValueType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ValueType findValueByNumber(int number) {
return ValueType.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.Config.getDescriptor().getEnumTypes().get(0);
}
private static final ValueType[] VALUES = values();
public static ValueType 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 ValueType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:prefab.Config.ValueType)
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private long id_ = 0L;
/**
* int64 id = 1;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int PROJECT_ID_FIELD_NUMBER = 2;
private long projectId_ = 0L;
/**
* int64 project_id = 2;
* @return The projectId.
*/
@java.lang.Override
public long getProjectId() {
return projectId_;
}
public static final int KEY_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object key_ = "";
/**
* string key = 3;
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
java.lang.Object ref = key_;
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();
key_ = s;
return s;
}
}
/**
* string key = 3;
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CHANGED_BY_FIELD_NUMBER = 4;
private cloud.prefab.domain.Prefab.ChangedBy changedBy_;
/**
* .prefab.ChangedBy changed_by = 4;
* @return Whether the changedBy field is set.
*/
@java.lang.Override
public boolean hasChangedBy() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .prefab.ChangedBy changed_by = 4;
* @return The changedBy.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ChangedBy getChangedBy() {
return changedBy_ == null ? cloud.prefab.domain.Prefab.ChangedBy.getDefaultInstance() : changedBy_;
}
/**
* .prefab.ChangedBy changed_by = 4;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ChangedByOrBuilder getChangedByOrBuilder() {
return changedBy_ == null ? cloud.prefab.domain.Prefab.ChangedBy.getDefaultInstance() : changedBy_;
}
public static final int ROWS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List rows_;
/**
* repeated .prefab.ConfigRow rows = 5;
*/
@java.lang.Override
public java.util.List getRowsList() {
return rows_;
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
@java.lang.Override
public java.util.List extends cloud.prefab.domain.Prefab.ConfigRowOrBuilder>
getRowsOrBuilderList() {
return rows_;
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
@java.lang.Override
public int getRowsCount() {
return rows_.size();
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigRow getRows(int index) {
return rows_.get(index);
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigRowOrBuilder getRowsOrBuilder(
int index) {
return rows_.get(index);
}
public static final int ALLOWABLE_VALUES_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List allowableValues_;
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
@java.lang.Override
public java.util.List getAllowableValuesList() {
return allowableValues_;
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
@java.lang.Override
public java.util.List extends cloud.prefab.domain.Prefab.ConfigValueOrBuilder>
getAllowableValuesOrBuilderList() {
return allowableValues_;
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
@java.lang.Override
public int getAllowableValuesCount() {
return allowableValues_.size();
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigValue getAllowableValues(int index) {
return allowableValues_.get(index);
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getAllowableValuesOrBuilder(
int index) {
return allowableValues_.get(index);
}
public static final int CONFIG_TYPE_FIELD_NUMBER = 7;
private int configType_ = 0;
/**
* .prefab.ConfigType config_type = 7;
* @return The enum numeric value on the wire for configType.
*/
@java.lang.Override public int getConfigTypeValue() {
return configType_;
}
/**
* .prefab.ConfigType config_type = 7;
* @return The configType.
*/
@java.lang.Override public cloud.prefab.domain.Prefab.ConfigType getConfigType() {
cloud.prefab.domain.Prefab.ConfigType result = cloud.prefab.domain.Prefab.ConfigType.forNumber(configType_);
return result == null ? cloud.prefab.domain.Prefab.ConfigType.UNRECOGNIZED : result;
}
public static final int DRAFT_ID_FIELD_NUMBER = 8;
private long draftId_ = 0L;
/**
* optional int64 draft_id = 8;
* @return Whether the draftId field is set.
*/
@java.lang.Override
public boolean hasDraftId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 draft_id = 8;
* @return The draftId.
*/
@java.lang.Override
public long getDraftId() {
return draftId_;
}
public static final int VALUE_TYPE_FIELD_NUMBER = 9;
private int valueType_ = 0;
/**
* .prefab.Config.ValueType value_type = 9;
* @return The enum numeric value on the wire for valueType.
*/
@java.lang.Override public int getValueTypeValue() {
return valueType_;
}
/**
* .prefab.Config.ValueType value_type = 9;
* @return The valueType.
*/
@java.lang.Override public cloud.prefab.domain.Prefab.Config.ValueType getValueType() {
cloud.prefab.domain.Prefab.Config.ValueType result = cloud.prefab.domain.Prefab.Config.ValueType.forNumber(valueType_);
return result == null ? cloud.prefab.domain.Prefab.Config.ValueType.UNRECOGNIZED : result;
}
public static final int SEND_TO_CLIENT_SDK_FIELD_NUMBER = 10;
private boolean sendToClientSdk_ = false;
/**
*
* default value of a boolean in proto3 is false
*
*
* bool send_to_client_sdk = 10;
* @return The sendToClientSdk.
*/
@java.lang.Override
public boolean getSendToClientSdk() {
return sendToClientSdk_;
}
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 (id_ != 0L) {
output.writeInt64(1, id_);
}
if (projectId_ != 0L) {
output.writeInt64(2, projectId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, key_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getChangedBy());
}
for (int i = 0; i < rows_.size(); i++) {
output.writeMessage(5, rows_.get(i));
}
for (int i = 0; i < allowableValues_.size(); i++) {
output.writeMessage(6, allowableValues_.get(i));
}
if (configType_ != cloud.prefab.domain.Prefab.ConfigType.NOT_SET_CONFIG_TYPE.getNumber()) {
output.writeEnum(7, configType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(8, draftId_);
}
if (valueType_ != cloud.prefab.domain.Prefab.Config.ValueType.NOT_SET_VALUE_TYPE.getNumber()) {
output.writeEnum(9, valueType_);
}
if (sendToClientSdk_ != false) {
output.writeBool(10, sendToClientSdk_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, id_);
}
if (projectId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, projectId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, key_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getChangedBy());
}
for (int i = 0; i < rows_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, rows_.get(i));
}
for (int i = 0; i < allowableValues_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, allowableValues_.get(i));
}
if (configType_ != cloud.prefab.domain.Prefab.ConfigType.NOT_SET_CONFIG_TYPE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, configType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, draftId_);
}
if (valueType_ != cloud.prefab.domain.Prefab.Config.ValueType.NOT_SET_VALUE_TYPE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, valueType_);
}
if (sendToClientSdk_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, sendToClientSdk_);
}
size += getUnknownFields().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.Config)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.Config other = (cloud.prefab.domain.Prefab.Config) obj;
if (getId()
!= other.getId()) return false;
if (getProjectId()
!= other.getProjectId()) return false;
if (!getKey()
.equals(other.getKey())) return false;
if (hasChangedBy() != other.hasChangedBy()) return false;
if (hasChangedBy()) {
if (!getChangedBy()
.equals(other.getChangedBy())) return false;
}
if (!getRowsList()
.equals(other.getRowsList())) return false;
if (!getAllowableValuesList()
.equals(other.getAllowableValuesList())) return false;
if (configType_ != other.configType_) return false;
if (hasDraftId() != other.hasDraftId()) return false;
if (hasDraftId()) {
if (getDraftId()
!= other.getDraftId()) return false;
}
if (valueType_ != other.valueType_) return false;
if (getSendToClientSdk()
!= other.getSendToClientSdk()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getProjectId());
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
if (hasChangedBy()) {
hash = (37 * hash) + CHANGED_BY_FIELD_NUMBER;
hash = (53 * hash) + getChangedBy().hashCode();
}
if (getRowsCount() > 0) {
hash = (37 * hash) + ROWS_FIELD_NUMBER;
hash = (53 * hash) + getRowsList().hashCode();
}
if (getAllowableValuesCount() > 0) {
hash = (37 * hash) + ALLOWABLE_VALUES_FIELD_NUMBER;
hash = (53 * hash) + getAllowableValuesList().hashCode();
}
hash = (37 * hash) + CONFIG_TYPE_FIELD_NUMBER;
hash = (53 * hash) + configType_;
if (hasDraftId()) {
hash = (37 * hash) + DRAFT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDraftId());
}
hash = (37 * hash) + VALUE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + valueType_;
hash = (37 * hash) + SEND_TO_CLIENT_SDK_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSendToClientSdk());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.Config parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Config 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.Config parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Config 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.Config parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Config parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.Config parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Config 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.Config parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Config 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.Config parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Config 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.Config 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.Config}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.Config)
cloud.prefab.domain.Prefab.ConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Config_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Config_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Config.class, cloud.prefab.domain.Prefab.Config.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.Config.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getChangedByFieldBuilder();
getRowsFieldBuilder();
getAllowableValuesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = 0L;
projectId_ = 0L;
key_ = "";
changedBy_ = null;
if (changedByBuilder_ != null) {
changedByBuilder_.dispose();
changedByBuilder_ = null;
}
if (rowsBuilder_ == null) {
rows_ = java.util.Collections.emptyList();
} else {
rows_ = null;
rowsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (allowableValuesBuilder_ == null) {
allowableValues_ = java.util.Collections.emptyList();
} else {
allowableValues_ = null;
allowableValuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
configType_ = 0;
draftId_ = 0L;
valueType_ = 0;
sendToClientSdk_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Config_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Config getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.Config.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Config build() {
cloud.prefab.domain.Prefab.Config result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Config buildPartial() {
cloud.prefab.domain.Prefab.Config result = new cloud.prefab.domain.Prefab.Config(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.Config result) {
if (rowsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
rows_ = java.util.Collections.unmodifiableList(rows_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.rows_ = rows_;
} else {
result.rows_ = rowsBuilder_.build();
}
if (allowableValuesBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
allowableValues_ = java.util.Collections.unmodifiableList(allowableValues_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.allowableValues_ = allowableValues_;
} else {
result.allowableValues_ = allowableValuesBuilder_.build();
}
}
private void buildPartial0(cloud.prefab.domain.Prefab.Config result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.projectId_ = projectId_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.key_ = key_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.changedBy_ = changedByBuilder_ == null
? changedBy_
: changedByBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.configType_ = configType_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.draftId_ = draftId_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.valueType_ = valueType_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.sendToClientSdk_ = sendToClientSdk_;
}
result.bitField0_ |= to_bitField0_;
}
@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.Config) {
return mergeFrom((cloud.prefab.domain.Prefab.Config)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.Config other) {
if (other == cloud.prefab.domain.Prefab.Config.getDefaultInstance()) return this;
if (other.getId() != 0L) {
setId(other.getId());
}
if (other.getProjectId() != 0L) {
setProjectId(other.getProjectId());
}
if (!other.getKey().isEmpty()) {
key_ = other.key_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasChangedBy()) {
mergeChangedBy(other.getChangedBy());
}
if (rowsBuilder_ == null) {
if (!other.rows_.isEmpty()) {
if (rows_.isEmpty()) {
rows_ = other.rows_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureRowsIsMutable();
rows_.addAll(other.rows_);
}
onChanged();
}
} else {
if (!other.rows_.isEmpty()) {
if (rowsBuilder_.isEmpty()) {
rowsBuilder_.dispose();
rowsBuilder_ = null;
rows_ = other.rows_;
bitField0_ = (bitField0_ & ~0x00000010);
rowsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRowsFieldBuilder() : null;
} else {
rowsBuilder_.addAllMessages(other.rows_);
}
}
}
if (allowableValuesBuilder_ == null) {
if (!other.allowableValues_.isEmpty()) {
if (allowableValues_.isEmpty()) {
allowableValues_ = other.allowableValues_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureAllowableValuesIsMutable();
allowableValues_.addAll(other.allowableValues_);
}
onChanged();
}
} else {
if (!other.allowableValues_.isEmpty()) {
if (allowableValuesBuilder_.isEmpty()) {
allowableValuesBuilder_.dispose();
allowableValuesBuilder_ = null;
allowableValues_ = other.allowableValues_;
bitField0_ = (bitField0_ & ~0x00000020);
allowableValuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAllowableValuesFieldBuilder() : null;
} else {
allowableValuesBuilder_.addAllMessages(other.allowableValues_);
}
}
}
if (other.configType_ != 0) {
setConfigTypeValue(other.getConfigTypeValue());
}
if (other.hasDraftId()) {
setDraftId(other.getDraftId());
}
if (other.valueType_ != 0) {
setValueTypeValue(other.getValueTypeValue());
}
if (other.getSendToClientSdk() != false) {
setSendToClientSdk(other.getSendToClientSdk());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
id_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
projectId_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
key_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getChangedByFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
cloud.prefab.domain.Prefab.ConfigRow m =
input.readMessage(
cloud.prefab.domain.Prefab.ConfigRow.parser(),
extensionRegistry);
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.add(m);
} else {
rowsBuilder_.addMessage(m);
}
break;
} // case 42
case 50: {
cloud.prefab.domain.Prefab.ConfigValue m =
input.readMessage(
cloud.prefab.domain.Prefab.ConfigValue.parser(),
extensionRegistry);
if (allowableValuesBuilder_ == null) {
ensureAllowableValuesIsMutable();
allowableValues_.add(m);
} else {
allowableValuesBuilder_.addMessage(m);
}
break;
} // case 50
case 56: {
configType_ = input.readEnum();
bitField0_ |= 0x00000040;
break;
} // case 56
case 64: {
draftId_ = input.readInt64();
bitField0_ |= 0x00000080;
break;
} // case 64
case 72: {
valueType_ = input.readEnum();
bitField0_ |= 0x00000100;
break;
} // case 72
case 80: {
sendToClientSdk_ = input.readBool();
bitField0_ |= 0x00000200;
break;
} // case 80
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long id_ ;
/**
* int64 id = 1;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
* int64 id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int64 id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
onChanged();
return this;
}
private long projectId_ ;
/**
* int64 project_id = 2;
* @return The projectId.
*/
@java.lang.Override
public long getProjectId() {
return projectId_;
}
/**
* int64 project_id = 2;
* @param value The projectId to set.
* @return This builder for chaining.
*/
public Builder setProjectId(long value) {
projectId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int64 project_id = 2;
* @return This builder for chaining.
*/
public Builder clearProjectId() {
bitField0_ = (bitField0_ & ~0x00000002);
projectId_ = 0L;
onChanged();
return this;
}
private java.lang.Object key_ = "";
/**
* string key = 3;
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string key = 3;
* @return The bytes for key.
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string key = 3;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
key_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string key = 3;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string key = 3;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
key_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private cloud.prefab.domain.Prefab.ChangedBy changedBy_;
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ChangedBy, cloud.prefab.domain.Prefab.ChangedBy.Builder, cloud.prefab.domain.Prefab.ChangedByOrBuilder> changedByBuilder_;
/**
* .prefab.ChangedBy changed_by = 4;
* @return Whether the changedBy field is set.
*/
public boolean hasChangedBy() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .prefab.ChangedBy changed_by = 4;
* @return The changedBy.
*/
public cloud.prefab.domain.Prefab.ChangedBy getChangedBy() {
if (changedByBuilder_ == null) {
return changedBy_ == null ? cloud.prefab.domain.Prefab.ChangedBy.getDefaultInstance() : changedBy_;
} else {
return changedByBuilder_.getMessage();
}
}
/**
* .prefab.ChangedBy changed_by = 4;
*/
public Builder setChangedBy(cloud.prefab.domain.Prefab.ChangedBy value) {
if (changedByBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
changedBy_ = value;
} else {
changedByBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .prefab.ChangedBy changed_by = 4;
*/
public Builder setChangedBy(
cloud.prefab.domain.Prefab.ChangedBy.Builder builderForValue) {
if (changedByBuilder_ == null) {
changedBy_ = builderForValue.build();
} else {
changedByBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .prefab.ChangedBy changed_by = 4;
*/
public Builder mergeChangedBy(cloud.prefab.domain.Prefab.ChangedBy value) {
if (changedByBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
changedBy_ != null &&
changedBy_ != cloud.prefab.domain.Prefab.ChangedBy.getDefaultInstance()) {
getChangedByBuilder().mergeFrom(value);
} else {
changedBy_ = value;
}
} else {
changedByBuilder_.mergeFrom(value);
}
if (changedBy_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* .prefab.ChangedBy changed_by = 4;
*/
public Builder clearChangedBy() {
bitField0_ = (bitField0_ & ~0x00000008);
changedBy_ = null;
if (changedByBuilder_ != null) {
changedByBuilder_.dispose();
changedByBuilder_ = null;
}
onChanged();
return this;
}
/**
* .prefab.ChangedBy changed_by = 4;
*/
public cloud.prefab.domain.Prefab.ChangedBy.Builder getChangedByBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getChangedByFieldBuilder().getBuilder();
}
/**
* .prefab.ChangedBy changed_by = 4;
*/
public cloud.prefab.domain.Prefab.ChangedByOrBuilder getChangedByOrBuilder() {
if (changedByBuilder_ != null) {
return changedByBuilder_.getMessageOrBuilder();
} else {
return changedBy_ == null ?
cloud.prefab.domain.Prefab.ChangedBy.getDefaultInstance() : changedBy_;
}
}
/**
* .prefab.ChangedBy changed_by = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ChangedBy, cloud.prefab.domain.Prefab.ChangedBy.Builder, cloud.prefab.domain.Prefab.ChangedByOrBuilder>
getChangedByFieldBuilder() {
if (changedByBuilder_ == null) {
changedByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ChangedBy, cloud.prefab.domain.Prefab.ChangedBy.Builder, cloud.prefab.domain.Prefab.ChangedByOrBuilder>(
getChangedBy(),
getParentForChildren(),
isClean());
changedBy_ = null;
}
return changedByBuilder_;
}
private java.util.List rows_ =
java.util.Collections.emptyList();
private void ensureRowsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
rows_ = new java.util.ArrayList(rows_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.ConfigRow, cloud.prefab.domain.Prefab.ConfigRow.Builder, cloud.prefab.domain.Prefab.ConfigRowOrBuilder> rowsBuilder_;
/**
* repeated .prefab.ConfigRow rows = 5;
*/
public java.util.List getRowsList() {
if (rowsBuilder_ == null) {
return java.util.Collections.unmodifiableList(rows_);
} else {
return rowsBuilder_.getMessageList();
}
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
public int getRowsCount() {
if (rowsBuilder_ == null) {
return rows_.size();
} else {
return rowsBuilder_.getCount();
}
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
public cloud.prefab.domain.Prefab.ConfigRow getRows(int index) {
if (rowsBuilder_ == null) {
return rows_.get(index);
} else {
return rowsBuilder_.getMessage(index);
}
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
public Builder setRows(
int index, cloud.prefab.domain.Prefab.ConfigRow value) {
if (rowsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRowsIsMutable();
rows_.set(index, value);
onChanged();
} else {
rowsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
public Builder setRows(
int index, cloud.prefab.domain.Prefab.ConfigRow.Builder builderForValue) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.set(index, builderForValue.build());
onChanged();
} else {
rowsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
public Builder addRows(cloud.prefab.domain.Prefab.ConfigRow value) {
if (rowsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRowsIsMutable();
rows_.add(value);
onChanged();
} else {
rowsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
public Builder addRows(
int index, cloud.prefab.domain.Prefab.ConfigRow value) {
if (rowsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRowsIsMutable();
rows_.add(index, value);
onChanged();
} else {
rowsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
public Builder addRows(
cloud.prefab.domain.Prefab.ConfigRow.Builder builderForValue) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.add(builderForValue.build());
onChanged();
} else {
rowsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
public Builder addRows(
int index, cloud.prefab.domain.Prefab.ConfigRow.Builder builderForValue) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.add(index, builderForValue.build());
onChanged();
} else {
rowsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
public Builder addAllRows(
java.lang.Iterable extends cloud.prefab.domain.Prefab.ConfigRow> values) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rows_);
onChanged();
} else {
rowsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
public Builder clearRows() {
if (rowsBuilder_ == null) {
rows_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
rowsBuilder_.clear();
}
return this;
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
public Builder removeRows(int index) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.remove(index);
onChanged();
} else {
rowsBuilder_.remove(index);
}
return this;
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
public cloud.prefab.domain.Prefab.ConfigRow.Builder getRowsBuilder(
int index) {
return getRowsFieldBuilder().getBuilder(index);
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
public cloud.prefab.domain.Prefab.ConfigRowOrBuilder getRowsOrBuilder(
int index) {
if (rowsBuilder_ == null) {
return rows_.get(index); } else {
return rowsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
public java.util.List extends cloud.prefab.domain.Prefab.ConfigRowOrBuilder>
getRowsOrBuilderList() {
if (rowsBuilder_ != null) {
return rowsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(rows_);
}
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
public cloud.prefab.domain.Prefab.ConfigRow.Builder addRowsBuilder() {
return getRowsFieldBuilder().addBuilder(
cloud.prefab.domain.Prefab.ConfigRow.getDefaultInstance());
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
public cloud.prefab.domain.Prefab.ConfigRow.Builder addRowsBuilder(
int index) {
return getRowsFieldBuilder().addBuilder(
index, cloud.prefab.domain.Prefab.ConfigRow.getDefaultInstance());
}
/**
* repeated .prefab.ConfigRow rows = 5;
*/
public java.util.List
getRowsBuilderList() {
return getRowsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.ConfigRow, cloud.prefab.domain.Prefab.ConfigRow.Builder, cloud.prefab.domain.Prefab.ConfigRowOrBuilder>
getRowsFieldBuilder() {
if (rowsBuilder_ == null) {
rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.ConfigRow, cloud.prefab.domain.Prefab.ConfigRow.Builder, cloud.prefab.domain.Prefab.ConfigRowOrBuilder>(
rows_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
rows_ = null;
}
return rowsBuilder_;
}
private java.util.List allowableValues_ =
java.util.Collections.emptyList();
private void ensureAllowableValuesIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
allowableValues_ = new java.util.ArrayList(allowableValues_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder> allowableValuesBuilder_;
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
public java.util.List getAllowableValuesList() {
if (allowableValuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(allowableValues_);
} else {
return allowableValuesBuilder_.getMessageList();
}
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
public int getAllowableValuesCount() {
if (allowableValuesBuilder_ == null) {
return allowableValues_.size();
} else {
return allowableValuesBuilder_.getCount();
}
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
public cloud.prefab.domain.Prefab.ConfigValue getAllowableValues(int index) {
if (allowableValuesBuilder_ == null) {
return allowableValues_.get(index);
} else {
return allowableValuesBuilder_.getMessage(index);
}
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
public Builder setAllowableValues(
int index, cloud.prefab.domain.Prefab.ConfigValue value) {
if (allowableValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAllowableValuesIsMutable();
allowableValues_.set(index, value);
onChanged();
} else {
allowableValuesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
public Builder setAllowableValues(
int index, cloud.prefab.domain.Prefab.ConfigValue.Builder builderForValue) {
if (allowableValuesBuilder_ == null) {
ensureAllowableValuesIsMutable();
allowableValues_.set(index, builderForValue.build());
onChanged();
} else {
allowableValuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
public Builder addAllowableValues(cloud.prefab.domain.Prefab.ConfigValue value) {
if (allowableValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAllowableValuesIsMutable();
allowableValues_.add(value);
onChanged();
} else {
allowableValuesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
public Builder addAllowableValues(
int index, cloud.prefab.domain.Prefab.ConfigValue value) {
if (allowableValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAllowableValuesIsMutable();
allowableValues_.add(index, value);
onChanged();
} else {
allowableValuesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
public Builder addAllowableValues(
cloud.prefab.domain.Prefab.ConfigValue.Builder builderForValue) {
if (allowableValuesBuilder_ == null) {
ensureAllowableValuesIsMutable();
allowableValues_.add(builderForValue.build());
onChanged();
} else {
allowableValuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
public Builder addAllowableValues(
int index, cloud.prefab.domain.Prefab.ConfigValue.Builder builderForValue) {
if (allowableValuesBuilder_ == null) {
ensureAllowableValuesIsMutable();
allowableValues_.add(index, builderForValue.build());
onChanged();
} else {
allowableValuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
public Builder addAllAllowableValues(
java.lang.Iterable extends cloud.prefab.domain.Prefab.ConfigValue> values) {
if (allowableValuesBuilder_ == null) {
ensureAllowableValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, allowableValues_);
onChanged();
} else {
allowableValuesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
public Builder clearAllowableValues() {
if (allowableValuesBuilder_ == null) {
allowableValues_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
allowableValuesBuilder_.clear();
}
return this;
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
public Builder removeAllowableValues(int index) {
if (allowableValuesBuilder_ == null) {
ensureAllowableValuesIsMutable();
allowableValues_.remove(index);
onChanged();
} else {
allowableValuesBuilder_.remove(index);
}
return this;
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
public cloud.prefab.domain.Prefab.ConfigValue.Builder getAllowableValuesBuilder(
int index) {
return getAllowableValuesFieldBuilder().getBuilder(index);
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getAllowableValuesOrBuilder(
int index) {
if (allowableValuesBuilder_ == null) {
return allowableValues_.get(index); } else {
return allowableValuesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
public java.util.List extends cloud.prefab.domain.Prefab.ConfigValueOrBuilder>
getAllowableValuesOrBuilderList() {
if (allowableValuesBuilder_ != null) {
return allowableValuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(allowableValues_);
}
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
public cloud.prefab.domain.Prefab.ConfigValue.Builder addAllowableValuesBuilder() {
return getAllowableValuesFieldBuilder().addBuilder(
cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance());
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
public cloud.prefab.domain.Prefab.ConfigValue.Builder addAllowableValuesBuilder(
int index) {
return getAllowableValuesFieldBuilder().addBuilder(
index, cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance());
}
/**
* repeated .prefab.ConfigValue allowable_values = 6;
*/
public java.util.List
getAllowableValuesBuilderList() {
return getAllowableValuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder>
getAllowableValuesFieldBuilder() {
if (allowableValuesBuilder_ == null) {
allowableValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder>(
allowableValues_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
allowableValues_ = null;
}
return allowableValuesBuilder_;
}
private int configType_ = 0;
/**
* .prefab.ConfigType config_type = 7;
* @return The enum numeric value on the wire for configType.
*/
@java.lang.Override public int getConfigTypeValue() {
return configType_;
}
/**
* .prefab.ConfigType config_type = 7;
* @param value The enum numeric value on the wire for configType to set.
* @return This builder for chaining.
*/
public Builder setConfigTypeValue(int value) {
configType_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* .prefab.ConfigType config_type = 7;
* @return The configType.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigType getConfigType() {
cloud.prefab.domain.Prefab.ConfigType result = cloud.prefab.domain.Prefab.ConfigType.forNumber(configType_);
return result == null ? cloud.prefab.domain.Prefab.ConfigType.UNRECOGNIZED : result;
}
/**
* .prefab.ConfigType config_type = 7;
* @param value The configType to set.
* @return This builder for chaining.
*/
public Builder setConfigType(cloud.prefab.domain.Prefab.ConfigType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
configType_ = value.getNumber();
onChanged();
return this;
}
/**
* .prefab.ConfigType config_type = 7;
* @return This builder for chaining.
*/
public Builder clearConfigType() {
bitField0_ = (bitField0_ & ~0x00000040);
configType_ = 0;
onChanged();
return this;
}
private long draftId_ ;
/**
* optional int64 draft_id = 8;
* @return Whether the draftId field is set.
*/
@java.lang.Override
public boolean hasDraftId() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int64 draft_id = 8;
* @return The draftId.
*/
@java.lang.Override
public long getDraftId() {
return draftId_;
}
/**
* optional int64 draft_id = 8;
* @param value The draftId to set.
* @return This builder for chaining.
*/
public Builder setDraftId(long value) {
draftId_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* optional int64 draft_id = 8;
* @return This builder for chaining.
*/
public Builder clearDraftId() {
bitField0_ = (bitField0_ & ~0x00000080);
draftId_ = 0L;
onChanged();
return this;
}
private int valueType_ = 0;
/**
* .prefab.Config.ValueType value_type = 9;
* @return The enum numeric value on the wire for valueType.
*/
@java.lang.Override public int getValueTypeValue() {
return valueType_;
}
/**
* .prefab.Config.ValueType value_type = 9;
* @param value The enum numeric value on the wire for valueType to set.
* @return This builder for chaining.
*/
public Builder setValueTypeValue(int value) {
valueType_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* .prefab.Config.ValueType value_type = 9;
* @return The valueType.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.Config.ValueType getValueType() {
cloud.prefab.domain.Prefab.Config.ValueType result = cloud.prefab.domain.Prefab.Config.ValueType.forNumber(valueType_);
return result == null ? cloud.prefab.domain.Prefab.Config.ValueType.UNRECOGNIZED : result;
}
/**
* .prefab.Config.ValueType value_type = 9;
* @param value The valueType to set.
* @return This builder for chaining.
*/
public Builder setValueType(cloud.prefab.domain.Prefab.Config.ValueType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
valueType_ = value.getNumber();
onChanged();
return this;
}
/**
* .prefab.Config.ValueType value_type = 9;
* @return This builder for chaining.
*/
public Builder clearValueType() {
bitField0_ = (bitField0_ & ~0x00000100);
valueType_ = 0;
onChanged();
return this;
}
private boolean sendToClientSdk_ ;
/**
*
* default value of a boolean in proto3 is false
*
*
* bool send_to_client_sdk = 10;
* @return The sendToClientSdk.
*/
@java.lang.Override
public boolean getSendToClientSdk() {
return sendToClientSdk_;
}
/**
*
* default value of a boolean in proto3 is false
*
*
* bool send_to_client_sdk = 10;
* @param value The sendToClientSdk to set.
* @return This builder for chaining.
*/
public Builder setSendToClientSdk(boolean value) {
sendToClientSdk_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* default value of a boolean in proto3 is false
*
*
* bool send_to_client_sdk = 10;
* @return This builder for chaining.
*/
public Builder clearSendToClientSdk() {
bitField0_ = (bitField0_ & ~0x00000200);
sendToClientSdk_ = 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.Config)
}
// @@protoc_insertion_point(class_scope:prefab.Config)
private static final cloud.prefab.domain.Prefab.Config DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Config();
}
public static cloud.prefab.domain.Prefab.Config getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Config parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.Config getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ChangedByOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.ChangedBy)
com.google.protobuf.MessageOrBuilder {
/**
* int64 user_id = 1;
* @return The userId.
*/
long getUserId();
/**
* string email = 2;
* @return The email.
*/
java.lang.String getEmail();
/**
* string email = 2;
* @return The bytes for email.
*/
com.google.protobuf.ByteString
getEmailBytes();
/**
* string api_key_id = 3;
* @return The apiKeyId.
*/
java.lang.String getApiKeyId();
/**
* string api_key_id = 3;
* @return The bytes for apiKeyId.
*/
com.google.protobuf.ByteString
getApiKeyIdBytes();
}
/**
* Protobuf type {@code prefab.ChangedBy}
*/
public static final class ChangedBy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.ChangedBy)
ChangedByOrBuilder {
private static final long serialVersionUID = 0L;
// Use ChangedBy.newBuilder() to construct.
private ChangedBy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ChangedBy() {
email_ = "";
apiKeyId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ChangedBy();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ChangedBy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ChangedBy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.ChangedBy.class, cloud.prefab.domain.Prefab.ChangedBy.Builder.class);
}
public static final int USER_ID_FIELD_NUMBER = 1;
private long userId_ = 0L;
/**
* int64 user_id = 1;
* @return The userId.
*/
@java.lang.Override
public long getUserId() {
return userId_;
}
public static final int EMAIL_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object email_ = "";
/**
* string email = 2;
* @return The email.
*/
@java.lang.Override
public java.lang.String getEmail() {
java.lang.Object ref = email_;
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();
email_ = s;
return s;
}
}
/**
* string email = 2;
* @return The bytes for email.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEmailBytes() {
java.lang.Object ref = email_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
email_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int API_KEY_ID_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object apiKeyId_ = "";
/**
* string api_key_id = 3;
* @return The apiKeyId.
*/
@java.lang.Override
public java.lang.String getApiKeyId() {
java.lang.Object ref = apiKeyId_;
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();
apiKeyId_ = s;
return s;
}
}
/**
* string api_key_id = 3;
* @return The bytes for apiKeyId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiKeyIdBytes() {
java.lang.Object ref = apiKeyId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiKeyId_ = 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 (userId_ != 0L) {
output.writeInt64(1, userId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, email_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKeyId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, apiKeyId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (userId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, userId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, email_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKeyId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, apiKeyId_);
}
size += getUnknownFields().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.ChangedBy)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.ChangedBy other = (cloud.prefab.domain.Prefab.ChangedBy) obj;
if (getUserId()
!= other.getUserId()) return false;
if (!getEmail()
.equals(other.getEmail())) return false;
if (!getApiKeyId()
.equals(other.getApiKeyId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + USER_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUserId());
hash = (37 * hash) + EMAIL_FIELD_NUMBER;
hash = (53 * hash) + getEmail().hashCode();
hash = (37 * hash) + API_KEY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApiKeyId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.ChangedBy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ChangedBy 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.ChangedBy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ChangedBy 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.ChangedBy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ChangedBy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.ChangedBy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ChangedBy 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.ChangedBy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ChangedBy 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.ChangedBy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ChangedBy 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.ChangedBy 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.ChangedBy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.ChangedBy)
cloud.prefab.domain.Prefab.ChangedByOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ChangedBy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ChangedBy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.ChangedBy.class, cloud.prefab.domain.Prefab.ChangedBy.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.ChangedBy.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
userId_ = 0L;
email_ = "";
apiKeyId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ChangedBy_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ChangedBy getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.ChangedBy.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ChangedBy build() {
cloud.prefab.domain.Prefab.ChangedBy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ChangedBy buildPartial() {
cloud.prefab.domain.Prefab.ChangedBy result = new cloud.prefab.domain.Prefab.ChangedBy(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cloud.prefab.domain.Prefab.ChangedBy result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.userId_ = userId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.email_ = email_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.apiKeyId_ = apiKeyId_;
}
}
@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.ChangedBy) {
return mergeFrom((cloud.prefab.domain.Prefab.ChangedBy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.ChangedBy other) {
if (other == cloud.prefab.domain.Prefab.ChangedBy.getDefaultInstance()) return this;
if (other.getUserId() != 0L) {
setUserId(other.getUserId());
}
if (!other.getEmail().isEmpty()) {
email_ = other.email_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getApiKeyId().isEmpty()) {
apiKeyId_ = other.apiKeyId_;
bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
userId_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
email_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
apiKeyId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long userId_ ;
/**
* int64 user_id = 1;
* @return The userId.
*/
@java.lang.Override
public long getUserId() {
return userId_;
}
/**
* int64 user_id = 1;
* @param value The userId to set.
* @return This builder for chaining.
*/
public Builder setUserId(long value) {
userId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int64 user_id = 1;
* @return This builder for chaining.
*/
public Builder clearUserId() {
bitField0_ = (bitField0_ & ~0x00000001);
userId_ = 0L;
onChanged();
return this;
}
private java.lang.Object email_ = "";
/**
* string email = 2;
* @return The email.
*/
public java.lang.String getEmail() {
java.lang.Object ref = email_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
email_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string email = 2;
* @return The bytes for email.
*/
public com.google.protobuf.ByteString
getEmailBytes() {
java.lang.Object ref = email_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
email_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string email = 2;
* @param value The email to set.
* @return This builder for chaining.
*/
public Builder setEmail(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
email_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string email = 2;
* @return This builder for chaining.
*/
public Builder clearEmail() {
email_ = getDefaultInstance().getEmail();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string email = 2;
* @param value The bytes for email to set.
* @return This builder for chaining.
*/
public Builder setEmailBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
email_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object apiKeyId_ = "";
/**
* string api_key_id = 3;
* @return The apiKeyId.
*/
public java.lang.String getApiKeyId() {
java.lang.Object ref = apiKeyId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiKeyId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string api_key_id = 3;
* @return The bytes for apiKeyId.
*/
public com.google.protobuf.ByteString
getApiKeyIdBytes() {
java.lang.Object ref = apiKeyId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiKeyId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string api_key_id = 3;
* @param value The apiKeyId to set.
* @return This builder for chaining.
*/
public Builder setApiKeyId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
apiKeyId_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string api_key_id = 3;
* @return This builder for chaining.
*/
public Builder clearApiKeyId() {
apiKeyId_ = getDefaultInstance().getApiKeyId();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string api_key_id = 3;
* @param value The bytes for apiKeyId to set.
* @return This builder for chaining.
*/
public Builder setApiKeyIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
apiKeyId_ = value;
bitField0_ |= 0x00000004;
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.ChangedBy)
}
// @@protoc_insertion_point(class_scope:prefab.ChangedBy)
private static final cloud.prefab.domain.Prefab.ChangedBy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ChangedBy();
}
public static cloud.prefab.domain.Prefab.ChangedBy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ChangedBy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.ChangedBy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigRowOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.ConfigRow)
com.google.protobuf.MessageOrBuilder {
/**
*
* one row per project_env_id
*
*
* optional int64 project_env_id = 1;
* @return Whether the projectEnvId field is set.
*/
boolean hasProjectEnvId();
/**
*
* one row per project_env_id
*
*
* optional int64 project_env_id = 1;
* @return The projectEnvId.
*/
long getProjectEnvId();
/**
* repeated .prefab.ConditionalValue values = 2;
*/
java.util.List
getValuesList();
/**
* repeated .prefab.ConditionalValue values = 2;
*/
cloud.prefab.domain.Prefab.ConditionalValue getValues(int index);
/**
* repeated .prefab.ConditionalValue values = 2;
*/
int getValuesCount();
/**
* repeated .prefab.ConditionalValue values = 2;
*/
java.util.List extends cloud.prefab.domain.Prefab.ConditionalValueOrBuilder>
getValuesOrBuilderList();
/**
* repeated .prefab.ConditionalValue values = 2;
*/
cloud.prefab.domain.Prefab.ConditionalValueOrBuilder getValuesOrBuilder(
int index);
/**
*
* can store "activated"
*
*
* map<string, .prefab.ConfigValue> properties = 3;
*/
int getPropertiesCount();
/**
*
* can store "activated"
*
*
* map<string, .prefab.ConfigValue> properties = 3;
*/
boolean containsProperties(
java.lang.String key);
/**
* Use {@link #getPropertiesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getProperties();
/**
*
* can store "activated"
*
*
* map<string, .prefab.ConfigValue> properties = 3;
*/
java.util.Map
getPropertiesMap();
/**
*
* can store "activated"
*
*
* map<string, .prefab.ConfigValue> properties = 3;
*/
/* nullable */
cloud.prefab.domain.Prefab.ConfigValue getPropertiesOrDefault(
java.lang.String key,
/* nullable */
cloud.prefab.domain.Prefab.ConfigValue defaultValue);
/**
*
* can store "activated"
*
*
* map<string, .prefab.ConfigValue> properties = 3;
*/
cloud.prefab.domain.Prefab.ConfigValue getPropertiesOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code prefab.ConfigRow}
*/
public static final class ConfigRow extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.ConfigRow)
ConfigRowOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConfigRow.newBuilder() to construct.
private ConfigRow(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigRow() {
values_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConfigRow();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigRow_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetProperties();
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_ConfigRow_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.ConfigRow.class, cloud.prefab.domain.Prefab.ConfigRow.Builder.class);
}
private int bitField0_;
public static final int PROJECT_ENV_ID_FIELD_NUMBER = 1;
private long projectEnvId_ = 0L;
/**
*
* one row per project_env_id
*
*
* optional int64 project_env_id = 1;
* @return Whether the projectEnvId field is set.
*/
@java.lang.Override
public boolean hasProjectEnvId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* one row per project_env_id
*
*
* optional int64 project_env_id = 1;
* @return The projectEnvId.
*/
@java.lang.Override
public long getProjectEnvId() {
return projectEnvId_;
}
public static final int VALUES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List values_;
/**
* repeated .prefab.ConditionalValue values = 2;
*/
@java.lang.Override
public java.util.List getValuesList() {
return values_;
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
@java.lang.Override
public java.util.List extends cloud.prefab.domain.Prefab.ConditionalValueOrBuilder>
getValuesOrBuilderList() {
return values_;
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
@java.lang.Override
public int getValuesCount() {
return values_.size();
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConditionalValue getValues(int index) {
return values_.get(index);
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConditionalValueOrBuilder getValuesOrBuilder(
int index) {
return values_.get(index);
}
public static final int PROPERTIES_FIELD_NUMBER = 3;
private static final class PropertiesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, cloud.prefab.domain.Prefab.ConfigValue> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
cloud.prefab.domain.Prefab.internal_static_prefab_ConfigRow_PropertiesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, cloud.prefab.domain.Prefab.ConfigValue> properties_;
private com.google.protobuf.MapField
internalGetProperties() {
if (properties_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PropertiesDefaultEntryHolder.defaultEntry);
}
return properties_;
}
public int getPropertiesCount() {
return internalGetProperties().getMap().size();
}
/**
*
* can store "activated"
*
*
* map<string, .prefab.ConfigValue> properties = 3;
*/
@java.lang.Override
public boolean containsProperties(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetProperties().getMap().containsKey(key);
}
/**
* Use {@link #getPropertiesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getProperties() {
return getPropertiesMap();
}
/**
*
* can store "activated"
*
*
* map<string, .prefab.ConfigValue> properties = 3;
*/
@java.lang.Override
public java.util.Map getPropertiesMap() {
return internalGetProperties().getMap();
}
/**
*
* can store "activated"
*
*
* map<string, .prefab.ConfigValue> properties = 3;
*/
@java.lang.Override
public /* nullable */
cloud.prefab.domain.Prefab.ConfigValue getPropertiesOrDefault(
java.lang.String key,
/* nullable */
cloud.prefab.domain.Prefab.ConfigValue defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetProperties().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* can store "activated"
*
*
* map<string, .prefab.ConfigValue> properties = 3;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigValue getPropertiesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetProperties().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)) {
output.writeInt64(1, projectEnvId_);
}
for (int i = 0; i < values_.size(); i++) {
output.writeMessage(2, values_.get(i));
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetProperties(),
PropertiesDefaultEntryHolder.defaultEntry,
3);
getUnknownFields().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, projectEnvId_);
}
for (int i = 0; i < values_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, values_.get(i));
}
for (java.util.Map.Entry entry
: internalGetProperties().getMap().entrySet()) {
com.google.protobuf.MapEntry
properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, properties__);
}
size += getUnknownFields().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.ConfigRow)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.ConfigRow other = (cloud.prefab.domain.Prefab.ConfigRow) obj;
if (hasProjectEnvId() != other.hasProjectEnvId()) return false;
if (hasProjectEnvId()) {
if (getProjectEnvId()
!= other.getProjectEnvId()) return false;
}
if (!getValuesList()
.equals(other.getValuesList())) return false;
if (!internalGetProperties().equals(
other.internalGetProperties())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasProjectEnvId()) {
hash = (37 * hash) + PROJECT_ENV_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getProjectEnvId());
}
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
if (!internalGetProperties().getMap().isEmpty()) {
hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
hash = (53 * hash) + internalGetProperties().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.ConfigRow parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ConfigRow 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.ConfigRow parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ConfigRow 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.ConfigRow parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ConfigRow parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.ConfigRow parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ConfigRow 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.ConfigRow parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ConfigRow 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.ConfigRow parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ConfigRow 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.ConfigRow 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.ConfigRow}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.ConfigRow)
cloud.prefab.domain.Prefab.ConfigRowOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigRow_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetProperties();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 3:
return internalGetMutableProperties();
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_ConfigRow_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.ConfigRow.class, cloud.prefab.domain.Prefab.ConfigRow.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.ConfigRow.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
projectEnvId_ = 0L;
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
} else {
values_ = null;
valuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutableProperties().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigRow_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigRow getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.ConfigRow.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigRow build() {
cloud.prefab.domain.Prefab.ConfigRow result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigRow buildPartial() {
cloud.prefab.domain.Prefab.ConfigRow result = new cloud.prefab.domain.Prefab.ConfigRow(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.ConfigRow result) {
if (valuesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
values_ = java.util.Collections.unmodifiableList(values_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.values_ = values_;
} else {
result.values_ = valuesBuilder_.build();
}
}
private void buildPartial0(cloud.prefab.domain.Prefab.ConfigRow result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.projectEnvId_ = projectEnvId_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.properties_ = internalGetProperties();
result.properties_.makeImmutable();
}
result.bitField0_ |= to_bitField0_;
}
@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.ConfigRow) {
return mergeFrom((cloud.prefab.domain.Prefab.ConfigRow)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.ConfigRow other) {
if (other == cloud.prefab.domain.Prefab.ConfigRow.getDefaultInstance()) return this;
if (other.hasProjectEnvId()) {
setProjectEnvId(other.getProjectEnvId());
}
if (valuesBuilder_ == null) {
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
} else {
if (!other.values_.isEmpty()) {
if (valuesBuilder_.isEmpty()) {
valuesBuilder_.dispose();
valuesBuilder_ = null;
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000002);
valuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getValuesFieldBuilder() : null;
} else {
valuesBuilder_.addAllMessages(other.values_);
}
}
}
internalGetMutableProperties().mergeFrom(
other.internalGetProperties());
bitField0_ |= 0x00000004;
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
projectEnvId_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
cloud.prefab.domain.Prefab.ConditionalValue m =
input.readMessage(
cloud.prefab.domain.Prefab.ConditionalValue.parser(),
extensionRegistry);
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(m);
} else {
valuesBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
com.google.protobuf.MapEntry
properties__ = input.readMessage(
PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableProperties().getMutableMap().put(
properties__.getKey(), properties__.getValue());
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long projectEnvId_ ;
/**
*
* one row per project_env_id
*
*
* optional int64 project_env_id = 1;
* @return Whether the projectEnvId field is set.
*/
@java.lang.Override
public boolean hasProjectEnvId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* one row per project_env_id
*
*
* optional int64 project_env_id = 1;
* @return The projectEnvId.
*/
@java.lang.Override
public long getProjectEnvId() {
return projectEnvId_;
}
/**
*
* one row per project_env_id
*
*
* optional int64 project_env_id = 1;
* @param value The projectEnvId to set.
* @return This builder for chaining.
*/
public Builder setProjectEnvId(long value) {
projectEnvId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* one row per project_env_id
*
*
* optional int64 project_env_id = 1;
* @return This builder for chaining.
*/
public Builder clearProjectEnvId() {
bitField0_ = (bitField0_ & ~0x00000001);
projectEnvId_ = 0L;
onChanged();
return this;
}
private java.util.List values_ =
java.util.Collections.emptyList();
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
values_ = new java.util.ArrayList(values_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.ConditionalValue, cloud.prefab.domain.Prefab.ConditionalValue.Builder, cloud.prefab.domain.Prefab.ConditionalValueOrBuilder> valuesBuilder_;
/**
* repeated .prefab.ConditionalValue values = 2;
*/
public java.util.List getValuesList() {
if (valuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(values_);
} else {
return valuesBuilder_.getMessageList();
}
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
public int getValuesCount() {
if (valuesBuilder_ == null) {
return values_.size();
} else {
return valuesBuilder_.getCount();
}
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
public cloud.prefab.domain.Prefab.ConditionalValue getValues(int index) {
if (valuesBuilder_ == null) {
return values_.get(index);
} else {
return valuesBuilder_.getMessage(index);
}
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
public Builder setValues(
int index, cloud.prefab.domain.Prefab.ConditionalValue value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.set(index, value);
onChanged();
} else {
valuesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
public Builder setValues(
int index, cloud.prefab.domain.Prefab.ConditionalValue.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.set(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
public Builder addValues(cloud.prefab.domain.Prefab.ConditionalValue value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(value);
onChanged();
} else {
valuesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
public Builder addValues(
int index, cloud.prefab.domain.Prefab.ConditionalValue value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(index, value);
onChanged();
} else {
valuesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
public Builder addValues(
cloud.prefab.domain.Prefab.ConditionalValue.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
public Builder addValues(
int index, cloud.prefab.domain.Prefab.ConditionalValue.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
public Builder addAllValues(
java.lang.Iterable extends cloud.prefab.domain.Prefab.ConditionalValue> values) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
} else {
valuesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
public Builder clearValues() {
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
valuesBuilder_.clear();
}
return this;
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
public Builder removeValues(int index) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.remove(index);
onChanged();
} else {
valuesBuilder_.remove(index);
}
return this;
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
public cloud.prefab.domain.Prefab.ConditionalValue.Builder getValuesBuilder(
int index) {
return getValuesFieldBuilder().getBuilder(index);
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
public cloud.prefab.domain.Prefab.ConditionalValueOrBuilder getValuesOrBuilder(
int index) {
if (valuesBuilder_ == null) {
return values_.get(index); } else {
return valuesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
public java.util.List extends cloud.prefab.domain.Prefab.ConditionalValueOrBuilder>
getValuesOrBuilderList() {
if (valuesBuilder_ != null) {
return valuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(values_);
}
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
public cloud.prefab.domain.Prefab.ConditionalValue.Builder addValuesBuilder() {
return getValuesFieldBuilder().addBuilder(
cloud.prefab.domain.Prefab.ConditionalValue.getDefaultInstance());
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
public cloud.prefab.domain.Prefab.ConditionalValue.Builder addValuesBuilder(
int index) {
return getValuesFieldBuilder().addBuilder(
index, cloud.prefab.domain.Prefab.ConditionalValue.getDefaultInstance());
}
/**
* repeated .prefab.ConditionalValue values = 2;
*/
public java.util.List
getValuesBuilderList() {
return getValuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.ConditionalValue, cloud.prefab.domain.Prefab.ConditionalValue.Builder, cloud.prefab.domain.Prefab.ConditionalValueOrBuilder>
getValuesFieldBuilder() {
if (valuesBuilder_ == null) {
valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.ConditionalValue, cloud.prefab.domain.Prefab.ConditionalValue.Builder, cloud.prefab.domain.Prefab.ConditionalValueOrBuilder>(
values_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
values_ = null;
}
return valuesBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, cloud.prefab.domain.Prefab.ConfigValue> properties_;
private com.google.protobuf.MapField
internalGetProperties() {
if (properties_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PropertiesDefaultEntryHolder.defaultEntry);
}
return properties_;
}
private com.google.protobuf.MapField
internalGetMutableProperties() {
if (properties_ == null) {
properties_ = com.google.protobuf.MapField.newMapField(
PropertiesDefaultEntryHolder.defaultEntry);
}
if (!properties_.isMutable()) {
properties_ = properties_.copy();
}
bitField0_ |= 0x00000004;
onChanged();
return properties_;
}
public int getPropertiesCount() {
return internalGetProperties().getMap().size();
}
/**
*
* can store "activated"
*
*
* map<string, .prefab.ConfigValue> properties = 3;
*/
@java.lang.Override
public boolean containsProperties(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetProperties().getMap().containsKey(key);
}
/**
* Use {@link #getPropertiesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getProperties() {
return getPropertiesMap();
}
/**
*
* can store "activated"
*
*
* map<string, .prefab.ConfigValue> properties = 3;
*/
@java.lang.Override
public java.util.Map getPropertiesMap() {
return internalGetProperties().getMap();
}
/**
*
* can store "activated"
*
*
* map<string, .prefab.ConfigValue> properties = 3;
*/
@java.lang.Override
public /* nullable */
cloud.prefab.domain.Prefab.ConfigValue getPropertiesOrDefault(
java.lang.String key,
/* nullable */
cloud.prefab.domain.Prefab.ConfigValue defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetProperties().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* can store "activated"
*
*
* map<string, .prefab.ConfigValue> properties = 3;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigValue getPropertiesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetProperties().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearProperties() {
bitField0_ = (bitField0_ & ~0x00000004);
internalGetMutableProperties().getMutableMap()
.clear();
return this;
}
/**
*
* can store "activated"
*
*
* map<string, .prefab.ConfigValue> properties = 3;
*/
public Builder removeProperties(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableProperties().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableProperties() {
bitField0_ |= 0x00000004;
return internalGetMutableProperties().getMutableMap();
}
/**
*
* can store "activated"
*
*
* map<string, .prefab.ConfigValue> properties = 3;
*/
public Builder putProperties(
java.lang.String key,
cloud.prefab.domain.Prefab.ConfigValue value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableProperties().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000004;
return this;
}
/**
*
* can store "activated"
*
*
* map<string, .prefab.ConfigValue> properties = 3;
*/
public Builder putAllProperties(
java.util.Map values) {
internalGetMutableProperties().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000004;
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.ConfigRow)
}
// @@protoc_insertion_point(class_scope:prefab.ConfigRow)
private static final cloud.prefab.domain.Prefab.ConfigRow DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ConfigRow();
}
public static cloud.prefab.domain.Prefab.ConfigRow getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConfigRow parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.ConfigRow getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConditionalValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.ConditionalValue)
com.google.protobuf.MessageOrBuilder {
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
java.util.List
getCriteriaList();
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
cloud.prefab.domain.Prefab.Criterion getCriteria(int index);
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
int getCriteriaCount();
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
java.util.List extends cloud.prefab.domain.Prefab.CriterionOrBuilder>
getCriteriaOrBuilderList();
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
cloud.prefab.domain.Prefab.CriterionOrBuilder getCriteriaOrBuilder(
int index);
/**
* .prefab.ConfigValue value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* .prefab.ConfigValue value = 2;
* @return The value.
*/
cloud.prefab.domain.Prefab.ConfigValue getValue();
/**
* .prefab.ConfigValue value = 2;
*/
cloud.prefab.domain.Prefab.ConfigValueOrBuilder getValueOrBuilder();
}
/**
* Protobuf type {@code prefab.ConditionalValue}
*/
public static final class ConditionalValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.ConditionalValue)
ConditionalValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConditionalValue.newBuilder() to construct.
private ConditionalValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConditionalValue() {
criteria_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConditionalValue();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConditionalValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConditionalValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.ConditionalValue.class, cloud.prefab.domain.Prefab.ConditionalValue.Builder.class);
}
private int bitField0_;
public static final int CRITERIA_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List criteria_;
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
@java.lang.Override
public java.util.List getCriteriaList() {
return criteria_;
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
@java.lang.Override
public java.util.List extends cloud.prefab.domain.Prefab.CriterionOrBuilder>
getCriteriaOrBuilderList() {
return criteria_;
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
@java.lang.Override
public int getCriteriaCount() {
return criteria_.size();
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.Criterion getCriteria(int index) {
return criteria_.get(index);
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.CriterionOrBuilder getCriteriaOrBuilder(
int index) {
return criteria_.get(index);
}
public static final int VALUE_FIELD_NUMBER = 2;
private cloud.prefab.domain.Prefab.ConfigValue value_;
/**
* .prefab.ConfigValue value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .prefab.ConfigValue value = 2;
* @return The value.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigValue getValue() {
return value_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : value_;
}
/**
* .prefab.ConfigValue value = 2;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getValueOrBuilder() {
return value_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : value_;
}
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 < criteria_.size(); i++) {
output.writeMessage(1, criteria_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getValue());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < criteria_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, criteria_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getValue());
}
size += getUnknownFields().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.ConditionalValue)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.ConditionalValue other = (cloud.prefab.domain.Prefab.ConditionalValue) obj;
if (!getCriteriaList()
.equals(other.getCriteriaList())) return false;
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getCriteriaCount() > 0) {
hash = (37 * hash) + CRITERIA_FIELD_NUMBER;
hash = (53 * hash) + getCriteriaList().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.ConditionalValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ConditionalValue 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.ConditionalValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ConditionalValue 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.ConditionalValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ConditionalValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.ConditionalValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ConditionalValue 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.ConditionalValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ConditionalValue 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.ConditionalValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ConditionalValue 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.ConditionalValue 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.ConditionalValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.ConditionalValue)
cloud.prefab.domain.Prefab.ConditionalValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConditionalValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConditionalValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.ConditionalValue.class, cloud.prefab.domain.Prefab.ConditionalValue.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.ConditionalValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCriteriaFieldBuilder();
getValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (criteriaBuilder_ == null) {
criteria_ = java.util.Collections.emptyList();
} else {
criteria_ = null;
criteriaBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ConditionalValue_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ConditionalValue getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.ConditionalValue.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ConditionalValue build() {
cloud.prefab.domain.Prefab.ConditionalValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ConditionalValue buildPartial() {
cloud.prefab.domain.Prefab.ConditionalValue result = new cloud.prefab.domain.Prefab.ConditionalValue(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.ConditionalValue result) {
if (criteriaBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
criteria_ = java.util.Collections.unmodifiableList(criteria_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.criteria_ = criteria_;
} else {
result.criteria_ = criteriaBuilder_.build();
}
}
private void buildPartial0(cloud.prefab.domain.Prefab.ConditionalValue result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = valueBuilder_ == null
? value_
: valueBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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.ConditionalValue) {
return mergeFrom((cloud.prefab.domain.Prefab.ConditionalValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.ConditionalValue other) {
if (other == cloud.prefab.domain.Prefab.ConditionalValue.getDefaultInstance()) return this;
if (criteriaBuilder_ == null) {
if (!other.criteria_.isEmpty()) {
if (criteria_.isEmpty()) {
criteria_ = other.criteria_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCriteriaIsMutable();
criteria_.addAll(other.criteria_);
}
onChanged();
}
} else {
if (!other.criteria_.isEmpty()) {
if (criteriaBuilder_.isEmpty()) {
criteriaBuilder_.dispose();
criteriaBuilder_ = null;
criteria_ = other.criteria_;
bitField0_ = (bitField0_ & ~0x00000001);
criteriaBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCriteriaFieldBuilder() : null;
} else {
criteriaBuilder_.addAllMessages(other.criteria_);
}
}
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
cloud.prefab.domain.Prefab.Criterion m =
input.readMessage(
cloud.prefab.domain.Prefab.Criterion.parser(),
extensionRegistry);
if (criteriaBuilder_ == null) {
ensureCriteriaIsMutable();
criteria_.add(m);
} else {
criteriaBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
input.readMessage(
getValueFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List criteria_ =
java.util.Collections.emptyList();
private void ensureCriteriaIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
criteria_ = new java.util.ArrayList(criteria_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.Criterion, cloud.prefab.domain.Prefab.Criterion.Builder, cloud.prefab.domain.Prefab.CriterionOrBuilder> criteriaBuilder_;
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
public java.util.List getCriteriaList() {
if (criteriaBuilder_ == null) {
return java.util.Collections.unmodifiableList(criteria_);
} else {
return criteriaBuilder_.getMessageList();
}
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
public int getCriteriaCount() {
if (criteriaBuilder_ == null) {
return criteria_.size();
} else {
return criteriaBuilder_.getCount();
}
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
public cloud.prefab.domain.Prefab.Criterion getCriteria(int index) {
if (criteriaBuilder_ == null) {
return criteria_.get(index);
} else {
return criteriaBuilder_.getMessage(index);
}
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
public Builder setCriteria(
int index, cloud.prefab.domain.Prefab.Criterion value) {
if (criteriaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCriteriaIsMutable();
criteria_.set(index, value);
onChanged();
} else {
criteriaBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
public Builder setCriteria(
int index, cloud.prefab.domain.Prefab.Criterion.Builder builderForValue) {
if (criteriaBuilder_ == null) {
ensureCriteriaIsMutable();
criteria_.set(index, builderForValue.build());
onChanged();
} else {
criteriaBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
public Builder addCriteria(cloud.prefab.domain.Prefab.Criterion value) {
if (criteriaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCriteriaIsMutable();
criteria_.add(value);
onChanged();
} else {
criteriaBuilder_.addMessage(value);
}
return this;
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
public Builder addCriteria(
int index, cloud.prefab.domain.Prefab.Criterion value) {
if (criteriaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCriteriaIsMutable();
criteria_.add(index, value);
onChanged();
} else {
criteriaBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
public Builder addCriteria(
cloud.prefab.domain.Prefab.Criterion.Builder builderForValue) {
if (criteriaBuilder_ == null) {
ensureCriteriaIsMutable();
criteria_.add(builderForValue.build());
onChanged();
} else {
criteriaBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
public Builder addCriteria(
int index, cloud.prefab.domain.Prefab.Criterion.Builder builderForValue) {
if (criteriaBuilder_ == null) {
ensureCriteriaIsMutable();
criteria_.add(index, builderForValue.build());
onChanged();
} else {
criteriaBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
public Builder addAllCriteria(
java.lang.Iterable extends cloud.prefab.domain.Prefab.Criterion> values) {
if (criteriaBuilder_ == null) {
ensureCriteriaIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, criteria_);
onChanged();
} else {
criteriaBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
public Builder clearCriteria() {
if (criteriaBuilder_ == null) {
criteria_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
criteriaBuilder_.clear();
}
return this;
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
public Builder removeCriteria(int index) {
if (criteriaBuilder_ == null) {
ensureCriteriaIsMutable();
criteria_.remove(index);
onChanged();
} else {
criteriaBuilder_.remove(index);
}
return this;
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
public cloud.prefab.domain.Prefab.Criterion.Builder getCriteriaBuilder(
int index) {
return getCriteriaFieldBuilder().getBuilder(index);
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
public cloud.prefab.domain.Prefab.CriterionOrBuilder getCriteriaOrBuilder(
int index) {
if (criteriaBuilder_ == null) {
return criteria_.get(index); } else {
return criteriaBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
public java.util.List extends cloud.prefab.domain.Prefab.CriterionOrBuilder>
getCriteriaOrBuilderList() {
if (criteriaBuilder_ != null) {
return criteriaBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(criteria_);
}
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
public cloud.prefab.domain.Prefab.Criterion.Builder addCriteriaBuilder() {
return getCriteriaFieldBuilder().addBuilder(
cloud.prefab.domain.Prefab.Criterion.getDefaultInstance());
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
public cloud.prefab.domain.Prefab.Criterion.Builder addCriteriaBuilder(
int index) {
return getCriteriaFieldBuilder().addBuilder(
index, cloud.prefab.domain.Prefab.Criterion.getDefaultInstance());
}
/**
*
* if all criteria match, then the rule is matched and value is returned
*
*
* repeated .prefab.Criterion criteria = 1;
*/
public java.util.List
getCriteriaBuilderList() {
return getCriteriaFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.Criterion, cloud.prefab.domain.Prefab.Criterion.Builder, cloud.prefab.domain.Prefab.CriterionOrBuilder>
getCriteriaFieldBuilder() {
if (criteriaBuilder_ == null) {
criteriaBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.Criterion, cloud.prefab.domain.Prefab.Criterion.Builder, cloud.prefab.domain.Prefab.CriterionOrBuilder>(
criteria_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
criteria_ = null;
}
return criteriaBuilder_;
}
private cloud.prefab.domain.Prefab.ConfigValue value_;
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder> valueBuilder_;
/**
* .prefab.ConfigValue value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .prefab.ConfigValue value = 2;
* @return The value.
*/
public cloud.prefab.domain.Prefab.ConfigValue getValue() {
if (valueBuilder_ == null) {
return value_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* .prefab.ConfigValue value = 2;
*/
public Builder setValue(cloud.prefab.domain.Prefab.ConfigValue value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .prefab.ConfigValue value = 2;
*/
public Builder setValue(
cloud.prefab.domain.Prefab.ConfigValue.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .prefab.ConfigValue value = 2;
*/
public Builder mergeValue(cloud.prefab.domain.Prefab.ConfigValue value) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
value_ != null &&
value_ != cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance()) {
getValueBuilder().mergeFrom(value);
} else {
value_ = value;
}
} else {
valueBuilder_.mergeFrom(value);
}
if (value_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .prefab.ConfigValue value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
onChanged();
return this;
}
/**
* .prefab.ConfigValue value = 2;
*/
public cloud.prefab.domain.Prefab.ConfigValue.Builder getValueBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* .prefab.ConfigValue value = 2;
*/
public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : value_;
}
}
/**
* .prefab.ConfigValue value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
@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.ConditionalValue)
}
// @@protoc_insertion_point(class_scope:prefab.ConditionalValue)
private static final cloud.prefab.domain.Prefab.ConditionalValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ConditionalValue();
}
public static cloud.prefab.domain.Prefab.ConditionalValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConditionalValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.ConditionalValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CriterionOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.Criterion)
com.google.protobuf.MessageOrBuilder {
/**
* string property_name = 1;
* @return The propertyName.
*/
java.lang.String getPropertyName();
/**
* string property_name = 1;
* @return The bytes for propertyName.
*/
com.google.protobuf.ByteString
getPropertyNameBytes();
/**
* .prefab.Criterion.CriterionOperator operator = 2;
* @return The enum numeric value on the wire for operator.
*/
int getOperatorValue();
/**
* .prefab.Criterion.CriterionOperator operator = 2;
* @return The operator.
*/
cloud.prefab.domain.Prefab.Criterion.CriterionOperator getOperator();
/**
* .prefab.ConfigValue value_to_match = 3;
* @return Whether the valueToMatch field is set.
*/
boolean hasValueToMatch();
/**
* .prefab.ConfigValue value_to_match = 3;
* @return The valueToMatch.
*/
cloud.prefab.domain.Prefab.ConfigValue getValueToMatch();
/**
* .prefab.ConfigValue value_to_match = 3;
*/
cloud.prefab.domain.Prefab.ConfigValueOrBuilder getValueToMatchOrBuilder();
}
/**
* Protobuf type {@code prefab.Criterion}
*/
public static final class Criterion extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.Criterion)
CriterionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Criterion.newBuilder() to construct.
private Criterion(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Criterion() {
propertyName_ = "";
operator_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Criterion();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Criterion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Criterion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Criterion.class, cloud.prefab.domain.Prefab.Criterion.Builder.class);
}
/**
* Protobuf enum {@code prefab.Criterion.CriterionOperator}
*/
public enum CriterionOperator
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* proto null
*
*
* NOT_SET = 0;
*/
NOT_SET(0),
/**
* LOOKUP_KEY_IN = 1;
*/
LOOKUP_KEY_IN(1),
/**
* LOOKUP_KEY_NOT_IN = 2;
*/
LOOKUP_KEY_NOT_IN(2),
/**
* IN_SEG = 3;
*/
IN_SEG(3),
/**
* NOT_IN_SEG = 4;
*/
NOT_IN_SEG(4),
/**
* ALWAYS_TRUE = 5;
*/
ALWAYS_TRUE(5),
/**
* PROP_IS_ONE_OF = 6;
*/
PROP_IS_ONE_OF(6),
/**
* PROP_IS_NOT_ONE_OF = 7;
*/
PROP_IS_NOT_ONE_OF(7),
/**
* PROP_ENDS_WITH_ONE_OF = 8;
*/
PROP_ENDS_WITH_ONE_OF(8),
/**
* PROP_DOES_NOT_END_WITH_ONE_OF = 9;
*/
PROP_DOES_NOT_END_WITH_ONE_OF(9),
/**
* HIERARCHICAL_MATCH = 10;
*/
HIERARCHICAL_MATCH(10),
/**
* IN_INT_RANGE = 11;
*/
IN_INT_RANGE(11),
UNRECOGNIZED(-1),
;
/**
*
* proto null
*
*
* 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;
/**
* HIERARCHICAL_MATCH = 10;
*/
public static final int HIERARCHICAL_MATCH_VALUE = 10;
/**
* IN_INT_RANGE = 11;
*/
public static final int IN_INT_RANGE_VALUE = 11;
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 CriterionOperator 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 CriterionOperator 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;
case 10: return HIERARCHICAL_MATCH;
case 11: return IN_INT_RANGE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CriterionOperator> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CriterionOperator findValueByNumber(int number) {
return CriterionOperator.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.Criterion.getDescriptor().getEnumTypes().get(0);
}
private static final CriterionOperator[] VALUES = values();
public static CriterionOperator 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 CriterionOperator(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:prefab.Criterion.CriterionOperator)
}
private int bitField0_;
public static final int PROPERTY_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object propertyName_ = "";
/**
* string property_name = 1;
* @return The propertyName.
*/
@java.lang.Override
public java.lang.String getPropertyName() {
java.lang.Object ref = propertyName_;
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();
propertyName_ = s;
return s;
}
}
/**
* string property_name = 1;
* @return The bytes for propertyName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPropertyNameBytes() {
java.lang.Object ref = propertyName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
propertyName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPERATOR_FIELD_NUMBER = 2;
private int operator_ = 0;
/**
* .prefab.Criterion.CriterionOperator operator = 2;
* @return The enum numeric value on the wire for operator.
*/
@java.lang.Override public int getOperatorValue() {
return operator_;
}
/**
* .prefab.Criterion.CriterionOperator operator = 2;
* @return The operator.
*/
@java.lang.Override public cloud.prefab.domain.Prefab.Criterion.CriterionOperator getOperator() {
cloud.prefab.domain.Prefab.Criterion.CriterionOperator result = cloud.prefab.domain.Prefab.Criterion.CriterionOperator.forNumber(operator_);
return result == null ? cloud.prefab.domain.Prefab.Criterion.CriterionOperator.UNRECOGNIZED : result;
}
public static final int VALUE_TO_MATCH_FIELD_NUMBER = 3;
private cloud.prefab.domain.Prefab.ConfigValue valueToMatch_;
/**
* .prefab.ConfigValue value_to_match = 3;
* @return Whether the valueToMatch field is set.
*/
@java.lang.Override
public boolean hasValueToMatch() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .prefab.ConfigValue value_to_match = 3;
* @return The valueToMatch.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigValue getValueToMatch() {
return valueToMatch_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : valueToMatch_;
}
/**
* .prefab.ConfigValue value_to_match = 3;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getValueToMatchOrBuilder() {
return valueToMatch_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : valueToMatch_;
}
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(propertyName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, propertyName_);
}
if (operator_ != cloud.prefab.domain.Prefab.Criterion.CriterionOperator.NOT_SET.getNumber()) {
output.writeEnum(2, operator_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getValueToMatch());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propertyName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, propertyName_);
}
if (operator_ != cloud.prefab.domain.Prefab.Criterion.CriterionOperator.NOT_SET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, operator_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getValueToMatch());
}
size += getUnknownFields().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.Criterion)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.Criterion other = (cloud.prefab.domain.Prefab.Criterion) obj;
if (!getPropertyName()
.equals(other.getPropertyName())) return false;
if (operator_ != other.operator_) return false;
if (hasValueToMatch() != other.hasValueToMatch()) return false;
if (hasValueToMatch()) {
if (!getValueToMatch()
.equals(other.getValueToMatch())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPropertyName().hashCode();
hash = (37 * hash) + OPERATOR_FIELD_NUMBER;
hash = (53 * hash) + operator_;
if (hasValueToMatch()) {
hash = (37 * hash) + VALUE_TO_MATCH_FIELD_NUMBER;
hash = (53 * hash) + getValueToMatch().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.Criterion parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Criterion 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.Criterion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Criterion 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.Criterion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Criterion parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.Criterion parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Criterion 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.Criterion parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Criterion 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.Criterion parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Criterion 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.Criterion 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.Criterion}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.Criterion)
cloud.prefab.domain.Prefab.CriterionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Criterion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Criterion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Criterion.class, cloud.prefab.domain.Prefab.Criterion.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.Criterion.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValueToMatchFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
propertyName_ = "";
operator_ = 0;
valueToMatch_ = null;
if (valueToMatchBuilder_ != null) {
valueToMatchBuilder_.dispose();
valueToMatchBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Criterion_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Criterion getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.Criterion.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Criterion build() {
cloud.prefab.domain.Prefab.Criterion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Criterion buildPartial() {
cloud.prefab.domain.Prefab.Criterion result = new cloud.prefab.domain.Prefab.Criterion(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cloud.prefab.domain.Prefab.Criterion result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.propertyName_ = propertyName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.operator_ = operator_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.valueToMatch_ = valueToMatchBuilder_ == null
? valueToMatch_
: valueToMatchBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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.Criterion) {
return mergeFrom((cloud.prefab.domain.Prefab.Criterion)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.Criterion other) {
if (other == cloud.prefab.domain.Prefab.Criterion.getDefaultInstance()) return this;
if (!other.getPropertyName().isEmpty()) {
propertyName_ = other.propertyName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.operator_ != 0) {
setOperatorValue(other.getOperatorValue());
}
if (other.hasValueToMatch()) {
mergeValueToMatch(other.getValueToMatch());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
propertyName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
operator_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getValueToMatchFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object propertyName_ = "";
/**
* string property_name = 1;
* @return The propertyName.
*/
public java.lang.String getPropertyName() {
java.lang.Object ref = propertyName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
propertyName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string property_name = 1;
* @return The bytes for propertyName.
*/
public com.google.protobuf.ByteString
getPropertyNameBytes() {
java.lang.Object ref = propertyName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
propertyName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string property_name = 1;
* @param value The propertyName to set.
* @return This builder for chaining.
*/
public Builder setPropertyName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
propertyName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string property_name = 1;
* @return This builder for chaining.
*/
public Builder clearPropertyName() {
propertyName_ = getDefaultInstance().getPropertyName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string property_name = 1;
* @param value The bytes for propertyName to set.
* @return This builder for chaining.
*/
public Builder setPropertyNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
propertyName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int operator_ = 0;
/**
* .prefab.Criterion.CriterionOperator operator = 2;
* @return The enum numeric value on the wire for operator.
*/
@java.lang.Override public int getOperatorValue() {
return operator_;
}
/**
* .prefab.Criterion.CriterionOperator 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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .prefab.Criterion.CriterionOperator operator = 2;
* @return The operator.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.Criterion.CriterionOperator getOperator() {
cloud.prefab.domain.Prefab.Criterion.CriterionOperator result = cloud.prefab.domain.Prefab.Criterion.CriterionOperator.forNumber(operator_);
return result == null ? cloud.prefab.domain.Prefab.Criterion.CriterionOperator.UNRECOGNIZED : result;
}
/**
* .prefab.Criterion.CriterionOperator operator = 2;
* @param value The operator to set.
* @return This builder for chaining.
*/
public Builder setOperator(cloud.prefab.domain.Prefab.Criterion.CriterionOperator value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
operator_ = value.getNumber();
onChanged();
return this;
}
/**
* .prefab.Criterion.CriterionOperator operator = 2;
* @return This builder for chaining.
*/
public Builder clearOperator() {
bitField0_ = (bitField0_ & ~0x00000002);
operator_ = 0;
onChanged();
return this;
}
private cloud.prefab.domain.Prefab.ConfigValue valueToMatch_;
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder> valueToMatchBuilder_;
/**
* .prefab.ConfigValue value_to_match = 3;
* @return Whether the valueToMatch field is set.
*/
public boolean hasValueToMatch() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .prefab.ConfigValue value_to_match = 3;
* @return The valueToMatch.
*/
public cloud.prefab.domain.Prefab.ConfigValue getValueToMatch() {
if (valueToMatchBuilder_ == null) {
return valueToMatch_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : valueToMatch_;
} else {
return valueToMatchBuilder_.getMessage();
}
}
/**
* .prefab.ConfigValue value_to_match = 3;
*/
public Builder setValueToMatch(cloud.prefab.domain.Prefab.ConfigValue value) {
if (valueToMatchBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
valueToMatch_ = value;
} else {
valueToMatchBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .prefab.ConfigValue value_to_match = 3;
*/
public Builder setValueToMatch(
cloud.prefab.domain.Prefab.ConfigValue.Builder builderForValue) {
if (valueToMatchBuilder_ == null) {
valueToMatch_ = builderForValue.build();
} else {
valueToMatchBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .prefab.ConfigValue value_to_match = 3;
*/
public Builder mergeValueToMatch(cloud.prefab.domain.Prefab.ConfigValue value) {
if (valueToMatchBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
valueToMatch_ != null &&
valueToMatch_ != cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance()) {
getValueToMatchBuilder().mergeFrom(value);
} else {
valueToMatch_ = value;
}
} else {
valueToMatchBuilder_.mergeFrom(value);
}
if (valueToMatch_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .prefab.ConfigValue value_to_match = 3;
*/
public Builder clearValueToMatch() {
bitField0_ = (bitField0_ & ~0x00000004);
valueToMatch_ = null;
if (valueToMatchBuilder_ != null) {
valueToMatchBuilder_.dispose();
valueToMatchBuilder_ = null;
}
onChanged();
return this;
}
/**
* .prefab.ConfigValue value_to_match = 3;
*/
public cloud.prefab.domain.Prefab.ConfigValue.Builder getValueToMatchBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getValueToMatchFieldBuilder().getBuilder();
}
/**
* .prefab.ConfigValue value_to_match = 3;
*/
public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getValueToMatchOrBuilder() {
if (valueToMatchBuilder_ != null) {
return valueToMatchBuilder_.getMessageOrBuilder();
} else {
return valueToMatch_ == null ?
cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : valueToMatch_;
}
}
/**
* .prefab.ConfigValue value_to_match = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder>
getValueToMatchFieldBuilder() {
if (valueToMatchBuilder_ == null) {
valueToMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder>(
getValueToMatch(),
getParentForChildren(),
isClean());
valueToMatch_ = null;
}
return valueToMatchBuilder_;
}
@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.Criterion)
}
// @@protoc_insertion_point(class_scope:prefab.Criterion)
private static final cloud.prefab.domain.Prefab.Criterion DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Criterion();
}
public static cloud.prefab.domain.Prefab.Criterion getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Criterion parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.Criterion getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LoggersOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.Loggers)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .prefab.Logger loggers = 1;
*/
java.util.List
getLoggersList();
/**
* repeated .prefab.Logger loggers = 1;
*/
cloud.prefab.domain.Prefab.Logger getLoggers(int index);
/**
* repeated .prefab.Logger loggers = 1;
*/
int getLoggersCount();
/**
* repeated .prefab.Logger loggers = 1;
*/
java.util.List extends cloud.prefab.domain.Prefab.LoggerOrBuilder>
getLoggersOrBuilderList();
/**
* repeated .prefab.Logger loggers = 1;
*/
cloud.prefab.domain.Prefab.LoggerOrBuilder getLoggersOrBuilder(
int index);
/**
* int64 start_at = 2;
* @return The startAt.
*/
long getStartAt();
/**
* int64 end_at = 3;
* @return The endAt.
*/
long getEndAt();
/**
*
* random UUID generated on startup - represents the server so we can aggregate
*
*
* string instance_hash = 4;
* @return The instanceHash.
*/
java.lang.String getInstanceHash();
/**
*
* random UUID generated on startup - represents the server so we can aggregate
*
*
* string instance_hash = 4;
* @return The bytes for instanceHash.
*/
com.google.protobuf.ByteString
getInstanceHashBytes();
/**
* optional string namespace = 5;
* @return Whether the namespace field is set.
*/
boolean hasNamespace();
/**
* optional string namespace = 5;
* @return The namespace.
*/
java.lang.String getNamespace();
/**
* optional string namespace = 5;
* @return The bytes for namespace.
*/
com.google.protobuf.ByteString
getNamespaceBytes();
}
/**
* Protobuf type {@code prefab.Loggers}
*/
public static final class Loggers extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.Loggers)
LoggersOrBuilder {
private static final long serialVersionUID = 0L;
// Use Loggers.newBuilder() to construct.
private Loggers(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Loggers() {
loggers_ = java.util.Collections.emptyList();
instanceHash_ = "";
namespace_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Loggers();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Loggers_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Loggers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Loggers.class, cloud.prefab.domain.Prefab.Loggers.Builder.class);
}
private int bitField0_;
public static final int LOGGERS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List loggers_;
/**
* repeated .prefab.Logger loggers = 1;
*/
@java.lang.Override
public java.util.List getLoggersList() {
return loggers_;
}
/**
* repeated .prefab.Logger loggers = 1;
*/
@java.lang.Override
public java.util.List extends cloud.prefab.domain.Prefab.LoggerOrBuilder>
getLoggersOrBuilderList() {
return loggers_;
}
/**
* repeated .prefab.Logger loggers = 1;
*/
@java.lang.Override
public int getLoggersCount() {
return loggers_.size();
}
/**
* repeated .prefab.Logger loggers = 1;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.Logger getLoggers(int index) {
return loggers_.get(index);
}
/**
* repeated .prefab.Logger loggers = 1;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.LoggerOrBuilder getLoggersOrBuilder(
int index) {
return loggers_.get(index);
}
public static final int START_AT_FIELD_NUMBER = 2;
private long startAt_ = 0L;
/**
* int64 start_at = 2;
* @return The startAt.
*/
@java.lang.Override
public long getStartAt() {
return startAt_;
}
public static final int END_AT_FIELD_NUMBER = 3;
private long endAt_ = 0L;
/**
* int64 end_at = 3;
* @return The endAt.
*/
@java.lang.Override
public long getEndAt() {
return endAt_;
}
public static final int INSTANCE_HASH_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object instanceHash_ = "";
/**
*
* random UUID generated on startup - represents the server so we can aggregate
*
*
* string instance_hash = 4;
* @return The instanceHash.
*/
@java.lang.Override
public java.lang.String getInstanceHash() {
java.lang.Object ref = instanceHash_;
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();
instanceHash_ = s;
return s;
}
}
/**
*
* random UUID generated on startup - represents the server so we can aggregate
*
*
* string instance_hash = 4;
* @return The bytes for instanceHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceHashBytes() {
java.lang.Object ref = instanceHash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceHash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAMESPACE_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object namespace_ = "";
/**
* optional string namespace = 5;
* @return Whether the namespace field is set.
*/
@java.lang.Override
public boolean hasNamespace() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string namespace = 5;
* @return The namespace.
*/
@java.lang.Override
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
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();
namespace_ = s;
return s;
}
}
/**
* optional string namespace = 5;
* @return The bytes for namespace.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = 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 {
for (int i = 0; i < loggers_.size(); i++) {
output.writeMessage(1, loggers_.get(i));
}
if (startAt_ != 0L) {
output.writeInt64(2, startAt_);
}
if (endAt_ != 0L) {
output.writeInt64(3, endAt_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceHash_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, instanceHash_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, namespace_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < loggers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, loggers_.get(i));
}
if (startAt_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, startAt_);
}
if (endAt_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, endAt_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceHash_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, instanceHash_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, namespace_);
}
size += getUnknownFields().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.Loggers)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.Loggers other = (cloud.prefab.domain.Prefab.Loggers) obj;
if (!getLoggersList()
.equals(other.getLoggersList())) return false;
if (getStartAt()
!= other.getStartAt()) return false;
if (getEndAt()
!= other.getEndAt()) return false;
if (!getInstanceHash()
.equals(other.getInstanceHash())) return false;
if (hasNamespace() != other.hasNamespace()) return false;
if (hasNamespace()) {
if (!getNamespace()
.equals(other.getNamespace())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getLoggersCount() > 0) {
hash = (37 * hash) + LOGGERS_FIELD_NUMBER;
hash = (53 * hash) + getLoggersList().hashCode();
}
hash = (37 * hash) + START_AT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartAt());
hash = (37 * hash) + END_AT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEndAt());
hash = (37 * hash) + INSTANCE_HASH_FIELD_NUMBER;
hash = (53 * hash) + getInstanceHash().hashCode();
if (hasNamespace()) {
hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getNamespace().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.Loggers parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Loggers 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.Loggers parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Loggers 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.Loggers parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Loggers parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.Loggers parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Loggers 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.Loggers parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Loggers 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.Loggers parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Loggers 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.Loggers 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.Loggers}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.Loggers)
cloud.prefab.domain.Prefab.LoggersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Loggers_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Loggers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Loggers.class, cloud.prefab.domain.Prefab.Loggers.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.Loggers.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (loggersBuilder_ == null) {
loggers_ = java.util.Collections.emptyList();
} else {
loggers_ = null;
loggersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
startAt_ = 0L;
endAt_ = 0L;
instanceHash_ = "";
namespace_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Loggers_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Loggers getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.Loggers.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Loggers build() {
cloud.prefab.domain.Prefab.Loggers result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Loggers buildPartial() {
cloud.prefab.domain.Prefab.Loggers result = new cloud.prefab.domain.Prefab.Loggers(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.Loggers result) {
if (loggersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
loggers_ = java.util.Collections.unmodifiableList(loggers_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.loggers_ = loggers_;
} else {
result.loggers_ = loggersBuilder_.build();
}
}
private void buildPartial0(cloud.prefab.domain.Prefab.Loggers result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.startAt_ = startAt_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.endAt_ = endAt_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.instanceHash_ = instanceHash_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.namespace_ = namespace_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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.Loggers) {
return mergeFrom((cloud.prefab.domain.Prefab.Loggers)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.Loggers other) {
if (other == cloud.prefab.domain.Prefab.Loggers.getDefaultInstance()) return this;
if (loggersBuilder_ == null) {
if (!other.loggers_.isEmpty()) {
if (loggers_.isEmpty()) {
loggers_ = other.loggers_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLoggersIsMutable();
loggers_.addAll(other.loggers_);
}
onChanged();
}
} else {
if (!other.loggers_.isEmpty()) {
if (loggersBuilder_.isEmpty()) {
loggersBuilder_.dispose();
loggersBuilder_ = null;
loggers_ = other.loggers_;
bitField0_ = (bitField0_ & ~0x00000001);
loggersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLoggersFieldBuilder() : null;
} else {
loggersBuilder_.addAllMessages(other.loggers_);
}
}
}
if (other.getStartAt() != 0L) {
setStartAt(other.getStartAt());
}
if (other.getEndAt() != 0L) {
setEndAt(other.getEndAt());
}
if (!other.getInstanceHash().isEmpty()) {
instanceHash_ = other.instanceHash_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasNamespace()) {
namespace_ = other.namespace_;
bitField0_ |= 0x00000010;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
cloud.prefab.domain.Prefab.Logger m =
input.readMessage(
cloud.prefab.domain.Prefab.Logger.parser(),
extensionRegistry);
if (loggersBuilder_ == null) {
ensureLoggersIsMutable();
loggers_.add(m);
} else {
loggersBuilder_.addMessage(m);
}
break;
} // case 10
case 16: {
startAt_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
endAt_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
instanceHash_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
namespace_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List loggers_ =
java.util.Collections.emptyList();
private void ensureLoggersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
loggers_ = new java.util.ArrayList(loggers_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.Logger, cloud.prefab.domain.Prefab.Logger.Builder, cloud.prefab.domain.Prefab.LoggerOrBuilder> loggersBuilder_;
/**
* repeated .prefab.Logger loggers = 1;
*/
public java.util.List getLoggersList() {
if (loggersBuilder_ == null) {
return java.util.Collections.unmodifiableList(loggers_);
} else {
return loggersBuilder_.getMessageList();
}
}
/**
* repeated .prefab.Logger loggers = 1;
*/
public int getLoggersCount() {
if (loggersBuilder_ == null) {
return loggers_.size();
} else {
return loggersBuilder_.getCount();
}
}
/**
* repeated .prefab.Logger loggers = 1;
*/
public cloud.prefab.domain.Prefab.Logger getLoggers(int index) {
if (loggersBuilder_ == null) {
return loggers_.get(index);
} else {
return loggersBuilder_.getMessage(index);
}
}
/**
* repeated .prefab.Logger loggers = 1;
*/
public Builder setLoggers(
int index, cloud.prefab.domain.Prefab.Logger value) {
if (loggersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLoggersIsMutable();
loggers_.set(index, value);
onChanged();
} else {
loggersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .prefab.Logger loggers = 1;
*/
public Builder setLoggers(
int index, cloud.prefab.domain.Prefab.Logger.Builder builderForValue) {
if (loggersBuilder_ == null) {
ensureLoggersIsMutable();
loggers_.set(index, builderForValue.build());
onChanged();
} else {
loggersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.Logger loggers = 1;
*/
public Builder addLoggers(cloud.prefab.domain.Prefab.Logger value) {
if (loggersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLoggersIsMutable();
loggers_.add(value);
onChanged();
} else {
loggersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .prefab.Logger loggers = 1;
*/
public Builder addLoggers(
int index, cloud.prefab.domain.Prefab.Logger value) {
if (loggersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLoggersIsMutable();
loggers_.add(index, value);
onChanged();
} else {
loggersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .prefab.Logger loggers = 1;
*/
public Builder addLoggers(
cloud.prefab.domain.Prefab.Logger.Builder builderForValue) {
if (loggersBuilder_ == null) {
ensureLoggersIsMutable();
loggers_.add(builderForValue.build());
onChanged();
} else {
loggersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .prefab.Logger loggers = 1;
*/
public Builder addLoggers(
int index, cloud.prefab.domain.Prefab.Logger.Builder builderForValue) {
if (loggersBuilder_ == null) {
ensureLoggersIsMutable();
loggers_.add(index, builderForValue.build());
onChanged();
} else {
loggersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.Logger loggers = 1;
*/
public Builder addAllLoggers(
java.lang.Iterable extends cloud.prefab.domain.Prefab.Logger> values) {
if (loggersBuilder_ == null) {
ensureLoggersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, loggers_);
onChanged();
} else {
loggersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .prefab.Logger loggers = 1;
*/
public Builder clearLoggers() {
if (loggersBuilder_ == null) {
loggers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
loggersBuilder_.clear();
}
return this;
}
/**
* repeated .prefab.Logger loggers = 1;
*/
public Builder removeLoggers(int index) {
if (loggersBuilder_ == null) {
ensureLoggersIsMutable();
loggers_.remove(index);
onChanged();
} else {
loggersBuilder_.remove(index);
}
return this;
}
/**
* repeated .prefab.Logger loggers = 1;
*/
public cloud.prefab.domain.Prefab.Logger.Builder getLoggersBuilder(
int index) {
return getLoggersFieldBuilder().getBuilder(index);
}
/**
* repeated .prefab.Logger loggers = 1;
*/
public cloud.prefab.domain.Prefab.LoggerOrBuilder getLoggersOrBuilder(
int index) {
if (loggersBuilder_ == null) {
return loggers_.get(index); } else {
return loggersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .prefab.Logger loggers = 1;
*/
public java.util.List extends cloud.prefab.domain.Prefab.LoggerOrBuilder>
getLoggersOrBuilderList() {
if (loggersBuilder_ != null) {
return loggersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(loggers_);
}
}
/**
* repeated .prefab.Logger loggers = 1;
*/
public cloud.prefab.domain.Prefab.Logger.Builder addLoggersBuilder() {
return getLoggersFieldBuilder().addBuilder(
cloud.prefab.domain.Prefab.Logger.getDefaultInstance());
}
/**
* repeated .prefab.Logger loggers = 1;
*/
public cloud.prefab.domain.Prefab.Logger.Builder addLoggersBuilder(
int index) {
return getLoggersFieldBuilder().addBuilder(
index, cloud.prefab.domain.Prefab.Logger.getDefaultInstance());
}
/**
* repeated .prefab.Logger loggers = 1;
*/
public java.util.List
getLoggersBuilderList() {
return getLoggersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.Logger, cloud.prefab.domain.Prefab.Logger.Builder, cloud.prefab.domain.Prefab.LoggerOrBuilder>
getLoggersFieldBuilder() {
if (loggersBuilder_ == null) {
loggersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.Logger, cloud.prefab.domain.Prefab.Logger.Builder, cloud.prefab.domain.Prefab.LoggerOrBuilder>(
loggers_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
loggers_ = null;
}
return loggersBuilder_;
}
private long startAt_ ;
/**
* int64 start_at = 2;
* @return The startAt.
*/
@java.lang.Override
public long getStartAt() {
return startAt_;
}
/**
* int64 start_at = 2;
* @param value The startAt to set.
* @return This builder for chaining.
*/
public Builder setStartAt(long value) {
startAt_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int64 start_at = 2;
* @return This builder for chaining.
*/
public Builder clearStartAt() {
bitField0_ = (bitField0_ & ~0x00000002);
startAt_ = 0L;
onChanged();
return this;
}
private long endAt_ ;
/**
* int64 end_at = 3;
* @return The endAt.
*/
@java.lang.Override
public long getEndAt() {
return endAt_;
}
/**
* int64 end_at = 3;
* @param value The endAt to set.
* @return This builder for chaining.
*/
public Builder setEndAt(long value) {
endAt_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* int64 end_at = 3;
* @return This builder for chaining.
*/
public Builder clearEndAt() {
bitField0_ = (bitField0_ & ~0x00000004);
endAt_ = 0L;
onChanged();
return this;
}
private java.lang.Object instanceHash_ = "";
/**
*
* random UUID generated on startup - represents the server so we can aggregate
*
*
* string instance_hash = 4;
* @return The instanceHash.
*/
public java.lang.String getInstanceHash() {
java.lang.Object ref = instanceHash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceHash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* random UUID generated on startup - represents the server so we can aggregate
*
*
* string instance_hash = 4;
* @return The bytes for instanceHash.
*/
public com.google.protobuf.ByteString
getInstanceHashBytes() {
java.lang.Object ref = instanceHash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceHash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* random UUID generated on startup - represents the server so we can aggregate
*
*
* string instance_hash = 4;
* @param value The instanceHash to set.
* @return This builder for chaining.
*/
public Builder setInstanceHash(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
instanceHash_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* random UUID generated on startup - represents the server so we can aggregate
*
*
* string instance_hash = 4;
* @return This builder for chaining.
*/
public Builder clearInstanceHash() {
instanceHash_ = getDefaultInstance().getInstanceHash();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* random UUID generated on startup - represents the server so we can aggregate
*
*
* string instance_hash = 4;
* @param value The bytes for instanceHash to set.
* @return This builder for chaining.
*/
public Builder setInstanceHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
instanceHash_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object namespace_ = "";
/**
* optional string namespace = 5;
* @return Whether the namespace field is set.
*/
public boolean hasNamespace() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string namespace = 5;
* @return The namespace.
*/
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
namespace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string namespace = 5;
* @return The bytes for namespace.
*/
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string namespace = 5;
* @param value The namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespace(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
namespace_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional string namespace = 5;
* @return This builder for chaining.
*/
public Builder clearNamespace() {
namespace_ = getDefaultInstance().getNamespace();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* optional string namespace = 5;
* @param value The bytes for namespace to set.
* @return This builder for chaining.
*/
public Builder setNamespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
namespace_ = value;
bitField0_ |= 0x00000010;
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.Loggers)
}
// @@protoc_insertion_point(class_scope:prefab.Loggers)
private static final cloud.prefab.domain.Prefab.Loggers DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Loggers();
}
public static cloud.prefab.domain.Prefab.Loggers getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Loggers parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.Loggers getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LoggerOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.Logger)
com.google.protobuf.MessageOrBuilder {
/**
* string logger_name = 1;
* @return The loggerName.
*/
java.lang.String getLoggerName();
/**
* string logger_name = 1;
* @return The bytes for loggerName.
*/
com.google.protobuf.ByteString
getLoggerNameBytes();
/**
* optional int64 traces = 2;
* @return Whether the traces field is set.
*/
boolean hasTraces();
/**
* optional int64 traces = 2;
* @return The traces.
*/
long getTraces();
/**
* optional int64 debugs = 3;
* @return Whether the debugs field is set.
*/
boolean hasDebugs();
/**
* optional int64 debugs = 3;
* @return The debugs.
*/
long getDebugs();
/**
* optional int64 infos = 4;
* @return Whether the infos field is set.
*/
boolean hasInfos();
/**
* optional int64 infos = 4;
* @return The infos.
*/
long getInfos();
/**
* optional int64 warns = 5;
* @return Whether the warns field is set.
*/
boolean hasWarns();
/**
* optional int64 warns = 5;
* @return The warns.
*/
long getWarns();
/**
* optional int64 errors = 6;
* @return Whether the errors field is set.
*/
boolean hasErrors();
/**
* optional int64 errors = 6;
* @return The errors.
*/
long getErrors();
/**
* optional int64 fatals = 7;
* @return Whether the fatals field is set.
*/
boolean hasFatals();
/**
* optional int64 fatals = 7;
* @return The fatals.
*/
long getFatals();
}
/**
* Protobuf type {@code prefab.Logger}
*/
public static final class Logger extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.Logger)
LoggerOrBuilder {
private static final long serialVersionUID = 0L;
// Use Logger.newBuilder() to construct.
private Logger(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Logger() {
loggerName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Logger();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Logger_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Logger_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Logger.class, cloud.prefab.domain.Prefab.Logger.Builder.class);
}
private int bitField0_;
public static final int LOGGER_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object loggerName_ = "";
/**
* string logger_name = 1;
* @return The loggerName.
*/
@java.lang.Override
public java.lang.String getLoggerName() {
java.lang.Object ref = loggerName_;
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();
loggerName_ = s;
return s;
}
}
/**
* string logger_name = 1;
* @return The bytes for loggerName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLoggerNameBytes() {
java.lang.Object ref = loggerName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
loggerName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRACES_FIELD_NUMBER = 2;
private long traces_ = 0L;
/**
* optional int64 traces = 2;
* @return Whether the traces field is set.
*/
@java.lang.Override
public boolean hasTraces() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 traces = 2;
* @return The traces.
*/
@java.lang.Override
public long getTraces() {
return traces_;
}
public static final int DEBUGS_FIELD_NUMBER = 3;
private long debugs_ = 0L;
/**
* optional int64 debugs = 3;
* @return Whether the debugs field is set.
*/
@java.lang.Override
public boolean hasDebugs() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 debugs = 3;
* @return The debugs.
*/
@java.lang.Override
public long getDebugs() {
return debugs_;
}
public static final int INFOS_FIELD_NUMBER = 4;
private long infos_ = 0L;
/**
* optional int64 infos = 4;
* @return Whether the infos field is set.
*/
@java.lang.Override
public boolean hasInfos() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 infos = 4;
* @return The infos.
*/
@java.lang.Override
public long getInfos() {
return infos_;
}
public static final int WARNS_FIELD_NUMBER = 5;
private long warns_ = 0L;
/**
* optional int64 warns = 5;
* @return Whether the warns field is set.
*/
@java.lang.Override
public boolean hasWarns() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int64 warns = 5;
* @return The warns.
*/
@java.lang.Override
public long getWarns() {
return warns_;
}
public static final int ERRORS_FIELD_NUMBER = 6;
private long errors_ = 0L;
/**
* optional int64 errors = 6;
* @return Whether the errors field is set.
*/
@java.lang.Override
public boolean hasErrors() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int64 errors = 6;
* @return The errors.
*/
@java.lang.Override
public long getErrors() {
return errors_;
}
public static final int FATALS_FIELD_NUMBER = 7;
private long fatals_ = 0L;
/**
* optional int64 fatals = 7;
* @return Whether the fatals field is set.
*/
@java.lang.Override
public boolean hasFatals() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int64 fatals = 7;
* @return The fatals.
*/
@java.lang.Override
public long getFatals() {
return fatals_;
}
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(loggerName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, loggerName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(2, traces_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(3, debugs_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(4, infos_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(5, warns_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(6, errors_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(7, fatals_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggerName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, loggerName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, traces_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, debugs_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, infos_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, warns_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, errors_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, fatals_);
}
size += getUnknownFields().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.Logger)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.Logger other = (cloud.prefab.domain.Prefab.Logger) obj;
if (!getLoggerName()
.equals(other.getLoggerName())) return false;
if (hasTraces() != other.hasTraces()) return false;
if (hasTraces()) {
if (getTraces()
!= other.getTraces()) return false;
}
if (hasDebugs() != other.hasDebugs()) return false;
if (hasDebugs()) {
if (getDebugs()
!= other.getDebugs()) return false;
}
if (hasInfos() != other.hasInfos()) return false;
if (hasInfos()) {
if (getInfos()
!= other.getInfos()) return false;
}
if (hasWarns() != other.hasWarns()) return false;
if (hasWarns()) {
if (getWarns()
!= other.getWarns()) return false;
}
if (hasErrors() != other.hasErrors()) return false;
if (hasErrors()) {
if (getErrors()
!= other.getErrors()) return false;
}
if (hasFatals() != other.hasFatals()) return false;
if (hasFatals()) {
if (getFatals()
!= other.getFatals()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + LOGGER_NAME_FIELD_NUMBER;
hash = (53 * hash) + getLoggerName().hashCode();
if (hasTraces()) {
hash = (37 * hash) + TRACES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTraces());
}
if (hasDebugs()) {
hash = (37 * hash) + DEBUGS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDebugs());
}
if (hasInfos()) {
hash = (37 * hash) + INFOS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInfos());
}
if (hasWarns()) {
hash = (37 * hash) + WARNS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getWarns());
}
if (hasErrors()) {
hash = (37 * hash) + ERRORS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getErrors());
}
if (hasFatals()) {
hash = (37 * hash) + FATALS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFatals());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.Logger parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Logger 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.Logger parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Logger 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.Logger parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Logger parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.Logger parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Logger 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.Logger parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Logger 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.Logger parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Logger 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.Logger 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.Logger}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.Logger)
cloud.prefab.domain.Prefab.LoggerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Logger_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Logger_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Logger.class, cloud.prefab.domain.Prefab.Logger.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.Logger.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
loggerName_ = "";
traces_ = 0L;
debugs_ = 0L;
infos_ = 0L;
warns_ = 0L;
errors_ = 0L;
fatals_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Logger_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Logger getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.Logger.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Logger build() {
cloud.prefab.domain.Prefab.Logger result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Logger buildPartial() {
cloud.prefab.domain.Prefab.Logger result = new cloud.prefab.domain.Prefab.Logger(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cloud.prefab.domain.Prefab.Logger result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.loggerName_ = loggerName_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.traces_ = traces_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.debugs_ = debugs_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.infos_ = infos_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.warns_ = warns_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.errors_ = errors_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.fatals_ = fatals_;
to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
@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.Logger) {
return mergeFrom((cloud.prefab.domain.Prefab.Logger)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.Logger other) {
if (other == cloud.prefab.domain.Prefab.Logger.getDefaultInstance()) return this;
if (!other.getLoggerName().isEmpty()) {
loggerName_ = other.loggerName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasTraces()) {
setTraces(other.getTraces());
}
if (other.hasDebugs()) {
setDebugs(other.getDebugs());
}
if (other.hasInfos()) {
setInfos(other.getInfos());
}
if (other.hasWarns()) {
setWarns(other.getWarns());
}
if (other.hasErrors()) {
setErrors(other.getErrors());
}
if (other.hasFatals()) {
setFatals(other.getFatals());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
loggerName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
traces_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
debugs_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
infos_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
warns_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
errors_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
case 56: {
fatals_ = input.readInt64();
bitField0_ |= 0x00000040;
break;
} // case 56
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object loggerName_ = "";
/**
* string logger_name = 1;
* @return The loggerName.
*/
public java.lang.String getLoggerName() {
java.lang.Object ref = loggerName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
loggerName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string logger_name = 1;
* @return The bytes for loggerName.
*/
public com.google.protobuf.ByteString
getLoggerNameBytes() {
java.lang.Object ref = loggerName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
loggerName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string logger_name = 1;
* @param value The loggerName to set.
* @return This builder for chaining.
*/
public Builder setLoggerName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
loggerName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string logger_name = 1;
* @return This builder for chaining.
*/
public Builder clearLoggerName() {
loggerName_ = getDefaultInstance().getLoggerName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string logger_name = 1;
* @param value The bytes for loggerName to set.
* @return This builder for chaining.
*/
public Builder setLoggerNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
loggerName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long traces_ ;
/**
* optional int64 traces = 2;
* @return Whether the traces field is set.
*/
@java.lang.Override
public boolean hasTraces() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 traces = 2;
* @return The traces.
*/
@java.lang.Override
public long getTraces() {
return traces_;
}
/**
* optional int64 traces = 2;
* @param value The traces to set.
* @return This builder for chaining.
*/
public Builder setTraces(long value) {
traces_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional int64 traces = 2;
* @return This builder for chaining.
*/
public Builder clearTraces() {
bitField0_ = (bitField0_ & ~0x00000002);
traces_ = 0L;
onChanged();
return this;
}
private long debugs_ ;
/**
* optional int64 debugs = 3;
* @return Whether the debugs field is set.
*/
@java.lang.Override
public boolean hasDebugs() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 debugs = 3;
* @return The debugs.
*/
@java.lang.Override
public long getDebugs() {
return debugs_;
}
/**
* optional int64 debugs = 3;
* @param value The debugs to set.
* @return This builder for chaining.
*/
public Builder setDebugs(long value) {
debugs_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional int64 debugs = 3;
* @return This builder for chaining.
*/
public Builder clearDebugs() {
bitField0_ = (bitField0_ & ~0x00000004);
debugs_ = 0L;
onChanged();
return this;
}
private long infos_ ;
/**
* optional int64 infos = 4;
* @return Whether the infos field is set.
*/
@java.lang.Override
public boolean hasInfos() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int64 infos = 4;
* @return The infos.
*/
@java.lang.Override
public long getInfos() {
return infos_;
}
/**
* optional int64 infos = 4;
* @param value The infos to set.
* @return This builder for chaining.
*/
public Builder setInfos(long value) {
infos_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional int64 infos = 4;
* @return This builder for chaining.
*/
public Builder clearInfos() {
bitField0_ = (bitField0_ & ~0x00000008);
infos_ = 0L;
onChanged();
return this;
}
private long warns_ ;
/**
* optional int64 warns = 5;
* @return Whether the warns field is set.
*/
@java.lang.Override
public boolean hasWarns() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int64 warns = 5;
* @return The warns.
*/
@java.lang.Override
public long getWarns() {
return warns_;
}
/**
* optional int64 warns = 5;
* @param value The warns to set.
* @return This builder for chaining.
*/
public Builder setWarns(long value) {
warns_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional int64 warns = 5;
* @return This builder for chaining.
*/
public Builder clearWarns() {
bitField0_ = (bitField0_ & ~0x00000010);
warns_ = 0L;
onChanged();
return this;
}
private long errors_ ;
/**
* optional int64 errors = 6;
* @return Whether the errors field is set.
*/
@java.lang.Override
public boolean hasErrors() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int64 errors = 6;
* @return The errors.
*/
@java.lang.Override
public long getErrors() {
return errors_;
}
/**
* optional int64 errors = 6;
* @param value The errors to set.
* @return This builder for chaining.
*/
public Builder setErrors(long value) {
errors_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* optional int64 errors = 6;
* @return This builder for chaining.
*/
public Builder clearErrors() {
bitField0_ = (bitField0_ & ~0x00000020);
errors_ = 0L;
onChanged();
return this;
}
private long fatals_ ;
/**
* optional int64 fatals = 7;
* @return Whether the fatals field is set.
*/
@java.lang.Override
public boolean hasFatals() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional int64 fatals = 7;
* @return The fatals.
*/
@java.lang.Override
public long getFatals() {
return fatals_;
}
/**
* optional int64 fatals = 7;
* @param value The fatals to set.
* @return This builder for chaining.
*/
public Builder setFatals(long value) {
fatals_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* optional int64 fatals = 7;
* @return This builder for chaining.
*/
public Builder clearFatals() {
bitField0_ = (bitField0_ & ~0x00000040);
fatals_ = 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.Logger)
}
// @@protoc_insertion_point(class_scope:prefab.Logger)
private static final cloud.prefab.domain.Prefab.Logger DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Logger();
}
public static cloud.prefab.domain.Prefab.Logger getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Logger parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.Logger getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LoggerReportResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.LoggerReportResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code prefab.LoggerReportResponse}
*/
public static final class LoggerReportResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.LoggerReportResponse)
LoggerReportResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use LoggerReportResponse.newBuilder() to construct.
private LoggerReportResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LoggerReportResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LoggerReportResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LoggerReportResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LoggerReportResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.LoggerReportResponse.class, cloud.prefab.domain.Prefab.LoggerReportResponse.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().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.LoggerReportResponse)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.LoggerReportResponse other = (cloud.prefab.domain.Prefab.LoggerReportResponse) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.LoggerReportResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.LoggerReportResponse 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.LoggerReportResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.LoggerReportResponse 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.LoggerReportResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.LoggerReportResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.LoggerReportResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.LoggerReportResponse 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.LoggerReportResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.LoggerReportResponse 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.LoggerReportResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.LoggerReportResponse 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.LoggerReportResponse 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.LoggerReportResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.LoggerReportResponse)
cloud.prefab.domain.Prefab.LoggerReportResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LoggerReportResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LoggerReportResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.LoggerReportResponse.class, cloud.prefab.domain.Prefab.LoggerReportResponse.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.LoggerReportResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LoggerReportResponse_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.LoggerReportResponse getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.LoggerReportResponse.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.LoggerReportResponse build() {
cloud.prefab.domain.Prefab.LoggerReportResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.LoggerReportResponse buildPartial() {
cloud.prefab.domain.Prefab.LoggerReportResponse result = new cloud.prefab.domain.Prefab.LoggerReportResponse(this);
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.LoggerReportResponse) {
return mergeFrom((cloud.prefab.domain.Prefab.LoggerReportResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.LoggerReportResponse other) {
if (other == cloud.prefab.domain.Prefab.LoggerReportResponse.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
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.LoggerReportResponse)
}
// @@protoc_insertion_point(class_scope:prefab.LoggerReportResponse)
private static final cloud.prefab.domain.Prefab.LoggerReportResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.LoggerReportResponse();
}
public static cloud.prefab.domain.Prefab.LoggerReportResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LoggerReportResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.LoggerReportResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LimitResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.LimitResponse)
com.google.protobuf.MessageOrBuilder {
/**
* bool passed = 1;
* @return The passed.
*/
boolean getPassed();
/**
*
* for returnable: rtn this value
*
*
* int64 expires_at = 2;
* @return The expiresAt.
*/
long getExpiresAt();
/**
*
* events:pageview:homepage:123123
*
*
* string enforced_group = 3;
* @return The enforcedGroup.
*/
java.lang.String getEnforcedGroup();
/**
*
* events:pageview:homepage:123123
*
*
* string enforced_group = 3;
* @return The bytes for enforcedGroup.
*/
com.google.protobuf.ByteString
getEnforcedGroupBytes();
/**
* int64 current_bucket = 4;
* @return The currentBucket.
*/
long getCurrentBucket();
/**
*
* events:pageview
*
*
* string policy_group = 5;
* @return The policyGroup.
*/
java.lang.String getPolicyGroup();
/**
*
* events:pageview
*
*
* string policy_group = 5;
* @return The bytes for policyGroup.
*/
com.google.protobuf.ByteString
getPolicyGroupBytes();
/**
* .prefab.LimitResponse.LimitPolicyNames policy_name = 6;
* @return The enum numeric value on the wire for policyName.
*/
int getPolicyNameValue();
/**
* .prefab.LimitResponse.LimitPolicyNames policy_name = 6;
* @return The policyName.
*/
cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames getPolicyName();
/**
* int32 policy_limit = 7;
* @return The policyLimit.
*/
int getPolicyLimit();
/**
* int64 amount = 8;
* @return The amount.
*/
long getAmount();
/**
* int64 limit_reset_at = 9;
* @return The limitResetAt.
*/
long getLimitResetAt();
/**
* .prefab.LimitDefinition.SafetyLevel safety_level = 10;
* @return The enum numeric value on the wire for safetyLevel.
*/
int getSafetyLevelValue();
/**
* .prefab.LimitDefinition.SafetyLevel safety_level = 10;
* @return The safetyLevel.
*/
cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel();
}
/**
* Protobuf type {@code prefab.LimitResponse}
*/
public static final class LimitResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.LimitResponse)
LimitResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use LimitResponse.newBuilder() to construct.
private LimitResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LimitResponse() {
enforcedGroup_ = "";
policyGroup_ = "";
policyName_ = 0;
safetyLevel_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LimitResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LimitResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LimitResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.LimitResponse.class, cloud.prefab.domain.Prefab.LimitResponse.Builder.class);
}
/**
* Protobuf enum {@code prefab.LimitResponse.LimitPolicyNames}
*/
public enum LimitPolicyNames
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NOT_SET = 0;
*/
NOT_SET(0),
/**
* SECONDLY_ROLLING = 1;
*/
SECONDLY_ROLLING(1),
/**
* MINUTELY_ROLLING = 3;
*/
MINUTELY_ROLLING(3),
/**
* HOURLY_ROLLING = 5;
*/
HOURLY_ROLLING(5),
/**
* DAILY_ROLLING = 7;
*/
DAILY_ROLLING(7),
/**
* MONTHLY_ROLLING = 8;
*/
MONTHLY_ROLLING(8),
/**
* INFINITE = 9;
*/
INFINITE(9),
/**
* YEARLY_ROLLING = 10;
*/
YEARLY_ROLLING(10),
UNRECOGNIZED(-1),
;
/**
* NOT_SET = 0;
*/
public static final int NOT_SET_VALUE = 0;
/**
* SECONDLY_ROLLING = 1;
*/
public static final int SECONDLY_ROLLING_VALUE = 1;
/**
* MINUTELY_ROLLING = 3;
*/
public static final int MINUTELY_ROLLING_VALUE = 3;
/**
* HOURLY_ROLLING = 5;
*/
public static final int HOURLY_ROLLING_VALUE = 5;
/**
* DAILY_ROLLING = 7;
*/
public static final int DAILY_ROLLING_VALUE = 7;
/**
* MONTHLY_ROLLING = 8;
*/
public static final int MONTHLY_ROLLING_VALUE = 8;
/**
* INFINITE = 9;
*/
public static final int INFINITE_VALUE = 9;
/**
* YEARLY_ROLLING = 10;
*/
public static final int YEARLY_ROLLING_VALUE = 10;
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 LimitPolicyNames 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 LimitPolicyNames forNumber(int value) {
switch (value) {
case 0: return NOT_SET;
case 1: return SECONDLY_ROLLING;
case 3: return MINUTELY_ROLLING;
case 5: return HOURLY_ROLLING;
case 7: return DAILY_ROLLING;
case 8: return MONTHLY_ROLLING;
case 9: return INFINITE;
case 10: return YEARLY_ROLLING;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
LimitPolicyNames> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public LimitPolicyNames findValueByNumber(int number) {
return LimitPolicyNames.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.LimitResponse.getDescriptor().getEnumTypes().get(0);
}
private static final LimitPolicyNames[] VALUES = values();
public static LimitPolicyNames 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 LimitPolicyNames(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:prefab.LimitResponse.LimitPolicyNames)
}
public static final int PASSED_FIELD_NUMBER = 1;
private boolean passed_ = false;
/**
* bool passed = 1;
* @return The passed.
*/
@java.lang.Override
public boolean getPassed() {
return passed_;
}
public static final int EXPIRES_AT_FIELD_NUMBER = 2;
private long expiresAt_ = 0L;
/**
*
* for returnable: rtn this value
*
*
* int64 expires_at = 2;
* @return The expiresAt.
*/
@java.lang.Override
public long getExpiresAt() {
return expiresAt_;
}
public static final int ENFORCED_GROUP_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object enforcedGroup_ = "";
/**
*
* events:pageview:homepage:123123
*
*
* string enforced_group = 3;
* @return The enforcedGroup.
*/
@java.lang.Override
public java.lang.String getEnforcedGroup() {
java.lang.Object ref = enforcedGroup_;
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();
enforcedGroup_ = s;
return s;
}
}
/**
*
* events:pageview:homepage:123123
*
*
* string enforced_group = 3;
* @return The bytes for enforcedGroup.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEnforcedGroupBytes() {
java.lang.Object ref = enforcedGroup_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
enforcedGroup_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CURRENT_BUCKET_FIELD_NUMBER = 4;
private long currentBucket_ = 0L;
/**
* int64 current_bucket = 4;
* @return The currentBucket.
*/
@java.lang.Override
public long getCurrentBucket() {
return currentBucket_;
}
public static final int POLICY_GROUP_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object policyGroup_ = "";
/**
*
* events:pageview
*
*
* string policy_group = 5;
* @return The policyGroup.
*/
@java.lang.Override
public java.lang.String getPolicyGroup() {
java.lang.Object ref = policyGroup_;
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();
policyGroup_ = s;
return s;
}
}
/**
*
* events:pageview
*
*
* string policy_group = 5;
* @return The bytes for policyGroup.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPolicyGroupBytes() {
java.lang.Object ref = policyGroup_;
if (ref instanceof java.lang.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;
}
}
public static final int POLICY_NAME_FIELD_NUMBER = 6;
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;
* @return The policyName.
*/
@java.lang.Override public cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames getPolicyName() {
cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames result = cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.forNumber(policyName_);
return result == null ? cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.UNRECOGNIZED : result;
}
public static final int POLICY_LIMIT_FIELD_NUMBER = 7;
private int policyLimit_ = 0;
/**
* int32 policy_limit = 7;
* @return The policyLimit.
*/
@java.lang.Override
public int getPolicyLimit() {
return policyLimit_;
}
public static final int AMOUNT_FIELD_NUMBER = 8;
private long amount_ = 0L;
/**
* int64 amount = 8;
* @return The amount.
*/
@java.lang.Override
public long getAmount() {
return amount_;
}
public static final int LIMIT_RESET_AT_FIELD_NUMBER = 9;
private long limitResetAt_ = 0L;
/**
* int64 limit_reset_at = 9;
* @return The limitResetAt.
*/
@java.lang.Override
public long getLimitResetAt() {
return limitResetAt_;
}
public static final int SAFETY_LEVEL_FIELD_NUMBER = 10;
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;
* @return The safetyLevel.
*/
@java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel() {
cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.forNumber(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 (passed_ != false) {
output.writeBool(1, passed_);
}
if (expiresAt_ != 0L) {
output.writeInt64(2, expiresAt_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(enforcedGroup_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, enforcedGroup_);
}
if (currentBucket_ != 0L) {
output.writeInt64(4, currentBucket_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyGroup_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, policyGroup_);
}
if (policyName_ != cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.NOT_SET.getNumber()) {
output.writeEnum(6, policyName_);
}
if (policyLimit_ != 0) {
output.writeInt32(7, policyLimit_);
}
if (amount_ != 0L) {
output.writeInt64(8, amount_);
}
if (limitResetAt_ != 0L) {
output.writeInt64(9, limitResetAt_);
}
if (safetyLevel_ != cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.NOT_SET.getNumber()) {
output.writeEnum(10, safetyLevel_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (passed_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, passed_);
}
if (expiresAt_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, expiresAt_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(enforcedGroup_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, enforcedGroup_);
}
if (currentBucket_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, currentBucket_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyGroup_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, policyGroup_);
}
if (policyName_ != cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.NOT_SET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, policyName_);
}
if (policyLimit_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, policyLimit_);
}
if (amount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, amount_);
}
if (limitResetAt_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, limitResetAt_);
}
if (safetyLevel_ != cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.NOT_SET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(10, safetyLevel_);
}
size += getUnknownFields().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.LimitResponse)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.LimitResponse other = (cloud.prefab.domain.Prefab.LimitResponse) obj;
if (getPassed()
!= other.getPassed()) return false;
if (getExpiresAt()
!= other.getExpiresAt()) return false;
if (!getEnforcedGroup()
.equals(other.getEnforcedGroup())) return false;
if (getCurrentBucket()
!= other.getCurrentBucket()) return false;
if (!getPolicyGroup()
.equals(other.getPolicyGroup())) return false;
if (policyName_ != other.policyName_) return false;
if (getPolicyLimit()
!= other.getPolicyLimit()) return false;
if (getAmount()
!= other.getAmount()) return false;
if (getLimitResetAt()
!= other.getLimitResetAt()) return false;
if (safetyLevel_ != other.safetyLevel_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PASSED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPassed());
hash = (37 * hash) + EXPIRES_AT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExpiresAt());
hash = (37 * hash) + ENFORCED_GROUP_FIELD_NUMBER;
hash = (53 * hash) + getEnforcedGroup().hashCode();
hash = (37 * hash) + CURRENT_BUCKET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCurrentBucket());
hash = (37 * hash) + POLICY_GROUP_FIELD_NUMBER;
hash = (53 * hash) + getPolicyGroup().hashCode();
hash = (37 * hash) + POLICY_NAME_FIELD_NUMBER;
hash = (53 * hash) + policyName_;
hash = (37 * hash) + POLICY_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getPolicyLimit();
hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAmount());
hash = (37 * hash) + LIMIT_RESET_AT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLimitResetAt());
hash = (37 * hash) + SAFETY_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + safetyLevel_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.LimitResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.LimitResponse 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.LimitResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.LimitResponse 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.LimitResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.LimitResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.LimitResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.LimitResponse 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.LimitResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.LimitResponse 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.LimitResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.LimitResponse 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.LimitResponse 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.LimitResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.LimitResponse)
cloud.prefab.domain.Prefab.LimitResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LimitResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LimitResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.LimitResponse.class, cloud.prefab.domain.Prefab.LimitResponse.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.LimitResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
passed_ = false;
expiresAt_ = 0L;
enforcedGroup_ = "";
currentBucket_ = 0L;
policyGroup_ = "";
policyName_ = 0;
policyLimit_ = 0;
amount_ = 0L;
limitResetAt_ = 0L;
safetyLevel_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_LimitResponse_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitResponse getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.LimitResponse.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitResponse build() {
cloud.prefab.domain.Prefab.LimitResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitResponse buildPartial() {
cloud.prefab.domain.Prefab.LimitResponse result = new cloud.prefab.domain.Prefab.LimitResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cloud.prefab.domain.Prefab.LimitResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.passed_ = passed_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.expiresAt_ = expiresAt_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.enforcedGroup_ = enforcedGroup_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.currentBucket_ = currentBucket_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.policyGroup_ = policyGroup_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.policyName_ = policyName_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.policyLimit_ = policyLimit_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.amount_ = amount_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.limitResetAt_ = limitResetAt_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.safetyLevel_ = safetyLevel_;
}
}
@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.LimitResponse) {
return mergeFrom((cloud.prefab.domain.Prefab.LimitResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.LimitResponse other) {
if (other == cloud.prefab.domain.Prefab.LimitResponse.getDefaultInstance()) return this;
if (other.getPassed() != false) {
setPassed(other.getPassed());
}
if (other.getExpiresAt() != 0L) {
setExpiresAt(other.getExpiresAt());
}
if (!other.getEnforcedGroup().isEmpty()) {
enforcedGroup_ = other.enforcedGroup_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.getCurrentBucket() != 0L) {
setCurrentBucket(other.getCurrentBucket());
}
if (!other.getPolicyGroup().isEmpty()) {
policyGroup_ = other.policyGroup_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.policyName_ != 0) {
setPolicyNameValue(other.getPolicyNameValue());
}
if (other.getPolicyLimit() != 0) {
setPolicyLimit(other.getPolicyLimit());
}
if (other.getAmount() != 0L) {
setAmount(other.getAmount());
}
if (other.getLimitResetAt() != 0L) {
setLimitResetAt(other.getLimitResetAt());
}
if (other.safetyLevel_ != 0) {
setSafetyLevelValue(other.getSafetyLevelValue());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
passed_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
expiresAt_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
enforcedGroup_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
currentBucket_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
policyGroup_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
policyName_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 48
case 56: {
policyLimit_ = input.readInt32();
bitField0_ |= 0x00000040;
break;
} // case 56
case 64: {
amount_ = input.readInt64();
bitField0_ |= 0x00000080;
break;
} // case 64
case 72: {
limitResetAt_ = input.readInt64();
bitField0_ |= 0x00000100;
break;
} // case 72
case 80: {
safetyLevel_ = input.readEnum();
bitField0_ |= 0x00000200;
break;
} // case 80
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private boolean passed_ ;
/**
* bool passed = 1;
* @return The passed.
*/
@java.lang.Override
public boolean getPassed() {
return passed_;
}
/**
* bool passed = 1;
* @param value The passed to set.
* @return This builder for chaining.
*/
public Builder setPassed(boolean value) {
passed_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bool passed = 1;
* @return This builder for chaining.
*/
public Builder clearPassed() {
bitField0_ = (bitField0_ & ~0x00000001);
passed_ = false;
onChanged();
return this;
}
private long expiresAt_ ;
/**
*
* for returnable: rtn this value
*
*
* int64 expires_at = 2;
* @return The expiresAt.
*/
@java.lang.Override
public long getExpiresAt() {
return expiresAt_;
}
/**
*
* for returnable: rtn this value
*
*
* int64 expires_at = 2;
* @param value The expiresAt to set.
* @return This builder for chaining.
*/
public Builder setExpiresAt(long value) {
expiresAt_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* for returnable: rtn this value
*
*
* int64 expires_at = 2;
* @return This builder for chaining.
*/
public Builder clearExpiresAt() {
bitField0_ = (bitField0_ & ~0x00000002);
expiresAt_ = 0L;
onChanged();
return this;
}
private java.lang.Object enforcedGroup_ = "";
/**
*
* events:pageview:homepage:123123
*
*
* string enforced_group = 3;
* @return The enforcedGroup.
*/
public java.lang.String getEnforcedGroup() {
java.lang.Object ref = enforcedGroup_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
enforcedGroup_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* events:pageview:homepage:123123
*
*
* string enforced_group = 3;
* @return The bytes for enforcedGroup.
*/
public com.google.protobuf.ByteString
getEnforcedGroupBytes() {
java.lang.Object ref = enforcedGroup_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
enforcedGroup_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* events:pageview:homepage:123123
*
*
* string enforced_group = 3;
* @param value The enforcedGroup to set.
* @return This builder for chaining.
*/
public Builder setEnforcedGroup(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
enforcedGroup_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* events:pageview:homepage:123123
*
*
* string enforced_group = 3;
* @return This builder for chaining.
*/
public Builder clearEnforcedGroup() {
enforcedGroup_ = getDefaultInstance().getEnforcedGroup();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* events:pageview:homepage:123123
*
*
* string enforced_group = 3;
* @param value The bytes for enforcedGroup to set.
* @return This builder for chaining.
*/
public Builder setEnforcedGroupBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
enforcedGroup_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private long currentBucket_ ;
/**
* int64 current_bucket = 4;
* @return The currentBucket.
*/
@java.lang.Override
public long getCurrentBucket() {
return currentBucket_;
}
/**
* int64 current_bucket = 4;
* @param value The currentBucket to set.
* @return This builder for chaining.
*/
public Builder setCurrentBucket(long value) {
currentBucket_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* int64 current_bucket = 4;
* @return This builder for chaining.
*/
public Builder clearCurrentBucket() {
bitField0_ = (bitField0_ & ~0x00000008);
currentBucket_ = 0L;
onChanged();
return this;
}
private java.lang.Object policyGroup_ = "";
/**
*
* events:pageview
*
*
* string policy_group = 5;
* @return The policyGroup.
*/
public java.lang.String getPolicyGroup() {
java.lang.Object ref = policyGroup_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
policyGroup_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* events:pageview
*
*
* 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;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* events:pageview
*
*
* string policy_group = 5;
* @return This builder for chaining.
*/
public Builder clearPolicyGroup() {
policyGroup_ = getDefaultInstance().getPolicyGroup();
bitField0_ = (bitField0_ & ~0x00000010);
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;
bitField0_ |= 0x00000010;
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;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .prefab.LimitResponse.LimitPolicyNames policy_name = 6;
* @return The policyName.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames getPolicyName() {
cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames result = cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.forNumber(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();
}
bitField0_ |= 0x00000020;
policyName_ = value.getNumber();
onChanged();
return this;
}
/**
* .prefab.LimitResponse.LimitPolicyNames policy_name = 6;
* @return This builder for chaining.
*/
public Builder clearPolicyName() {
bitField0_ = (bitField0_ & ~0x00000020);
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;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* int32 policy_limit = 7;
* @return This builder for chaining.
*/
public Builder clearPolicyLimit() {
bitField0_ = (bitField0_ & ~0x00000040);
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;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* int64 amount = 8;
* @return This builder for chaining.
*/
public Builder clearAmount() {
bitField0_ = (bitField0_ & ~0x00000080);
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;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* int64 limit_reset_at = 9;
* @return This builder for chaining.
*/
public Builder clearLimitResetAt() {
bitField0_ = (bitField0_ & ~0x00000100);
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;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* .prefab.LimitDefinition.SafetyLevel safety_level = 10;
* @return The safetyLevel.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel() {
cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.forNumber(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();
}
bitField0_ |= 0x00000200;
safetyLevel_ = value.getNumber();
onChanged();
return this;
}
/**
* .prefab.LimitDefinition.SafetyLevel safety_level = 10;
* @return This builder for chaining.
*/
public Builder clearSafetyLevel() {
bitField0_ = (bitField0_ & ~0x00000200);
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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.emptyList();
limitCombiner_ = 0;
safetyLevel_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LimitRequest();
}
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_ = 0L;
/**
* 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_ = 0;
/**
* int32 acquire_amount = 2;
* @return The acquireAmount.
*/
@java.lang.Override
public int getAcquireAmount() {
return acquireAmount_;
}
public static final int GROUPS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList groups_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* 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_ = 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;
* @return The limitCombiner.
*/
@java.lang.Override public cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner getLimitCombiner() {
cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner result = cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.forNumber(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_ = false;
/**
* 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_ = 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;
* @return The safetyLevel.
*/
@java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel() {
cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.forNumber(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_);
}
getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
accountId_ = 0L;
acquireAmount_ = 0;
groups_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cloud.prefab.domain.Prefab.LimitRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.accountId_ = accountId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.acquireAmount_ = acquireAmount_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
groups_.makeImmutable();
result.groups_ = groups_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.limitCombiner_ = limitCombiner_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.allowPartialResponse_ = allowPartialResponse_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.safetyLevel_ = safetyLevel_;
}
}
@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_ |= 0x00000004;
} 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.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
accountId_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
acquireAmount_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ensureGroupsIsMutable();
groups_.add(s);
break;
} // case 26
case 32: {
limitCombiner_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
allowPartialResponse_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
safetyLevel_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 48
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int64 account_id = 1;
* @return This builder for chaining.
*/
public Builder clearAccountId() {
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int32 acquire_amount = 2;
* @return This builder for chaining.
*/
public Builder clearAcquireAmount() {
bitField0_ = (bitField0_ & ~0x00000002);
acquireAmount_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList groups_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureGroupsIsMutable() {
if (!groups_.isModifiable()) {
groups_ = new com.google.protobuf.LazyStringArrayList(groups_);
}
bitField0_ |= 0x00000004;
}
/**
* repeated string groups = 3;
* @return A list containing the groups.
*/
public com.google.protobuf.ProtocolStringList
getGroupsList() {
groups_.makeImmutable();
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);
}
/**
* 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);
bitField0_ |= 0x00000004;
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);
bitField0_ |= 0x00000004;
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_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated string groups = 3;
* @return This builder for chaining.
*/
public Builder clearGroups() {
groups_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);;
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);
bitField0_ |= 0x00000004;
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;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .prefab.LimitRequest.LimitCombiner limit_combiner = 4;
* @return The limitCombiner.
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner getLimitCombiner() {
cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner result = cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.forNumber(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();
}
bitField0_ |= 0x00000008;
limitCombiner_ = value.getNumber();
onChanged();
return this;
}
/**
* .prefab.LimitRequest.LimitCombiner limit_combiner = 4;
* @return This builder for chaining.
*/
public Builder clearLimitCombiner() {
bitField0_ = (bitField0_ & ~0x00000008);
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;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* bool allow_partial_response = 5;
* @return This builder for chaining.
*/
public Builder clearAllowPartialResponse() {
bitField0_ = (bitField0_ & ~0x00000010);
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;
bitField0_ |= 0x00000020;
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() {
cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.forNumber(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();
}
bitField0_ |= 0x00000020;
safetyLevel_ = value.getNumber();
onChanged();
return this;
}
/**
*
* [default = L4_BEST_EFFORT];
*
*
* .prefab.LimitDefinition.SafetyLevel safety_level = 6;
* @return This builder for chaining.
*/
public Builder clearSafetyLevel() {
bitField0_ = (bitField0_ & ~0x00000020);
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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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 ContextSetOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.ContextSet)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .prefab.Context contexts = 1;
*/
java.util.List
getContextsList();
/**
* repeated .prefab.Context contexts = 1;
*/
cloud.prefab.domain.Prefab.Context getContexts(int index);
/**
* repeated .prefab.Context contexts = 1;
*/
int getContextsCount();
/**
* repeated .prefab.Context contexts = 1;
*/
java.util.List extends cloud.prefab.domain.Prefab.ContextOrBuilder>
getContextsOrBuilderList();
/**
* repeated .prefab.Context contexts = 1;
*/
cloud.prefab.domain.Prefab.ContextOrBuilder getContextsOrBuilder(
int index);
}
/**
*
* if the same Context type exists, last one wins
*
*
* Protobuf type {@code prefab.ContextSet}
*/
public static final class ContextSet extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.ContextSet)
ContextSetOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContextSet.newBuilder() to construct.
private ContextSet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContextSet() {
contexts_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ContextSet();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ContextSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ContextSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.ContextSet.class, cloud.prefab.domain.Prefab.ContextSet.Builder.class);
}
public static final int CONTEXTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List contexts_;
/**
* repeated .prefab.Context contexts = 1;
*/
@java.lang.Override
public java.util.List getContextsList() {
return contexts_;
}
/**
* repeated .prefab.Context contexts = 1;
*/
@java.lang.Override
public java.util.List extends cloud.prefab.domain.Prefab.ContextOrBuilder>
getContextsOrBuilderList() {
return contexts_;
}
/**
* repeated .prefab.Context contexts = 1;
*/
@java.lang.Override
public int getContextsCount() {
return contexts_.size();
}
/**
* repeated .prefab.Context contexts = 1;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.Context getContexts(int index) {
return contexts_.get(index);
}
/**
* repeated .prefab.Context contexts = 1;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ContextOrBuilder getContextsOrBuilder(
int index) {
return contexts_.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 < contexts_.size(); i++) {
output.writeMessage(1, contexts_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < contexts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, contexts_.get(i));
}
size += getUnknownFields().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.ContextSet)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.ContextSet other = (cloud.prefab.domain.Prefab.ContextSet) obj;
if (!getContextsList()
.equals(other.getContextsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getContextsCount() > 0) {
hash = (37 * hash) + CONTEXTS_FIELD_NUMBER;
hash = (53 * hash) + getContextsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.ContextSet parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ContextSet 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.ContextSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ContextSet 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.ContextSet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.ContextSet parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.ContextSet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ContextSet 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.ContextSet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ContextSet 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.ContextSet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.ContextSet 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.ContextSet 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;
}
/**
*
* if the same Context type exists, last one wins
*
*
* Protobuf type {@code prefab.ContextSet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.ContextSet)
cloud.prefab.domain.Prefab.ContextSetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ContextSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ContextSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.ContextSet.class, cloud.prefab.domain.Prefab.ContextSet.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.ContextSet.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (contextsBuilder_ == null) {
contexts_ = java.util.Collections.emptyList();
} else {
contexts_ = null;
contextsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_ContextSet_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ContextSet getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ContextSet build() {
cloud.prefab.domain.Prefab.ContextSet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.ContextSet buildPartial() {
cloud.prefab.domain.Prefab.ContextSet result = new cloud.prefab.domain.Prefab.ContextSet(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.ContextSet result) {
if (contextsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
contexts_ = java.util.Collections.unmodifiableList(contexts_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.contexts_ = contexts_;
} else {
result.contexts_ = contextsBuilder_.build();
}
}
private void buildPartial0(cloud.prefab.domain.Prefab.ContextSet result) {
int from_bitField0_ = bitField0_;
}
@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.ContextSet) {
return mergeFrom((cloud.prefab.domain.Prefab.ContextSet)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.ContextSet other) {
if (other == cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance()) return this;
if (contextsBuilder_ == null) {
if (!other.contexts_.isEmpty()) {
if (contexts_.isEmpty()) {
contexts_ = other.contexts_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureContextsIsMutable();
contexts_.addAll(other.contexts_);
}
onChanged();
}
} else {
if (!other.contexts_.isEmpty()) {
if (contextsBuilder_.isEmpty()) {
contextsBuilder_.dispose();
contextsBuilder_ = null;
contexts_ = other.contexts_;
bitField0_ = (bitField0_ & ~0x00000001);
contextsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContextsFieldBuilder() : null;
} else {
contextsBuilder_.addAllMessages(other.contexts_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
cloud.prefab.domain.Prefab.Context m =
input.readMessage(
cloud.prefab.domain.Prefab.Context.parser(),
extensionRegistry);
if (contextsBuilder_ == null) {
ensureContextsIsMutable();
contexts_.add(m);
} else {
contextsBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List contexts_ =
java.util.Collections.emptyList();
private void ensureContextsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
contexts_ = new java.util.ArrayList(contexts_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.Context, cloud.prefab.domain.Prefab.Context.Builder, cloud.prefab.domain.Prefab.ContextOrBuilder> contextsBuilder_;
/**
* repeated .prefab.Context contexts = 1;
*/
public java.util.List getContextsList() {
if (contextsBuilder_ == null) {
return java.util.Collections.unmodifiableList(contexts_);
} else {
return contextsBuilder_.getMessageList();
}
}
/**
* repeated .prefab.Context contexts = 1;
*/
public int getContextsCount() {
if (contextsBuilder_ == null) {
return contexts_.size();
} else {
return contextsBuilder_.getCount();
}
}
/**
* repeated .prefab.Context contexts = 1;
*/
public cloud.prefab.domain.Prefab.Context getContexts(int index) {
if (contextsBuilder_ == null) {
return contexts_.get(index);
} else {
return contextsBuilder_.getMessage(index);
}
}
/**
* repeated .prefab.Context contexts = 1;
*/
public Builder setContexts(
int index, cloud.prefab.domain.Prefab.Context value) {
if (contextsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextsIsMutable();
contexts_.set(index, value);
onChanged();
} else {
contextsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .prefab.Context contexts = 1;
*/
public Builder setContexts(
int index, cloud.prefab.domain.Prefab.Context.Builder builderForValue) {
if (contextsBuilder_ == null) {
ensureContextsIsMutable();
contexts_.set(index, builderForValue.build());
onChanged();
} else {
contextsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.Context contexts = 1;
*/
public Builder addContexts(cloud.prefab.domain.Prefab.Context value) {
if (contextsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextsIsMutable();
contexts_.add(value);
onChanged();
} else {
contextsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .prefab.Context contexts = 1;
*/
public Builder addContexts(
int index, cloud.prefab.domain.Prefab.Context value) {
if (contextsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextsIsMutable();
contexts_.add(index, value);
onChanged();
} else {
contextsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .prefab.Context contexts = 1;
*/
public Builder addContexts(
cloud.prefab.domain.Prefab.Context.Builder builderForValue) {
if (contextsBuilder_ == null) {
ensureContextsIsMutable();
contexts_.add(builderForValue.build());
onChanged();
} else {
contextsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .prefab.Context contexts = 1;
*/
public Builder addContexts(
int index, cloud.prefab.domain.Prefab.Context.Builder builderForValue) {
if (contextsBuilder_ == null) {
ensureContextsIsMutable();
contexts_.add(index, builderForValue.build());
onChanged();
} else {
contextsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .prefab.Context contexts = 1;
*/
public Builder addAllContexts(
java.lang.Iterable extends cloud.prefab.domain.Prefab.Context> values) {
if (contextsBuilder_ == null) {
ensureContextsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, contexts_);
onChanged();
} else {
contextsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .prefab.Context contexts = 1;
*/
public Builder clearContexts() {
if (contextsBuilder_ == null) {
contexts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
contextsBuilder_.clear();
}
return this;
}
/**
* repeated .prefab.Context contexts = 1;
*/
public Builder removeContexts(int index) {
if (contextsBuilder_ == null) {
ensureContextsIsMutable();
contexts_.remove(index);
onChanged();
} else {
contextsBuilder_.remove(index);
}
return this;
}
/**
* repeated .prefab.Context contexts = 1;
*/
public cloud.prefab.domain.Prefab.Context.Builder getContextsBuilder(
int index) {
return getContextsFieldBuilder().getBuilder(index);
}
/**
* repeated .prefab.Context contexts = 1;
*/
public cloud.prefab.domain.Prefab.ContextOrBuilder getContextsOrBuilder(
int index) {
if (contextsBuilder_ == null) {
return contexts_.get(index); } else {
return contextsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .prefab.Context contexts = 1;
*/
public java.util.List extends cloud.prefab.domain.Prefab.ContextOrBuilder>
getContextsOrBuilderList() {
if (contextsBuilder_ != null) {
return contextsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(contexts_);
}
}
/**
* repeated .prefab.Context contexts = 1;
*/
public cloud.prefab.domain.Prefab.Context.Builder addContextsBuilder() {
return getContextsFieldBuilder().addBuilder(
cloud.prefab.domain.Prefab.Context.getDefaultInstance());
}
/**
* repeated .prefab.Context contexts = 1;
*/
public cloud.prefab.domain.Prefab.Context.Builder addContextsBuilder(
int index) {
return getContextsFieldBuilder().addBuilder(
index, cloud.prefab.domain.Prefab.Context.getDefaultInstance());
}
/**
* repeated .prefab.Context contexts = 1;
*/
public java.util.List
getContextsBuilderList() {
return getContextsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.Context, cloud.prefab.domain.Prefab.Context.Builder, cloud.prefab.domain.Prefab.ContextOrBuilder>
getContextsFieldBuilder() {
if (contextsBuilder_ == null) {
contextsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cloud.prefab.domain.Prefab.Context, cloud.prefab.domain.Prefab.Context.Builder, cloud.prefab.domain.Prefab.ContextOrBuilder>(
contexts_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
contexts_ = null;
}
return contextsBuilder_;
}
@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.ContextSet)
}
// @@protoc_insertion_point(class_scope:prefab.ContextSet)
private static final cloud.prefab.domain.Prefab.ContextSet DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ContextSet();
}
public static cloud.prefab.domain.Prefab.ContextSet getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ContextSet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.ContextSet getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContextOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.Context)
com.google.protobuf.MessageOrBuilder {
/**
* optional string type = 1;
* @return Whether the type field is set.
*/
boolean hasType();
/**
* optional string type = 1;
* @return The type.
*/
java.lang.String getType();
/**
* optional string type = 1;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
* map<string, .prefab.ConfigValue> values = 2;
*/
int getValuesCount();
/**
* map<string, .prefab.ConfigValue> values = 2;
*/
boolean containsValues(
java.lang.String key);
/**
* Use {@link #getValuesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getValues();
/**
* map<string, .prefab.ConfigValue> values = 2;
*/
java.util.Map
getValuesMap();
/**
* map<string, .prefab.ConfigValue> values = 2;
*/
/* nullable */
cloud.prefab.domain.Prefab.ConfigValue getValuesOrDefault(
java.lang.String key,
/* nullable */
cloud.prefab.domain.Prefab.ConfigValue defaultValue);
/**
* map<string, .prefab.ConfigValue> values = 2;
*/
cloud.prefab.domain.Prefab.ConfigValue getValuesOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code prefab.Context}
*/
public static final class Context extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.Context)
ContextOrBuilder {
private static final long serialVersionUID = 0L;
// Use Context.newBuilder() to construct.
private Context(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Context() {
type_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Context();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Context_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
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_Context_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Context.class, cloud.prefab.domain.Prefab.Context.Builder.class);
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object type_ = "";
/**
* optional string type = 1;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string type = 1;
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
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();
type_ = s;
return s;
}
}
/**
* optional string type = 1;
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUES_FIELD_NUMBER = 2;
private static final class ValuesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, cloud.prefab.domain.Prefab.ConfigValue> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
cloud.prefab.domain.Prefab.internal_static_prefab_Context_ValuesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, cloud.prefab.domain.Prefab.ConfigValue> 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.ConfigValue> values = 2;
*/
@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.ConfigValue> values = 2;
*/
@java.lang.Override
public java.util.Map getValuesMap() {
return internalGetValues().getMap();
}
/**
* map<string, .prefab.ConfigValue> values = 2;
*/
@java.lang.Override
public /* nullable */
cloud.prefab.domain.Prefab.ConfigValue getValuesOrDefault(
java.lang.String key,
/* nullable */
cloud.prefab.domain.Prefab.ConfigValue 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.ConfigValue> values = 2;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigValue 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 {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetValues(),
ValuesDefaultEntryHolder.defaultEntry,
2);
getUnknownFields().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, type_);
}
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(2, values__);
}
size += getUnknownFields().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.Context)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.Context other = (cloud.prefab.domain.Prefab.Context) obj;
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (!getType()
.equals(other.getType())) return false;
}
if (!internalGetValues().equals(
other.internalGetValues())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
if (!internalGetValues().getMap().isEmpty()) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + internalGetValues().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.Context parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Context 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.Context parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Context 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.Context parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Context parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.Context parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Context 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.Context parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Context 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.Context parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Context 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.Context 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.Context}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.Context)
cloud.prefab.domain.Prefab.ContextOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Context_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetValues();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 2:
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_Context_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Context.class, cloud.prefab.domain.Prefab.Context.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.Context.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
type_ = "";
internalGetMutableValues().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Context_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Context getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.Context.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Context build() {
cloud.prefab.domain.Prefab.Context result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Context buildPartial() {
cloud.prefab.domain.Prefab.Context result = new cloud.prefab.domain.Prefab.Context(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cloud.prefab.domain.Prefab.Context result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.type_ = type_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.values_ = internalGetValues();
result.values_.makeImmutable();
}
result.bitField0_ |= to_bitField0_;
}
@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.Context) {
return mergeFrom((cloud.prefab.domain.Prefab.Context)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.Context other) {
if (other == cloud.prefab.domain.Prefab.Context.getDefaultInstance()) return this;
if (other.hasType()) {
type_ = other.type_;
bitField0_ |= 0x00000001;
onChanged();
}
internalGetMutableValues().mergeFrom(
other.internalGetValues());
bitField0_ |= 0x00000002;
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
type_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.google.protobuf.MapEntry
values__ = input.readMessage(
ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableValues().getMutableMap().put(
values__.getKey(), values__.getValue());
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object type_ = "";
/**
* optional string type = 1;
* @return Whether the type field is set.
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string type = 1;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string type = 1;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
type_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* optional string type = 1;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
type_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, cloud.prefab.domain.Prefab.ConfigValue> 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() {
if (values_ == null) {
values_ = com.google.protobuf.MapField.newMapField(
ValuesDefaultEntryHolder.defaultEntry);
}
if (!values_.isMutable()) {
values_ = values_.copy();
}
bitField0_ |= 0x00000002;
onChanged();
return values_;
}
public int getValuesCount() {
return internalGetValues().getMap().size();
}
/**
* map<string, .prefab.ConfigValue> values = 2;
*/
@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.ConfigValue> values = 2;
*/
@java.lang.Override
public java.util.Map getValuesMap() {
return internalGetValues().getMap();
}
/**
* map<string, .prefab.ConfigValue> values = 2;
*/
@java.lang.Override
public /* nullable */
cloud.prefab.domain.Prefab.ConfigValue getValuesOrDefault(
java.lang.String key,
/* nullable */
cloud.prefab.domain.Prefab.ConfigValue 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.ConfigValue> values = 2;
*/
@java.lang.Override
public cloud.prefab.domain.Prefab.ConfigValue 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() {
bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutableValues().getMutableMap()
.clear();
return this;
}
/**
* map<string, .prefab.ConfigValue> values = 2;
*/
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() {
bitField0_ |= 0x00000002;
return internalGetMutableValues().getMutableMap();
}
/**
* map<string, .prefab.ConfigValue> values = 2;
*/
public Builder putValues(
java.lang.String key,
cloud.prefab.domain.Prefab.ConfigValue value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableValues().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000002;
return this;
}
/**
* map<string, .prefab.ConfigValue> values = 2;
*/
public Builder putAllValues(
java.util.Map values) {
internalGetMutableValues().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000002;
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.Context)
}
// @@protoc_insertion_point(class_scope:prefab.Context)
private static final cloud.prefab.domain.Prefab.Context DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Context();
}
public static cloud.prefab.domain.Prefab.Context getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Context parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.Context getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IdentityOrBuilder extends
// @@protoc_insertion_point(interface_extends:prefab.Identity)
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;
*/
/* nullable */
java.lang.String getAttributesOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
* map<string, string> attributes = 2;
*/
java.lang.String getAttributesOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code prefab.Identity}
*/
public static final class Identity extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:prefab.Identity)
IdentityOrBuilder {
private static final long serialVersionUID = 0L;
// Use Identity.newBuilder() to construct.
private Identity(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Identity() {
lookup_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Identity();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Identity_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_Identity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Identity.class, cloud.prefab.domain.Prefab.Identity.Builder.class);
}
private int bitField0_;
public static final int LOOKUP_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
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_Identity_AttributesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
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 /* nullable */
java.lang.String getAttributesOrDefault(
java.lang.String key,
/* nullable */
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);
getUnknownFields().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 += getUnknownFields().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.Identity)) {
return super.equals(obj);
}
cloud.prefab.domain.Prefab.Identity other = (cloud.prefab.domain.Prefab.Identity) obj;
if (hasLookup() != other.hasLookup()) return false;
if (hasLookup()) {
if (!getLookup()
.equals(other.getLookup())) return false;
}
if (!internalGetAttributes().equals(
other.internalGetAttributes())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cloud.prefab.domain.Prefab.Identity parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Identity 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.Identity parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Identity 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.Identity parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cloud.prefab.domain.Prefab.Identity parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cloud.prefab.domain.Prefab.Identity parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Identity 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.Identity parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Identity 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.Identity parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cloud.prefab.domain.Prefab.Identity 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.Identity 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.Identity}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:prefab.Identity)
cloud.prefab.domain.Prefab.IdentityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Identity_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_Identity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cloud.prefab.domain.Prefab.Identity.class, cloud.prefab.domain.Prefab.Identity.Builder.class);
}
// Construct using cloud.prefab.domain.Prefab.Identity.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
lookup_ = "";
internalGetMutableAttributes().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cloud.prefab.domain.Prefab.internal_static_prefab_Identity_descriptor;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Identity getDefaultInstanceForType() {
return cloud.prefab.domain.Prefab.Identity.getDefaultInstance();
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Identity build() {
cloud.prefab.domain.Prefab.Identity result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cloud.prefab.domain.Prefab.Identity buildPartial() {
cloud.prefab.domain.Prefab.Identity result = new cloud.prefab.domain.Prefab.Identity(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cloud.prefab.domain.Prefab.Identity result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.lookup_ = lookup_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.attributes_ = internalGetAttributes();
result.attributes_.makeImmutable();
}
result.bitField0_ |= to_bitField0_;
}
@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.Identity) {
return mergeFrom((cloud.prefab.domain.Prefab.Identity)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cloud.prefab.domain.Prefab.Identity other) {
if (other == cloud.prefab.domain.Prefab.Identity.getDefaultInstance()) return this;
if (other.hasLookup()) {
lookup_ = other.lookup_;
bitField0_ |= 0x00000001;
onChanged();
}
internalGetMutableAttributes().mergeFrom(
other.internalGetAttributes());
bitField0_ |= 0x00000002;
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
lookup_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.google.protobuf.MapEntry
attributes__ = input.readMessage(
AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableAttributes().getMutableMap().put(
attributes__.getKey(), attributes__.getValue());
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
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(); }
lookup_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string lookup = 1;
* @return This builder for chaining.
*/
public Builder clearLookup() {
lookup_ = getDefaultInstance().getLookup();
bitField0_ = (bitField0_ & ~0x00000001);
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);
lookup_ = value;
bitField0_ |= 0x00000001;
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() {
if (attributes_ == null) {
attributes_ = com.google.protobuf.MapField.newMapField(
AttributesDefaultEntryHolder.defaultEntry);
}
if (!attributes_.isMutable()) {
attributes_ = attributes_.copy();
}
bitField0_ |= 0x00000002;
onChanged();
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 /* nullable */
java.lang.String getAttributesOrDefault(
java.lang.String key,
/* nullable */
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() {
bitField0_ = (bitField0_ & ~0x00000002);
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() {
bitField0_ |= 0x00000002;
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);
bitField0_ |= 0x00000002;
return this;
}
/**
* map<string, string> attributes = 2;
*/
public Builder putAllAttributes(
java.util.Map values) {
internalGetMutableAttributes().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000002;
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.Identity)
}
// @@protoc_insertion_point(class_scope:prefab.Identity)
private static final cloud.prefab.domain.Prefab.Identity DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Identity();
}
public static cloud.prefab.domain.Prefab.Identity getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Identity parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser