All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cloud.prefab.domain.Prefab Maven / Gradle / Ivy

Go to download

API Client for https://prefab.cloud: rate limits, feature flags and semaphores as a service

The newest version!
// 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.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), 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; 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; 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(0); } 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(1); } 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(2); } 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConfigServicePointer( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { projectId_ = input.readInt64(); break; } case 16: { startAtId_ = input.readInt64(); break; } case 24: { projectEnvId_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_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_; /** * 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_; /** * 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_; /** * 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_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (projectId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, projectId_); } if (startAtId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, startAtId_); } if (projectEnvId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, projectEnvId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProjectId()); hash = (37 * hash) + 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) + unknownFields.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() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); projectId_ = 0L; 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); result.projectId_ = projectId_; result.startAtId_ = startAtId_; result.projectEnvId_ = projectEnvId_; 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.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.ConfigServicePointer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.ConfigServicePointer) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long projectId_ ; /** * int64 project_id = 1; * @return The projectId. */ @java.lang.Override public long getProjectId() { return projectId_; } /** * int64 project_id = 1; * @param value The projectId to set. * @return This builder for chaining. */ public Builder setProjectId(long value) { projectId_ = value; onChanged(); return this; } /** * int64 project_id = 1; * @return This builder for chaining. */ public Builder clearProjectId() { projectId_ = 0L; onChanged(); return this; } private long 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; onChanged(); return this; } /** * int64 start_at_id = 2; * @return This builder for chaining. */ public Builder clearStartAtId() { 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; onChanged(); return this; } /** * int64 project_env_id = 3; * @return This builder for chaining. */ public Builder clearProjectEnvId() { 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 { return new ConfigServicePointer(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.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(); public 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() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigValue(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConfigValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { type_ = input.readInt64(); typeCase_ = 1; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); typeCase_ = 2; type_ = s; break; } case 26: { type_ = input.readBytes(); typeCase_ = 3; break; } case 33: { type_ = input.readDouble(); typeCase_ = 4; break; } case 40: { type_ = input.readBool(); typeCase_ = 5; break; } case 50: { cloud.prefab.domain.Prefab.WeightedValues.Builder subBuilder = null; if (typeCase_ == 6) { subBuilder = ((cloud.prefab.domain.Prefab.WeightedValues) type_).toBuilder(); } type_ = input.readMessage(cloud.prefab.domain.Prefab.WeightedValues.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((cloud.prefab.domain.Prefab.WeightedValues) type_); type_ = subBuilder.buildPartial(); } typeCase_ = 6; break; } case 58: { cloud.prefab.domain.Prefab.LimitDefinition.Builder subBuilder = null; if (typeCase_ == 7) { subBuilder = ((cloud.prefab.domain.Prefab.LimitDefinition) type_).toBuilder(); } type_ = input.readMessage(cloud.prefab.domain.Prefab.LimitDefinition.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((cloud.prefab.domain.Prefab.LimitDefinition) type_); type_ = subBuilder.buildPartial(); } typeCase_ = 7; break; } case 72: { int rawValue = input.readEnum(); typeCase_ = 9; type_ = rawValue; break; } case 82: { cloud.prefab.domain.Prefab.StringList.Builder subBuilder = null; if (typeCase_ == 10) { subBuilder = ((cloud.prefab.domain.Prefab.StringList) type_).toBuilder(); } type_ = input.readMessage(cloud.prefab.domain.Prefab.StringList.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((cloud.prefab.domain.Prefab.StringList) type_); type_ = subBuilder.buildPartial(); } typeCase_ = 10; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_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 typeCase_ = 0; 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), 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 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) { @SuppressWarnings("deprecation") cloud.prefab.domain.Prefab.LogLevel result = cloud.prefab.domain.Prefab.LogLevel.valueOf( (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(); } 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_); } unknownFields.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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ConfigValue)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ConfigValue other = (cloud.prefab.domain.Prefab.ConfigValue) obj; 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 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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 0: default: } hash = (29 * hash) + unknownFields.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() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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 (typeCase_ == 1) { result.type_ = type_; } if (typeCase_ == 2) { result.type_ = type_; } if (typeCase_ == 3) { result.type_ = type_; } if (typeCase_ == 4) { result.type_ = type_; } if (typeCase_ == 5) { result.type_ = type_; } if (typeCase_ == 6) { if (weightedValuesBuilder_ == null) { result.type_ = type_; } else { result.type_ = weightedValuesBuilder_.build(); } } if (typeCase_ == 7) { if (limitDefinitionBuilder_ == null) { result.type_ = type_; } else { result.type_ = limitDefinitionBuilder_.build(); } } if (typeCase_ == 9) { result.type_ = type_; } if (typeCase_ == 10) { if (stringListBuilder_ == null) { result.type_ = type_; } else { result.type_ = stringListBuilder_.build(); } } result.typeCase_ = typeCase_; 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.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; 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 TYPE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.ConfigValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.ConfigValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; } /** * 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) { @SuppressWarnings("deprecation") cloud.prefab.domain.Prefab.LogLevel result = cloud.prefab.domain.Prefab.LogLevel.valueOf( (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_; } @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 { return new ConfigValue(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValue 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.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StringList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StringList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } values_.add(s); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_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; private com.google.protobuf.LazyStringList values_; /** * 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)); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.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() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_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); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.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_ = (bitField0_ & ~0x00000001); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.StringList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.StringList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); bitField0_ |= 0x00000001; } } /** * repeated string values = 1; * @return A list containing the values. */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_.getUnmodifiableView(); } /** * 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); 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); 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_); onChanged(); return this; } /** * repeated string values = 1; * @return This builder for chaining. */ public Builder clearValues() { values_ = com.google.protobuf.LazyStringArrayList.EMPTY; 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); 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 { return new StringList(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WeightedValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { weight_ = input.readInt32(); break; } case 18: { cloud.prefab.domain.Prefab.ConfigValue.Builder subBuilder = null; if (value_ != null) { subBuilder = value_.toBuilder(); } value_ = input.readMessage(cloud.prefab.domain.Prefab.ConfigValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(value_); value_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_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); } public static final int WEIGHT_FIELD_NUMBER = 1; private int weight_; /** *
     * out of 1000
     * 
* * int32 weight = 1; * @return The weight. */ @java.lang.Override public int getWeight() { return weight_; } public static final int 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 value_ != null; } /** * .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 getValue(); } 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 (value_ != null) { output.writeMessage(2, getValue()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (weight_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, weight_); } if (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValue()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WEIGHT_FIELD_NUMBER; hash = (53 * hash) + getWeight(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.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) { } } @java.lang.Override public Builder clear() { super.clear(); weight_ = 0; if (valueBuilder_ == null) { value_ = null; } else { value_ = null; 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); result.weight_ = weight_; if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.WeightedValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.WeightedValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int weight_ ; /** *
       * out of 1000
       * 
* * int32 weight = 1; * @return The weight. */ @java.lang.Override public int getWeight() { return weight_; } /** *
       * out of 1000
       * 
* * int32 weight = 1; * @param value The weight to set. * @return This builder for chaining. */ public Builder setWeight(int value) { weight_ = value; onChanged(); return this; } /** *
       * out of 1000
       * 
* * int32 weight = 1; * @return This builder for chaining. */ public Builder clearWeight() { weight_ = 0; onChanged(); return this; } private 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 valueBuilder_ != null || value_ != null; } /** * .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; onChanged(); } else { valueBuilder_.setMessage(value); } return this; } /** * .prefab.ConfigValue value = 2; */ public Builder setValue( cloud.prefab.domain.Prefab.ConfigValue.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } return this; } /** * .prefab.ConfigValue value = 2; */ public Builder mergeValue(cloud.prefab.domain.Prefab.ConfigValue value) { if (valueBuilder_ == null) { if (value_ != null) { value_ = cloud.prefab.domain.Prefab.ConfigValue.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } return this; } /** * .prefab.ConfigValue value = 2; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** * .prefab.ConfigValue value = 2; */ public cloud.prefab.domain.Prefab.ConfigValue.Builder getValueBuilder() { 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 { return new WeightedValue(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.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 getWeightedValuesOrBuilderList(); /** * repeated .prefab.WeightedValue weighted_values = 1; */ cloud.prefab.domain.Prefab.WeightedValueOrBuilder getWeightedValuesOrBuilder( int index); } /** * 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(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WeightedValues(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WeightedValues( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { weightedValues_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } weightedValues_.add( input.readMessage(cloud.prefab.domain.Prefab.WeightedValue.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { weightedValues_ = java.util.Collections.unmodifiableList(weightedValues_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } 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); } public static final int WEIGHTED_VALUES_FIELD_NUMBER = 1; 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 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); } 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)); } unknownFields.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)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getWeightedValuesCount() > 0) { hash = (37 * hash) + WEIGHTED_VALUES_FIELD_NUMBER; hash = (53 * hash) + getWeightedValuesList().hashCode(); } hash = (29 * hash) + unknownFields.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() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getWeightedValuesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (weightedValuesBuilder_ == null) { weightedValues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { weightedValuesBuilder_.clear(); } 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); int from_bitField0_ = bitField0_; if (weightedValuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { weightedValues_ = java.util.Collections.unmodifiableList(weightedValues_); bitField0_ = (bitField0_ & ~0x00000001); } result.weightedValues_ = weightedValues_; } else { result.weightedValues_ = weightedValuesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.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_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.WeightedValues parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.WeightedValues) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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 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 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_; } @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 { return new WeightedValues(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.WeightedValues 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 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(); } /** * 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Configs( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { configs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } configs_.add( input.readMessage(cloud.prefab.domain.Prefab.Config.parser(), extensionRegistry)); break; } case 18: { cloud.prefab.domain.Prefab.ConfigServicePointer.Builder subBuilder = null; if (configServicePointer_ != null) { subBuilder = configServicePointer_.toBuilder(); } configServicePointer_ = input.readMessage(cloud.prefab.domain.Prefab.ConfigServicePointer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configServicePointer_); configServicePointer_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { configs_ = java.util.Collections.unmodifiableList(configs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } 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); } public static final int CONFIGS_FIELD_NUMBER = 1; 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 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 configServicePointer_ != null; } /** * .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 getConfigServicePointer(); } 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 (configServicePointer_ != null) { output.writeMessage(2, getConfigServicePointer()); } unknownFields.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 (configServicePointer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getConfigServicePointer()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (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(); } hash = (29 * hash) + unknownFields.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(); } } @java.lang.Override public Builder clear() { super.clear(); if (configsBuilder_ == null) { configs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { configsBuilder_.clear(); } if (configServicePointerBuilder_ == null) { configServicePointer_ = null; } else { configServicePointer_ = null; configServicePointerBuilder_ = null; } 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); int from_bitField0_ = bitField0_; if (configsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { configs_ = java.util.Collections.unmodifiableList(configs_); bitField0_ = (bitField0_ & ~0x00000001); } result.configs_ = configs_; } else { result.configs_ = configsBuilder_.build(); } if (configServicePointerBuilder_ == null) { result.configServicePointer_ = configServicePointer_; } else { result.configServicePointer_ = configServicePointerBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.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()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.Configs parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.Configs) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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 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 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 configServicePointerBuilder_ != null || configServicePointer_ != null; } /** * .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; onChanged(); } else { configServicePointerBuilder_.setMessage(value); } return this; } /** * .prefab.ConfigServicePointer config_service_pointer = 2; */ public Builder setConfigServicePointer( cloud.prefab.domain.Prefab.ConfigServicePointer.Builder builderForValue) { if (configServicePointerBuilder_ == null) { configServicePointer_ = builderForValue.build(); onChanged(); } else { configServicePointerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .prefab.ConfigServicePointer config_service_pointer = 2; */ public Builder mergeConfigServicePointer(cloud.prefab.domain.Prefab.ConfigServicePointer value) { if (configServicePointerBuilder_ == null) { if (configServicePointer_ != null) { configServicePointer_ = cloud.prefab.domain.Prefab.ConfigServicePointer.newBuilder(configServicePointer_).mergeFrom(value).buildPartial(); } else { configServicePointer_ = value; } onChanged(); } else { configServicePointerBuilder_.mergeFrom(value); } return this; } /** * .prefab.ConfigServicePointer config_service_pointer = 2; */ public Builder clearConfigServicePointer() { if (configServicePointerBuilder_ == null) { configServicePointer_ = null; onChanged(); } else { configServicePointer_ = null; configServicePointerBuilder_ = null; } return this; } /** * .prefab.ConfigServicePointer config_service_pointer = 2; */ public cloud.prefab.domain.Prefab.ConfigServicePointer.Builder getConfigServicePointerBuilder() { 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_; } @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 { return new Configs(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.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 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 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 draftId = 8; * @return Whether the draftId field is set. */ boolean hasDraftId(); /** * optional int64 draftId = 8; * @return The draftId. */ long getDraftId(); } /** * 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; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Config(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Config( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { id_ = input.readInt64(); break; } case 16: { projectId_ = input.readInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); key_ = s; break; } case 34: { cloud.prefab.domain.Prefab.ChangedBy.Builder subBuilder = null; if (changedBy_ != null) { subBuilder = changedBy_.toBuilder(); } changedBy_ = input.readMessage(cloud.prefab.domain.Prefab.ChangedBy.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(changedBy_); changedBy_ = subBuilder.buildPartial(); } break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { rows_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } rows_.add( input.readMessage(cloud.prefab.domain.Prefab.ConfigRow.parser(), extensionRegistry)); break; } case 50: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { allowableValues_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } allowableValues_.add( input.readMessage(cloud.prefab.domain.Prefab.ConfigValue.parser(), extensionRegistry)); break; } case 56: { int rawValue = input.readEnum(); configType_ = rawValue; break; } case 64: { bitField0_ |= 0x00000001; draftId_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { rows_ = java.util.Collections.unmodifiableList(rows_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { allowableValues_ = java.util.Collections.unmodifiableList(allowableValues_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } 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); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * 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_; /** * int64 project_id = 2; * @return The projectId. */ @java.lang.Override public long getProjectId() { return projectId_; } public static final int KEY_FIELD_NUMBER = 3; 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 changedBy_ != null; } /** * .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 getChangedBy(); } public static final int ROWS_FIELD_NUMBER = 5; 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 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; 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 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_; /** * .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() { @SuppressWarnings("deprecation") cloud.prefab.domain.Prefab.ConfigType result = cloud.prefab.domain.Prefab.ConfigType.valueOf(configType_); return result == null ? cloud.prefab.domain.Prefab.ConfigType.UNRECOGNIZED : result; } public static final int DRAFTID_FIELD_NUMBER = 8; private long draftId_; /** * optional int64 draftId = 8; * @return Whether the draftId field is set. */ @java.lang.Override public boolean hasDraftId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int64 draftId = 8; * @return The draftId. */ @java.lang.Override public long getDraftId() { return draftId_; } 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 (changedBy_ != null) { 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_ & 0x00000001) != 0)) { output.writeInt64(8, draftId_); } unknownFields.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 (changedBy_ != null) { 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_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, draftId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + DRAFTID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDraftId()); } hash = (29 * hash) + unknownFields.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) { getRowsFieldBuilder(); getAllowableValuesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = 0L; projectId_ = 0L; key_ = ""; if (changedByBuilder_ == null) { changedBy_ = null; } else { changedBy_ = null; changedByBuilder_ = null; } if (rowsBuilder_ == null) { rows_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { rowsBuilder_.clear(); } if (allowableValuesBuilder_ == null) { allowableValues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { allowableValuesBuilder_.clear(); } configType_ = 0; draftId_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); 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); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.id_ = id_; result.projectId_ = projectId_; result.key_ = key_; if (changedByBuilder_ == null) { result.changedBy_ = changedBy_; } else { result.changedBy_ = changedByBuilder_.build(); } if (rowsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { rows_ = java.util.Collections.unmodifiableList(rows_); bitField0_ = (bitField0_ & ~0x00000001); } result.rows_ = rows_; } else { result.rows_ = rowsBuilder_.build(); } if (allowableValuesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { allowableValues_ = java.util.Collections.unmodifiableList(allowableValues_); bitField0_ = (bitField0_ & ~0x00000002); } result.allowableValues_ = allowableValues_; } else { result.allowableValues_ = allowableValuesBuilder_.build(); } result.configType_ = configType_; if (((from_bitField0_ & 0x00000004) != 0)) { result.draftId_ = draftId_; to_bitField0_ |= 0x00000001; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.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_; onChanged(); } if (other.hasChangedBy()) { mergeChangedBy(other.getChangedBy()); } if (rowsBuilder_ == null) { if (!other.rows_.isEmpty()) { if (rows_.isEmpty()) { rows_ = other.rows_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRowsIsMutable(); rows_.addAll(other.rows_); } onChanged(); } } else { if (!other.rows_.isEmpty()) { if (rowsBuilder_.isEmpty()) { rowsBuilder_.dispose(); rowsBuilder_ = null; rows_ = other.rows_; bitField0_ = (bitField0_ & ~0x00000001); 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_ & ~0x00000002); } else { ensureAllowableValuesIsMutable(); allowableValues_.addAll(other.allowableValues_); } onChanged(); } } else { if (!other.allowableValues_.isEmpty()) { if (allowableValuesBuilder_.isEmpty()) { allowableValuesBuilder_.dispose(); allowableValuesBuilder_ = null; allowableValues_ = other.allowableValues_; bitField0_ = (bitField0_ & ~0x00000002); 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()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.Config parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.Config) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * int64 id = 1; * @return This builder for chaining. */ public Builder clearId() { 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; onChanged(); return this; } /** * int64 project_id = 2; * @return This builder for chaining. */ public Builder clearProjectId() { 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; onChanged(); return this; } /** * string key = 3; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); 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; 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 changedByBuilder_ != null || changedBy_ != null; } /** * .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; onChanged(); } else { changedByBuilder_.setMessage(value); } return this; } /** * .prefab.ChangedBy changed_by = 4; */ public Builder setChangedBy( cloud.prefab.domain.Prefab.ChangedBy.Builder builderForValue) { if (changedByBuilder_ == null) { changedBy_ = builderForValue.build(); onChanged(); } else { changedByBuilder_.setMessage(builderForValue.build()); } return this; } /** * .prefab.ChangedBy changed_by = 4; */ public Builder mergeChangedBy(cloud.prefab.domain.Prefab.ChangedBy value) { if (changedByBuilder_ == null) { if (changedBy_ != null) { changedBy_ = cloud.prefab.domain.Prefab.ChangedBy.newBuilder(changedBy_).mergeFrom(value).buildPartial(); } else { changedBy_ = value; } onChanged(); } else { changedByBuilder_.mergeFrom(value); } return this; } /** * .prefab.ChangedBy changed_by = 4; */ public Builder clearChangedBy() { if (changedByBuilder_ == null) { changedBy_ = null; onChanged(); } else { changedBy_ = null; changedByBuilder_ = null; } return this; } /** * .prefab.ChangedBy changed_by = 4; */ public cloud.prefab.domain.Prefab.ChangedBy.Builder getChangedByBuilder() { 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_ & 0x00000001) != 0)) { rows_ = new java.util.ArrayList(rows_); bitField0_ |= 0x00000001; } } 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 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_ & ~0x00000001); 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 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_ & 0x00000001) != 0), getParentForChildren(), isClean()); rows_ = null; } return rowsBuilder_; } private java.util.List allowableValues_ = java.util.Collections.emptyList(); private void ensureAllowableValuesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { allowableValues_ = new java.util.ArrayList(allowableValues_); bitField0_ |= 0x00000002; } } 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 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_ & ~0x00000002); 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 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_ & 0x00000002) != 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; onChanged(); return this; } /** * .prefab.ConfigType config_type = 7; * @return The configType. */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigType getConfigType() { @SuppressWarnings("deprecation") cloud.prefab.domain.Prefab.ConfigType result = cloud.prefab.domain.Prefab.ConfigType.valueOf(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(); } configType_ = value.getNumber(); onChanged(); return this; } /** * .prefab.ConfigType config_type = 7; * @return This builder for chaining. */ public Builder clearConfigType() { configType_ = 0; onChanged(); return this; } private long draftId_ ; /** * optional int64 draftId = 8; * @return Whether the draftId field is set. */ @java.lang.Override public boolean hasDraftId() { return ((bitField0_ & 0x00000004) != 0); } /** * optional int64 draftId = 8; * @return The draftId. */ @java.lang.Override public long getDraftId() { return draftId_; } /** * optional int64 draftId = 8; * @param value The draftId to set. * @return This builder for chaining. */ public Builder setDraftId(long value) { bitField0_ |= 0x00000004; draftId_ = value; onChanged(); return this; } /** * optional int64 draftId = 8; * @return This builder for chaining. */ public Builder clearDraftId() { bitField0_ = (bitField0_ & ~0x00000004); draftId_ = 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.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 { return new Config(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.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(); } /** * 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_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChangedBy(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChangedBy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { userId_ = input.readInt64(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); email_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_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_; /** * int64 user_id = 1; * @return The userId. */ @java.lang.Override public long getUserId() { return userId_; } public static final int EMAIL_FIELD_NUMBER = 2; 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; } } 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_); } unknownFields.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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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 = (29 * hash) + unknownFields.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() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); userId_ = 0L; email_ = ""; 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); result.userId_ = userId_; result.email_ = email_; 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.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_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.ChangedBy parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.ChangedBy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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; onChanged(); return this; } /** * int64 user_id = 1; * @return This builder for chaining. */ public Builder clearUserId() { 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; onChanged(); return this; } /** * string email = 2; * @return This builder for chaining. */ public Builder clearEmail() { email_ = getDefaultInstance().getEmail(); 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; 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 { return new ChangedBy(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.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 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConfigRow( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { bitField0_ |= 0x00000001; projectEnvId_ = input.readInt64(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { values_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } values_.add( input.readMessage(cloud.prefab.domain.Prefab.ConditionalValue.parser(), extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { properties_ = com.google.protobuf.MapField.newMapField( PropertiesDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000004; } com.google.protobuf.MapEntry properties__ = input.readMessage( PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); properties_.getMutableMap().put( properties__.getKey(), properties__.getValue()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } 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_; /** *
     * 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; 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 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()); } 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 cloud.prefab.domain.Prefab.ConfigValue getPropertiesOrDefault( java.lang.String key, 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); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, 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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (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) + unknownFields.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() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getValuesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); projectEnvId_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { valuesBuilder_.clear(); } 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); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.projectEnvId_ = projectEnvId_; to_bitField0_ |= 0x00000001; } if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); bitField0_ = (bitField0_ & ~0x00000002); } result.values_ = values_; } else { result.values_ = valuesBuilder_.build(); } result.properties_ = internalGetProperties(); result.properties_.makeImmutable(); result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.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()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.ConfigRow parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.ConfigRow) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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) { bitField0_ |= 0x00000001; projectEnvId_ = value; 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 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 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() { onChanged();; if (properties_ == null) { properties_ = com.google.protobuf.MapField.newMapField( PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); } 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 cloud.prefab.domain.Prefab.ConfigValue getPropertiesOrDefault( java.lang.String key, 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() { 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() { 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); return this; } /** *
       * can store "activated"
       * 
* * map<string, .prefab.ConfigValue> properties = 3; */ public Builder putAllProperties( java.util.Map values) { internalGetMutableProperties().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.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 { return new ConfigRow(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.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 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConditionalValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { criteria_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } criteria_.add( input.readMessage(cloud.prefab.domain.Prefab.Criterion.parser(), extensionRegistry)); break; } case 18: { cloud.prefab.domain.Prefab.ConfigValue.Builder subBuilder = null; if (value_ != null) { subBuilder = value_.toBuilder(); } value_ = input.readMessage(cloud.prefab.domain.Prefab.ConfigValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(value_); value_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { criteria_ = java.util.Collections.unmodifiableList(criteria_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } 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); } public static final int CRITERIA_FIELD_NUMBER = 1; 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 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 value_ != null; } /** * .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 getValue(); } 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 (value_ != null) { output.writeMessage(2, getValue()); } unknownFields.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 (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValue()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (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) + unknownFields.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(); } } @java.lang.Override public Builder clear() { super.clear(); if (criteriaBuilder_ == null) { criteria_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { criteriaBuilder_.clear(); } if (valueBuilder_ == null) { value_ = null; } else { value_ = null; 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); int from_bitField0_ = bitField0_; if (criteriaBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { criteria_ = java.util.Collections.unmodifiableList(criteria_); bitField0_ = (bitField0_ & ~0x00000001); } result.criteria_ = criteria_; } else { result.criteria_ = criteriaBuilder_.build(); } if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.ConditionalValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.ConditionalValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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 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 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 valueBuilder_ != null || value_ != null; } /** * .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; onChanged(); } else { valueBuilder_.setMessage(value); } return this; } /** * .prefab.ConfigValue value = 2; */ public Builder setValue( cloud.prefab.domain.Prefab.ConfigValue.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } return this; } /** * .prefab.ConfigValue value = 2; */ public Builder mergeValue(cloud.prefab.domain.Prefab.ConfigValue value) { if (valueBuilder_ == null) { if (value_ != null) { value_ = cloud.prefab.domain.Prefab.ConfigValue.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } return this; } /** * .prefab.ConfigValue value = 2; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** * .prefab.ConfigValue value = 2; */ public cloud.prefab.domain.Prefab.ConfigValue.Builder getValueBuilder() { 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 { return new ConditionalValue(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ConditionalValue 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LimitResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { passed_ = input.readBool(); break; } case 16: { expiresAt_ = input.readInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); enforcedGroup_ = s; break; } case 32: { currentBucket_ = input.readInt64(); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); policyGroup_ = s; break; } case 48: { int rawValue = input.readEnum(); policyName_ = rawValue; break; } case 56: { policyLimit_ = input.readInt32(); break; } case 64: { amount_ = input.readInt64(); break; } case 72: { limitResetAt_ = input.readInt64(); break; } case 80: { int rawValue = input.readEnum(); safetyLevel_ = rawValue; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_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_; /** * 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_; /** *
     * 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; 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_; /** * int64 current_bucket = 4; * @return The currentBucket. */ @java.lang.Override public long getCurrentBucket() { return currentBucket_; } public static final int POLICY_GROUP_FIELD_NUMBER = 5; 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_; /** * .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() { @SuppressWarnings("deprecation") cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames result = cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.valueOf(policyName_); return result == null ? cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.UNRECOGNIZED : result; } public static final int POLICY_LIMIT_FIELD_NUMBER = 7; private int policyLimit_; /** * 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_; /** * 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_; /** * 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_; /** * .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() { @SuppressWarnings("deprecation") cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.valueOf(safetyLevel_); return result == null ? cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (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_); } unknownFields.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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + unknownFields.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() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); 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); result.passed_ = passed_; result.expiresAt_ = expiresAt_; result.enforcedGroup_ = enforcedGroup_; result.currentBucket_ = currentBucket_; result.policyGroup_ = policyGroup_; result.policyName_ = policyName_; result.policyLimit_ = policyLimit_; result.amount_ = amount_; result.limitResetAt_ = limitResetAt_; result.safetyLevel_ = safetyLevel_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.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_; onChanged(); } if (other.getCurrentBucket() != 0L) { setCurrentBucket(other.getCurrentBucket()); } if (!other.getPolicyGroup().isEmpty()) { policyGroup_ = other.policyGroup_; 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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.LimitResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.LimitResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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; onChanged(); return this; } /** * bool passed = 1; * @return This builder for chaining. */ public Builder clearPassed() { 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; onChanged(); return this; } /** *
       * for returnable: rtn this value
       * 
* * int64 expires_at = 2; * @return This builder for chaining. */ public Builder clearExpiresAt() { 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; onChanged(); return this; } /** *
       * events:pageview:homepage:123123
       * 
* * string enforced_group = 3; * @return This builder for chaining. */ public Builder clearEnforcedGroup() { enforcedGroup_ = getDefaultInstance().getEnforcedGroup(); 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; 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; onChanged(); return this; } /** * int64 current_bucket = 4; * @return This builder for chaining. */ public Builder clearCurrentBucket() { 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; onChanged(); return this; } /** *
       * events:pageview
       * 
* * string policy_group = 5; * @return This builder for chaining. */ public Builder clearPolicyGroup() { policyGroup_ = getDefaultInstance().getPolicyGroup(); onChanged(); return this; } /** *
       * events:pageview
       * 
* * string policy_group = 5; * @param value The bytes for policyGroup to set. * @return This builder for chaining. */ public Builder setPolicyGroupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); policyGroup_ = value; onChanged(); return this; } private int policyName_ = 0; /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 6; * @return The enum numeric value on the wire for policyName. */ @java.lang.Override public int getPolicyNameValue() { return policyName_; } /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 6; * @param value The enum numeric value on the wire for policyName to set. * @return This builder for chaining. */ public Builder setPolicyNameValue(int value) { policyName_ = value; onChanged(); return this; } /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 6; * @return The policyName. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames getPolicyName() { @SuppressWarnings("deprecation") cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames result = cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.valueOf(policyName_); return result == null ? cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.UNRECOGNIZED : result; } /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 6; * @param value The policyName to set. * @return This builder for chaining. */ public Builder setPolicyName(cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames value) { if (value == null) { throw new NullPointerException(); } policyName_ = value.getNumber(); onChanged(); return this; } /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 6; * @return This builder for chaining. */ public Builder clearPolicyName() { policyName_ = 0; onChanged(); return this; } private int policyLimit_ ; /** * int32 policy_limit = 7; * @return The policyLimit. */ @java.lang.Override public int getPolicyLimit() { return policyLimit_; } /** * int32 policy_limit = 7; * @param value The policyLimit to set. * @return This builder for chaining. */ public Builder setPolicyLimit(int value) { policyLimit_ = value; onChanged(); return this; } /** * int32 policy_limit = 7; * @return This builder for chaining. */ public Builder clearPolicyLimit() { policyLimit_ = 0; onChanged(); return this; } private long amount_ ; /** * int64 amount = 8; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } /** * int64 amount = 8; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount(long value) { amount_ = value; onChanged(); return this; } /** * int64 amount = 8; * @return This builder for chaining. */ public Builder clearAmount() { amount_ = 0L; onChanged(); return this; } private long limitResetAt_ ; /** * int64 limit_reset_at = 9; * @return The limitResetAt. */ @java.lang.Override public long getLimitResetAt() { return limitResetAt_; } /** * int64 limit_reset_at = 9; * @param value The limitResetAt to set. * @return This builder for chaining. */ public Builder setLimitResetAt(long value) { limitResetAt_ = value; onChanged(); return this; } /** * int64 limit_reset_at = 9; * @return This builder for chaining. */ public Builder clearLimitResetAt() { limitResetAt_ = 0L; onChanged(); return this; } private int safetyLevel_ = 0; /** * .prefab.LimitDefinition.SafetyLevel safety_level = 10; * @return The enum numeric value on the wire for safetyLevel. */ @java.lang.Override public int getSafetyLevelValue() { return safetyLevel_; } /** * .prefab.LimitDefinition.SafetyLevel safety_level = 10; * @param value The enum numeric value on the wire for safetyLevel to set. * @return This builder for chaining. */ public Builder setSafetyLevelValue(int value) { safetyLevel_ = value; onChanged(); return this; } /** * .prefab.LimitDefinition.SafetyLevel safety_level = 10; * @return The safetyLevel. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel() { @SuppressWarnings("deprecation") cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.valueOf(safetyLevel_); return result == null ? cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.UNRECOGNIZED : result; } /** * .prefab.LimitDefinition.SafetyLevel safety_level = 10; * @param value The safetyLevel to set. * @return This builder for chaining. */ public Builder setSafetyLevel(cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel value) { if (value == null) { throw new NullPointerException(); } safetyLevel_ = value.getNumber(); onChanged(); return this; } /** * .prefab.LimitDefinition.SafetyLevel safety_level = 10; * @return This builder for chaining. */ public Builder clearSafetyLevel() { safetyLevel_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.LimitResponse) } // @@protoc_insertion_point(class_scope:prefab.LimitResponse) private static final cloud.prefab.domain.Prefab.LimitResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.LimitResponse(); } public static cloud.prefab.domain.Prefab.LimitResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LimitResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LimitResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.LimitResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LimitRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.LimitRequest) com.google.protobuf.MessageOrBuilder { /** * int64 account_id = 1; * @return The accountId. */ long getAccountId(); /** * int32 acquire_amount = 2; * @return The acquireAmount. */ int getAcquireAmount(); /** * repeated string groups = 3; * @return A list containing the groups. */ java.util.List getGroupsList(); /** * repeated string groups = 3; * @return The count of groups. */ int getGroupsCount(); /** * repeated string groups = 3; * @param index The index of the element to return. * @return The groups at the given index. */ java.lang.String getGroups(int index); /** * repeated string groups = 3; * @param index The index of the value to return. * @return The bytes of the groups at the given index. */ com.google.protobuf.ByteString getGroupsBytes(int index); /** * .prefab.LimitRequest.LimitCombiner limit_combiner = 4; * @return The enum numeric value on the wire for limitCombiner. */ int getLimitCombinerValue(); /** * .prefab.LimitRequest.LimitCombiner limit_combiner = 4; * @return The limitCombiner. */ cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner getLimitCombiner(); /** * bool allow_partial_response = 5; * @return The allowPartialResponse. */ boolean getAllowPartialResponse(); /** *
     * [default = L4_BEST_EFFORT];
     * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 6; * @return The enum numeric value on the wire for safetyLevel. */ int getSafetyLevelValue(); /** *
     * [default = L4_BEST_EFFORT];
     * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 6; * @return The safetyLevel. */ cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel(); } /** * Protobuf type {@code prefab.LimitRequest} */ public static final class LimitRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.LimitRequest) LimitRequestOrBuilder { private static final long serialVersionUID = 0L; // Use LimitRequest.newBuilder() to construct. private LimitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LimitRequest() { groups_ = com.google.protobuf.LazyStringArrayList.EMPTY; limitCombiner_ = 0; safetyLevel_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LimitRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LimitRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { accountId_ = input.readInt64(); break; } case 16: { acquireAmount_ = input.readInt32(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { groups_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } groups_.add(s); break; } case 32: { int rawValue = input.readEnum(); limitCombiner_ = rawValue; break; } case 40: { allowPartialResponse_ = input.readBool(); break; } case 48: { int rawValue = input.readEnum(); safetyLevel_ = rawValue; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { groups_ = groups_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.LimitRequest.class, cloud.prefab.domain.Prefab.LimitRequest.Builder.class); } /** * Protobuf enum {@code prefab.LimitRequest.LimitCombiner} */ public enum LimitCombiner implements com.google.protobuf.ProtocolMessageEnum { /** * NOT_SET = 0; */ NOT_SET(0), /** * MINIMUM = 1; */ MINIMUM(1), /** * MAXIMUM = 2; */ MAXIMUM(2), UNRECOGNIZED(-1), ; /** * NOT_SET = 0; */ public static final int NOT_SET_VALUE = 0; /** * MINIMUM = 1; */ public static final int MINIMUM_VALUE = 1; /** * MAXIMUM = 2; */ public static final int MAXIMUM_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static LimitCombiner valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static LimitCombiner forNumber(int value) { switch (value) { case 0: return NOT_SET; case 1: return MINIMUM; case 2: return MAXIMUM; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< LimitCombiner> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public LimitCombiner findValueByNumber(int number) { return LimitCombiner.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return cloud.prefab.domain.Prefab.LimitRequest.getDescriptor().getEnumTypes().get(0); } private static final LimitCombiner[] VALUES = values(); public static LimitCombiner valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private LimitCombiner(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:prefab.LimitRequest.LimitCombiner) } public static final int ACCOUNT_ID_FIELD_NUMBER = 1; private long accountId_; /** * int64 account_id = 1; * @return The accountId. */ @java.lang.Override public long getAccountId() { return accountId_; } public static final int ACQUIRE_AMOUNT_FIELD_NUMBER = 2; private int acquireAmount_; /** * int32 acquire_amount = 2; * @return The acquireAmount. */ @java.lang.Override public int getAcquireAmount() { return acquireAmount_; } public static final int GROUPS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList groups_; /** * repeated string groups = 3; * @return A list containing the groups. */ public com.google.protobuf.ProtocolStringList getGroupsList() { return groups_; } /** * repeated string groups = 3; * @return The count of groups. */ public int getGroupsCount() { return groups_.size(); } /** * repeated string groups = 3; * @param index The index of the element to return. * @return The groups at the given index. */ public java.lang.String getGroups(int index) { return groups_.get(index); } /** * repeated string groups = 3; * @param index The index of the value to return. * @return The bytes of the groups at the given index. */ public com.google.protobuf.ByteString getGroupsBytes(int index) { return groups_.getByteString(index); } public static final int LIMIT_COMBINER_FIELD_NUMBER = 4; private int limitCombiner_; /** * .prefab.LimitRequest.LimitCombiner limit_combiner = 4; * @return The enum numeric value on the wire for limitCombiner. */ @java.lang.Override public int getLimitCombinerValue() { return limitCombiner_; } /** * .prefab.LimitRequest.LimitCombiner limit_combiner = 4; * @return The limitCombiner. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner getLimitCombiner() { @SuppressWarnings("deprecation") cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner result = cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.valueOf(limitCombiner_); return result == null ? cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.UNRECOGNIZED : result; } public static final int ALLOW_PARTIAL_RESPONSE_FIELD_NUMBER = 5; private boolean allowPartialResponse_; /** * bool allow_partial_response = 5; * @return The allowPartialResponse. */ @java.lang.Override public boolean getAllowPartialResponse() { return allowPartialResponse_; } public static final int SAFETY_LEVEL_FIELD_NUMBER = 6; private int safetyLevel_; /** *
     * [default = L4_BEST_EFFORT];
     * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 6; * @return The enum numeric value on the wire for safetyLevel. */ @java.lang.Override public int getSafetyLevelValue() { return safetyLevel_; } /** *
     * [default = L4_BEST_EFFORT];
     * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 6; * @return The safetyLevel. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel() { @SuppressWarnings("deprecation") cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.valueOf(safetyLevel_); return result == null ? cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (accountId_ != 0L) { output.writeInt64(1, accountId_); } if (acquireAmount_ != 0) { output.writeInt32(2, acquireAmount_); } for (int i = 0; i < groups_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, groups_.getRaw(i)); } if (limitCombiner_ != cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.NOT_SET.getNumber()) { output.writeEnum(4, limitCombiner_); } if (allowPartialResponse_ != false) { output.writeBool(5, allowPartialResponse_); } if (safetyLevel_ != cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.NOT_SET.getNumber()) { output.writeEnum(6, safetyLevel_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (accountId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, accountId_); } if (acquireAmount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, acquireAmount_); } { int dataSize = 0; for (int i = 0; i < groups_.size(); i++) { dataSize += computeStringSizeNoTag(groups_.getRaw(i)); } size += dataSize; size += 1 * getGroupsList().size(); } if (limitCombiner_ != cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.NOT_SET.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, limitCombiner_); } if (allowPartialResponse_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, allowPartialResponse_); } if (safetyLevel_ != cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.NOT_SET.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, safetyLevel_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.LimitRequest)) { return super.equals(obj); } cloud.prefab.domain.Prefab.LimitRequest other = (cloud.prefab.domain.Prefab.LimitRequest) obj; if (getAccountId() != other.getAccountId()) return false; if (getAcquireAmount() != other.getAcquireAmount()) return false; if (!getGroupsList() .equals(other.getGroupsList())) return false; if (limitCombiner_ != other.limitCombiner_) return false; if (getAllowPartialResponse() != other.getAllowPartialResponse()) return false; if (safetyLevel_ != other.safetyLevel_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAccountId()); hash = (37 * hash) + ACQUIRE_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getAcquireAmount(); if (getGroupsCount() > 0) { hash = (37 * hash) + GROUPS_FIELD_NUMBER; hash = (53 * hash) + getGroupsList().hashCode(); } hash = (37 * hash) + LIMIT_COMBINER_FIELD_NUMBER; hash = (53 * hash) + limitCombiner_; hash = (37 * hash) + ALLOW_PARTIAL_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAllowPartialResponse()); hash = (37 * hash) + SAFETY_LEVEL_FIELD_NUMBER; hash = (53 * hash) + safetyLevel_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LimitRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.LimitRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.LimitRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.LimitRequest) cloud.prefab.domain.Prefab.LimitRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.LimitRequest.class, cloud.prefab.domain.Prefab.LimitRequest.Builder.class); } // Construct using cloud.prefab.domain.Prefab.LimitRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); accountId_ = 0L; acquireAmount_ = 0; groups_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); limitCombiner_ = 0; allowPartialResponse_ = false; safetyLevel_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitRequest_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.LimitRequest getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.LimitRequest.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.LimitRequest build() { cloud.prefab.domain.Prefab.LimitRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.LimitRequest buildPartial() { cloud.prefab.domain.Prefab.LimitRequest result = new cloud.prefab.domain.Prefab.LimitRequest(this); int from_bitField0_ = bitField0_; result.accountId_ = accountId_; result.acquireAmount_ = acquireAmount_; if (((bitField0_ & 0x00000001) != 0)) { groups_ = groups_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.groups_ = groups_; result.limitCombiner_ = limitCombiner_; result.allowPartialResponse_ = allowPartialResponse_; result.safetyLevel_ = safetyLevel_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.LimitRequest) { return mergeFrom((cloud.prefab.domain.Prefab.LimitRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.LimitRequest other) { if (other == cloud.prefab.domain.Prefab.LimitRequest.getDefaultInstance()) return this; if (other.getAccountId() != 0L) { setAccountId(other.getAccountId()); } if (other.getAcquireAmount() != 0) { setAcquireAmount(other.getAcquireAmount()); } if (!other.groups_.isEmpty()) { if (groups_.isEmpty()) { groups_ = other.groups_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureGroupsIsMutable(); groups_.addAll(other.groups_); } onChanged(); } if (other.limitCombiner_ != 0) { setLimitCombinerValue(other.getLimitCombinerValue()); } if (other.getAllowPartialResponse() != false) { setAllowPartialResponse(other.getAllowPartialResponse()); } if (other.safetyLevel_ != 0) { setSafetyLevelValue(other.getSafetyLevelValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.LimitRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.LimitRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long accountId_ ; /** * int64 account_id = 1; * @return The accountId. */ @java.lang.Override public long getAccountId() { return accountId_; } /** * int64 account_id = 1; * @param value The accountId to set. * @return This builder for chaining. */ public Builder setAccountId(long value) { accountId_ = value; onChanged(); return this; } /** * int64 account_id = 1; * @return This builder for chaining. */ public Builder clearAccountId() { accountId_ = 0L; onChanged(); return this; } private int acquireAmount_ ; /** * int32 acquire_amount = 2; * @return The acquireAmount. */ @java.lang.Override public int getAcquireAmount() { return acquireAmount_; } /** * int32 acquire_amount = 2; * @param value The acquireAmount to set. * @return This builder for chaining. */ public Builder setAcquireAmount(int value) { acquireAmount_ = value; onChanged(); return this; } /** * int32 acquire_amount = 2; * @return This builder for chaining. */ public Builder clearAcquireAmount() { acquireAmount_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringList groups_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureGroupsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { groups_ = new com.google.protobuf.LazyStringArrayList(groups_); bitField0_ |= 0x00000001; } } /** * repeated string groups = 3; * @return A list containing the groups. */ public com.google.protobuf.ProtocolStringList getGroupsList() { return groups_.getUnmodifiableView(); } /** * repeated string groups = 3; * @return The count of groups. */ public int getGroupsCount() { return groups_.size(); } /** * repeated string groups = 3; * @param index The index of the element to return. * @return The groups at the given index. */ public java.lang.String getGroups(int index) { return groups_.get(index); } /** * repeated string groups = 3; * @param index The index of the value to return. * @return The bytes of the groups at the given index. */ public com.google.protobuf.ByteString getGroupsBytes(int index) { return groups_.getByteString(index); } /** * repeated string groups = 3; * @param index The index to set the value at. * @param value The groups to set. * @return This builder for chaining. */ public Builder setGroups( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.set(index, value); onChanged(); return this; } /** * repeated string groups = 3; * @param value The groups to add. * @return This builder for chaining. */ public Builder addGroups( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.add(value); onChanged(); return this; } /** * repeated string groups = 3; * @param values The groups to add. * @return This builder for chaining. */ public Builder addAllGroups( java.lang.Iterable values) { ensureGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, groups_); onChanged(); return this; } /** * repeated string groups = 3; * @return This builder for chaining. */ public Builder clearGroups() { groups_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string groups = 3; * @param value The bytes of the groups to add. * @return This builder for chaining. */ public Builder addGroupsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureGroupsIsMutable(); groups_.add(value); onChanged(); return this; } private int limitCombiner_ = 0; /** * .prefab.LimitRequest.LimitCombiner limit_combiner = 4; * @return The enum numeric value on the wire for limitCombiner. */ @java.lang.Override public int getLimitCombinerValue() { return limitCombiner_; } /** * .prefab.LimitRequest.LimitCombiner limit_combiner = 4; * @param value The enum numeric value on the wire for limitCombiner to set. * @return This builder for chaining. */ public Builder setLimitCombinerValue(int value) { limitCombiner_ = value; onChanged(); return this; } /** * .prefab.LimitRequest.LimitCombiner limit_combiner = 4; * @return The limitCombiner. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner getLimitCombiner() { @SuppressWarnings("deprecation") cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner result = cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.valueOf(limitCombiner_); return result == null ? cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.UNRECOGNIZED : result; } /** * .prefab.LimitRequest.LimitCombiner limit_combiner = 4; * @param value The limitCombiner to set. * @return This builder for chaining. */ public Builder setLimitCombiner(cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner value) { if (value == null) { throw new NullPointerException(); } limitCombiner_ = value.getNumber(); onChanged(); return this; } /** * .prefab.LimitRequest.LimitCombiner limit_combiner = 4; * @return This builder for chaining. */ public Builder clearLimitCombiner() { limitCombiner_ = 0; onChanged(); return this; } private boolean allowPartialResponse_ ; /** * bool allow_partial_response = 5; * @return The allowPartialResponse. */ @java.lang.Override public boolean getAllowPartialResponse() { return allowPartialResponse_; } /** * bool allow_partial_response = 5; * @param value The allowPartialResponse to set. * @return This builder for chaining. */ public Builder setAllowPartialResponse(boolean value) { allowPartialResponse_ = value; onChanged(); return this; } /** * bool allow_partial_response = 5; * @return This builder for chaining. */ public Builder clearAllowPartialResponse() { allowPartialResponse_ = false; onChanged(); return this; } private int safetyLevel_ = 0; /** *
       * [default = L4_BEST_EFFORT];
       * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 6; * @return The enum numeric value on the wire for safetyLevel. */ @java.lang.Override public int getSafetyLevelValue() { return safetyLevel_; } /** *
       * [default = L4_BEST_EFFORT];
       * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 6; * @param value The enum numeric value on the wire for safetyLevel to set. * @return This builder for chaining. */ public Builder setSafetyLevelValue(int value) { safetyLevel_ = value; onChanged(); return this; } /** *
       * [default = L4_BEST_EFFORT];
       * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 6; * @return The safetyLevel. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel() { @SuppressWarnings("deprecation") cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.valueOf(safetyLevel_); return result == null ? cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.UNRECOGNIZED : result; } /** *
       * [default = L4_BEST_EFFORT];
       * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 6; * @param value The safetyLevel to set. * @return This builder for chaining. */ public Builder setSafetyLevel(cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel value) { if (value == null) { throw new NullPointerException(); } safetyLevel_ = value.getNumber(); onChanged(); return this; } /** *
       * [default = L4_BEST_EFFORT];
       * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 6; * @return This builder for chaining. */ public Builder clearSafetyLevel() { safetyLevel_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.LimitRequest) } // @@protoc_insertion_point(class_scope:prefab.LimitRequest) private static final cloud.prefab.domain.Prefab.LimitRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.LimitRequest(); } public static cloud.prefab.domain.Prefab.LimitRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LimitRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LimitRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.LimitRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Criterion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); propertyName_ = s; break; } case 16: { int rawValue = input.readEnum(); operator_ = rawValue; break; } case 26: { cloud.prefab.domain.Prefab.ConfigValue.Builder subBuilder = null; if (valueToMatch_ != null) { subBuilder = valueToMatch_.toBuilder(); } valueToMatch_ = input.readMessage(cloud.prefab.domain.Prefab.ConfigValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(valueToMatch_); valueToMatch_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_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), 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; 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; 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) } public static final int PROPERTY_NAME_FIELD_NUMBER = 1; 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_; /** * .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() { @SuppressWarnings("deprecation") cloud.prefab.domain.Prefab.Criterion.CriterionOperator result = cloud.prefab.domain.Prefab.Criterion.CriterionOperator.valueOf(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 valueToMatch_ != null; } /** * .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 getValueToMatch(); } 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 (valueToMatch_ != null) { output.writeMessage(3, getValueToMatch()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 (valueToMatch_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getValueToMatch()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROPERTY_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) + unknownFields.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) { } } @java.lang.Override public Builder clear() { super.clear(); propertyName_ = ""; operator_ = 0; if (valueToMatchBuilder_ == null) { valueToMatch_ = null; } else { valueToMatch_ = null; 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); result.propertyName_ = propertyName_; result.operator_ = operator_; if (valueToMatchBuilder_ == null) { result.valueToMatch_ = valueToMatch_; } else { result.valueToMatch_ = valueToMatchBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.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_; onChanged(); } if (other.operator_ != 0) { setOperatorValue(other.getOperatorValue()); } if (other.hasValueToMatch()) { mergeValueToMatch(other.getValueToMatch()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.Criterion parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.Criterion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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; onChanged(); return this; } /** * string property_name = 1; * @return This builder for chaining. */ public Builder clearPropertyName() { propertyName_ = getDefaultInstance().getPropertyName(); 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; 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; onChanged(); return this; } /** * .prefab.Criterion.CriterionOperator operator = 2; * @return The operator. */ @java.lang.Override public cloud.prefab.domain.Prefab.Criterion.CriterionOperator getOperator() { @SuppressWarnings("deprecation") cloud.prefab.domain.Prefab.Criterion.CriterionOperator result = cloud.prefab.domain.Prefab.Criterion.CriterionOperator.valueOf(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(); } operator_ = value.getNumber(); onChanged(); return this; } /** * .prefab.Criterion.CriterionOperator operator = 2; * @return This builder for chaining. */ public Builder clearOperator() { 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 valueToMatchBuilder_ != null || valueToMatch_ != null; } /** * .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; onChanged(); } else { valueToMatchBuilder_.setMessage(value); } return this; } /** * .prefab.ConfigValue value_to_match = 3; */ public Builder setValueToMatch( cloud.prefab.domain.Prefab.ConfigValue.Builder builderForValue) { if (valueToMatchBuilder_ == null) { valueToMatch_ = builderForValue.build(); onChanged(); } else { valueToMatchBuilder_.setMessage(builderForValue.build()); } return this; } /** * .prefab.ConfigValue value_to_match = 3; */ public Builder mergeValueToMatch(cloud.prefab.domain.Prefab.ConfigValue value) { if (valueToMatchBuilder_ == null) { if (valueToMatch_ != null) { valueToMatch_ = cloud.prefab.domain.Prefab.ConfigValue.newBuilder(valueToMatch_).mergeFrom(value).buildPartial(); } else { valueToMatch_ = value; } onChanged(); } else { valueToMatchBuilder_.mergeFrom(value); } return this; } /** * .prefab.ConfigValue value_to_match = 3; */ public Builder clearValueToMatch() { if (valueToMatchBuilder_ == null) { valueToMatch_ = null; onChanged(); } else { valueToMatch_ = null; valueToMatchBuilder_ = null; } return this; } /** * .prefab.ConfigValue value_to_match = 3; */ public cloud.prefab.domain.Prefab.ConfigValue.Builder getValueToMatchBuilder() { 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 { return new Criterion(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.Criterion 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Identity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; lookup_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { attributes_ = com.google.protobuf.MapField.newMapField( AttributesDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry attributes__ = input.readMessage( AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); attributes_.getMutableMap().put( attributes__.getKey(), attributes__.getValue()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_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; 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, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> attributes_; private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** * map<string, string> attributes = 2; */ @java.lang.Override public boolean containsAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } /** * Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** * map<string, string> attributes = 2; */ @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** * map<string, string> attributes = 2; */ @java.lang.Override public java.lang.String getAttributesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> attributes = 2; */ @java.lang.Override public java.lang.String getAttributesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, lookup_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 2); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, lookup_); } for (java.util.Map.Entry entry : internalGetAttributes().getMap().entrySet()) { com.google.protobuf.MapEntry attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, attributes__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasLookup()) { hash = (37 * hash) + LOOKUP_FIELD_NUMBER; hash = (53 * hash) + getLookup().hashCode(); } if (!internalGetAttributes().getMap().isEmpty()) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + internalGetAttributes().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.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() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); lookup_ = ""; bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableAttributes().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_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); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.lookup_ = lookup_; result.attributes_ = internalGetAttributes(); result.attributes_.makeImmutable(); result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.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()) { bitField0_ |= 0x00000001; lookup_ = other.lookup_; onChanged(); } internalGetMutableAttributes().mergeFrom( other.internalGetAttributes()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.Identity parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.Identity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object lookup_ = ""; /** * optional string lookup = 1; * @return Whether the lookup field is set. */ public boolean hasLookup() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string lookup = 1; * @return The lookup. */ public java.lang.String getLookup() { java.lang.Object ref = lookup_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lookup_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string lookup = 1; * @return The bytes for lookup. */ public com.google.protobuf.ByteString getLookupBytes() { java.lang.Object ref = lookup_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lookup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string lookup = 1; * @param value The lookup to set. * @return This builder for chaining. */ public Builder setLookup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; lookup_ = value; onChanged(); return this; } /** * optional string lookup = 1; * @return This builder for chaining. */ public Builder clearLookup() { bitField0_ = (bitField0_ & ~0x00000001); lookup_ = getDefaultInstance().getLookup(); onChanged(); return this; } /** * optional string lookup = 1; * @param value The bytes for lookup to set. * @return This builder for chaining. */ public Builder setLookupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000001; lookup_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> attributes_; private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } private com.google.protobuf.MapField internalGetMutableAttributes() { onChanged();; if (attributes_ == null) { attributes_ = com.google.protobuf.MapField.newMapField( AttributesDefaultEntryHolder.defaultEntry); } if (!attributes_.isMutable()) { attributes_ = attributes_.copy(); } return attributes_; } public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** * map<string, string> attributes = 2; */ @java.lang.Override public boolean containsAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } /** * Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** * map<string, string> attributes = 2; */ @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** * map<string, string> attributes = 2; */ @java.lang.Override public java.lang.String getAttributesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> attributes = 2; */ @java.lang.Override public java.lang.String getAttributesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAttributes() { internalGetMutableAttributes().getMutableMap() .clear(); return this; } /** * map<string, string> attributes = 2; */ public Builder removeAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAttributes().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAttributes() { return internalGetMutableAttributes().getMutableMap(); } /** * map<string, string> attributes = 2; */ public Builder putAttributes( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAttributes().getMutableMap() .put(key, value); return this; } /** * map<string, string> attributes = 2; */ public Builder putAllAttributes( java.util.Map values) { internalGetMutableAttributes().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.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 { return new Identity(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.Identity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClientConfigValueOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ClientConfigValue) com.google.protobuf.MessageOrBuilder { /** * optional int64 int = 1; * @return Whether the int field is set. */ boolean hasInt(); /** * optional int64 int = 1; * @return The int. */ long getInt(); /** * optional string string = 2; * @return Whether the string field is set. */ boolean hasString(); /** * optional string string = 2; * @return The string. */ java.lang.String getString(); /** * optional string string = 2; * @return The bytes for string. */ com.google.protobuf.ByteString getStringBytes(); /** * optional double double = 3; * @return Whether the double field is set. */ boolean hasDouble(); /** * optional double double = 3; * @return The double. */ double getDouble(); /** * optional bool bool = 4; * @return Whether the bool field is set. */ boolean hasBool(); /** * optional bool bool = 4; * @return The bool. */ boolean getBool(); } /** * Protobuf type {@code prefab.ClientConfigValue} */ public static final class ClientConfigValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.ClientConfigValue) ClientConfigValueOrBuilder { private static final long serialVersionUID = 0L; // Use ClientConfigValue.newBuilder() to construct. private ClientConfigValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClientConfigValue() { string_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClientConfigValue(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ClientConfigValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { bitField0_ |= 0x00000001; int_ = input.readInt64(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; string_ = s; break; } case 25: { bitField0_ |= 0x00000004; double_ = input.readDouble(); break; } case 32: { bitField0_ |= 0x00000008; bool_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ClientConfigValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ClientConfigValue_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ClientConfigValue.class, cloud.prefab.domain.Prefab.ClientConfigValue.Builder.class); } private int bitField0_; public static final int INT_FIELD_NUMBER = 1; private long int_; /** * optional int64 int = 1; * @return Whether the int field is set. */ @java.lang.Override public boolean hasInt() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int64 int = 1; * @return The int. */ @java.lang.Override public long getInt() { return int_; } public static final int STRING_FIELD_NUMBER = 2; private volatile java.lang.Object string_; /** * optional string string = 2; * @return Whether the string field is set. */ @java.lang.Override public boolean hasString() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string string = 2; * @return The string. */ @java.lang.Override public java.lang.String getString() { java.lang.Object ref = string_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); string_ = s; return s; } } /** * optional string string = 2; * @return The bytes for string. */ @java.lang.Override public com.google.protobuf.ByteString getStringBytes() { java.lang.Object ref = string_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); string_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DOUBLE_FIELD_NUMBER = 3; private double double_; /** * optional double double = 3; * @return Whether the double field is set. */ @java.lang.Override public boolean hasDouble() { return ((bitField0_ & 0x00000004) != 0); } /** * optional double double = 3; * @return The double. */ @java.lang.Override public double getDouble() { return double_; } public static final int BOOL_FIELD_NUMBER = 4; private boolean bool_; /** * optional bool bool = 4; * @return Whether the bool field is set. */ @java.lang.Override public boolean hasBool() { return ((bitField0_ & 0x00000008) != 0); } /** * optional bool bool = 4; * @return The bool. */ @java.lang.Override public boolean getBool() { return bool_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, int_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, string_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeDouble(3, double_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(4, bool_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, int_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, string_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, double_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, bool_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ClientConfigValue)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ClientConfigValue other = (cloud.prefab.domain.Prefab.ClientConfigValue) obj; if (hasInt() != other.hasInt()) return false; if (hasInt()) { if (getInt() != other.getInt()) return false; } if (hasString() != other.hasString()) return false; if (hasString()) { if (!getString() .equals(other.getString())) return false; } if (hasDouble() != other.hasDouble()) return false; if (hasDouble()) { if (java.lang.Double.doubleToLongBits(getDouble()) != java.lang.Double.doubleToLongBits( other.getDouble())) return false; } if (hasBool() != other.hasBool()) return false; if (hasBool()) { if (getBool() != other.getBool()) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasInt()) { hash = (37 * hash) + INT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInt()); } if (hasString()) { hash = (37 * hash) + STRING_FIELD_NUMBER; hash = (53 * hash) + getString().hashCode(); } if (hasDouble()) { hash = (37 * hash) + DOUBLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDouble())); } if (hasBool()) { hash = (37 * hash) + BOOL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBool()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.ClientConfigValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ClientConfigValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ClientConfigValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ClientConfigValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ClientConfigValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ClientConfigValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ClientConfigValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ClientConfigValue parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.ClientConfigValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ClientConfigValue parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.ClientConfigValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ClientConfigValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.ClientConfigValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.ClientConfigValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.ClientConfigValue) cloud.prefab.domain.Prefab.ClientConfigValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ClientConfigValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ClientConfigValue_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ClientConfigValue.class, cloud.prefab.domain.Prefab.ClientConfigValue.Builder.class); } // Construct using cloud.prefab.domain.Prefab.ClientConfigValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); int_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); string_ = ""; bitField0_ = (bitField0_ & ~0x00000002); double_ = 0D; bitField0_ = (bitField0_ & ~0x00000004); bool_ = false; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_ClientConfigValue_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.ClientConfigValue getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.ClientConfigValue.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.ClientConfigValue build() { cloud.prefab.domain.Prefab.ClientConfigValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.ClientConfigValue buildPartial() { cloud.prefab.domain.Prefab.ClientConfigValue result = new cloud.prefab.domain.Prefab.ClientConfigValue(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.int_ = int_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.string_ = string_; if (((from_bitField0_ & 0x00000004) != 0)) { result.double_ = double_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.bool_ = bool_; to_bitField0_ |= 0x00000008; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.ClientConfigValue) { return mergeFrom((cloud.prefab.domain.Prefab.ClientConfigValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.ClientConfigValue other) { if (other == cloud.prefab.domain.Prefab.ClientConfigValue.getDefaultInstance()) return this; if (other.hasInt()) { setInt(other.getInt()); } if (other.hasString()) { bitField0_ |= 0x00000002; string_ = other.string_; onChanged(); } if (other.hasDouble()) { setDouble(other.getDouble()); } if (other.hasBool()) { setBool(other.getBool()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.ClientConfigValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.ClientConfigValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long int_ ; /** * optional int64 int = 1; * @return Whether the int field is set. */ @java.lang.Override public boolean hasInt() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int64 int = 1; * @return The int. */ @java.lang.Override public long getInt() { return int_; } /** * optional int64 int = 1; * @param value The int to set. * @return This builder for chaining. */ public Builder setInt(long value) { bitField0_ |= 0x00000001; int_ = value; onChanged(); return this; } /** * optional int64 int = 1; * @return This builder for chaining. */ public Builder clearInt() { bitField0_ = (bitField0_ & ~0x00000001); int_ = 0L; onChanged(); return this; } private java.lang.Object string_ = ""; /** * optional string string = 2; * @return Whether the string field is set. */ public boolean hasString() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string string = 2; * @return The string. */ public java.lang.String getString() { java.lang.Object ref = string_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); string_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string string = 2; * @return The bytes for string. */ public com.google.protobuf.ByteString getStringBytes() { java.lang.Object ref = string_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); string_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string string = 2; * @param value The string to set. * @return This builder for chaining. */ public Builder setString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; string_ = value; onChanged(); return this; } /** * optional string string = 2; * @return This builder for chaining. */ public Builder clearString() { bitField0_ = (bitField0_ & ~0x00000002); string_ = getDefaultInstance().getString(); onChanged(); return this; } /** * optional string string = 2; * @param value The bytes for string to set. * @return This builder for chaining. */ public Builder setStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000002; string_ = value; onChanged(); return this; } private double double_ ; /** * optional double double = 3; * @return Whether the double field is set. */ @java.lang.Override public boolean hasDouble() { return ((bitField0_ & 0x00000004) != 0); } /** * optional double double = 3; * @return The double. */ @java.lang.Override public double getDouble() { return double_; } /** * optional double double = 3; * @param value The double to set. * @return This builder for chaining. */ public Builder setDouble(double value) { bitField0_ |= 0x00000004; double_ = value; onChanged(); return this; } /** * optional double double = 3; * @return This builder for chaining. */ public Builder clearDouble() { bitField0_ = (bitField0_ & ~0x00000004); double_ = 0D; onChanged(); return this; } private boolean bool_ ; /** * optional bool bool = 4; * @return Whether the bool field is set. */ @java.lang.Override public boolean hasBool() { return ((bitField0_ & 0x00000008) != 0); } /** * optional bool bool = 4; * @return The bool. */ @java.lang.Override public boolean getBool() { return bool_; } /** * optional bool bool = 4; * @param value The bool to set. * @return This builder for chaining. */ public Builder setBool(boolean value) { bitField0_ |= 0x00000008; bool_ = value; onChanged(); return this; } /** * optional bool bool = 4; * @return This builder for chaining. */ public Builder clearBool() { bitField0_ = (bitField0_ & ~0x00000008); bool_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.ClientConfigValue) } // @@protoc_insertion_point(class_scope:prefab.ClientConfigValue) private static final cloud.prefab.domain.Prefab.ClientConfigValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ClientConfigValue(); } public static cloud.prefab.domain.Prefab.ClientConfigValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClientConfigValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClientConfigValue(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ClientConfigValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigEvaluationsOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ConfigEvaluations) com.google.protobuf.MessageOrBuilder { /** * map<string, .prefab.ClientConfigValue> values = 1; */ int getValuesCount(); /** * map<string, .prefab.ClientConfigValue> values = 1; */ boolean containsValues( java.lang.String key); /** * Use {@link #getValuesMap()} instead. */ @java.lang.Deprecated java.util.Map getValues(); /** * map<string, .prefab.ClientConfigValue> values = 1; */ java.util.Map getValuesMap(); /** * map<string, .prefab.ClientConfigValue> values = 1; */ /* nullable */ cloud.prefab.domain.Prefab.ClientConfigValue getValuesOrDefault( java.lang.String key, /* nullable */ cloud.prefab.domain.Prefab.ClientConfigValue defaultValue); /** * map<string, .prefab.ClientConfigValue> values = 1; */ cloud.prefab.domain.Prefab.ClientConfigValue getValuesOrThrow( java.lang.String key); } /** * Protobuf type {@code prefab.ConfigEvaluations} */ public static final class ConfigEvaluations extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.ConfigEvaluations) ConfigEvaluationsOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigEvaluations.newBuilder() to construct. private ConfigEvaluations(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigEvaluations() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigEvaluations(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConfigEvaluations( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { values_ = com.google.protobuf.MapField.newMapField( ValuesDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry values__ = input.readMessage( ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); values_.getMutableMap().put( values__.getKey(), values__.getValue()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluations_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetValues(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluations_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ConfigEvaluations.class, cloud.prefab.domain.Prefab.ConfigEvaluations.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; private static final class ValuesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, cloud.prefab.domain.Prefab.ClientConfigValue> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluations_ValuesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, cloud.prefab.domain.Prefab.ClientConfigValue.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, cloud.prefab.domain.Prefab.ClientConfigValue> values_; private com.google.protobuf.MapField internalGetValues() { if (values_ == null) { return com.google.protobuf.MapField.emptyMapField( ValuesDefaultEntryHolder.defaultEntry); } return values_; } public int getValuesCount() { return internalGetValues().getMap().size(); } /** * map<string, .prefab.ClientConfigValue> values = 1; */ @java.lang.Override public boolean containsValues( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetValues().getMap().containsKey(key); } /** * Use {@link #getValuesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getValues() { return getValuesMap(); } /** * map<string, .prefab.ClientConfigValue> values = 1; */ @java.lang.Override public java.util.Map getValuesMap() { return internalGetValues().getMap(); } /** * map<string, .prefab.ClientConfigValue> values = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.ClientConfigValue getValuesOrDefault( java.lang.String key, cloud.prefab.domain.Prefab.ClientConfigValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .prefab.ClientConfigValue> values = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.ClientConfigValue getValuesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetValues().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetValues(), ValuesDefaultEntryHolder.defaultEntry, 1); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetValues().getMap().entrySet()) { com.google.protobuf.MapEntry values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, values__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ConfigEvaluations)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ConfigEvaluations other = (cloud.prefab.domain.Prefab.ConfigEvaluations) obj; if (!internalGetValues().equals( other.internalGetValues())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetValues().getMap().isEmpty()) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + internalGetValues().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.ConfigEvaluations parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigEvaluations parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigEvaluations parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigEvaluations parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigEvaluations parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigEvaluations parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigEvaluations parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigEvaluations parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigEvaluations parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigEvaluations parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigEvaluations parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigEvaluations parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.ConfigEvaluations prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.ConfigEvaluations} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.ConfigEvaluations) cloud.prefab.domain.Prefab.ConfigEvaluationsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluations_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetValues(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutableValues(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluations_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ConfigEvaluations.class, cloud.prefab.domain.Prefab.ConfigEvaluations.Builder.class); } // Construct using cloud.prefab.domain.Prefab.ConfigEvaluations.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); internalGetMutableValues().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluations_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluations getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.ConfigEvaluations.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluations build() { cloud.prefab.domain.Prefab.ConfigEvaluations result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluations buildPartial() { cloud.prefab.domain.Prefab.ConfigEvaluations result = new cloud.prefab.domain.Prefab.ConfigEvaluations(this); int from_bitField0_ = bitField0_; result.values_ = internalGetValues(); result.values_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.ConfigEvaluations) { return mergeFrom((cloud.prefab.domain.Prefab.ConfigEvaluations)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.ConfigEvaluations other) { if (other == cloud.prefab.domain.Prefab.ConfigEvaluations.getDefaultInstance()) return this; internalGetMutableValues().mergeFrom( other.internalGetValues()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.ConfigEvaluations parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.ConfigEvaluations) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, cloud.prefab.domain.Prefab.ClientConfigValue> values_; private com.google.protobuf.MapField internalGetValues() { if (values_ == null) { return com.google.protobuf.MapField.emptyMapField( ValuesDefaultEntryHolder.defaultEntry); } return values_; } private com.google.protobuf.MapField internalGetMutableValues() { onChanged();; if (values_ == null) { values_ = com.google.protobuf.MapField.newMapField( ValuesDefaultEntryHolder.defaultEntry); } if (!values_.isMutable()) { values_ = values_.copy(); } return values_; } public int getValuesCount() { return internalGetValues().getMap().size(); } /** * map<string, .prefab.ClientConfigValue> values = 1; */ @java.lang.Override public boolean containsValues( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetValues().getMap().containsKey(key); } /** * Use {@link #getValuesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getValues() { return getValuesMap(); } /** * map<string, .prefab.ClientConfigValue> values = 1; */ @java.lang.Override public java.util.Map getValuesMap() { return internalGetValues().getMap(); } /** * map<string, .prefab.ClientConfigValue> values = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.ClientConfigValue getValuesOrDefault( java.lang.String key, cloud.prefab.domain.Prefab.ClientConfigValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .prefab.ClientConfigValue> values = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.ClientConfigValue getValuesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetValues().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearValues() { internalGetMutableValues().getMutableMap() .clear(); return this; } /** * map<string, .prefab.ClientConfigValue> values = 1; */ public Builder removeValues( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableValues().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableValues() { return internalGetMutableValues().getMutableMap(); } /** * map<string, .prefab.ClientConfigValue> values = 1; */ public Builder putValues( java.lang.String key, cloud.prefab.domain.Prefab.ClientConfigValue value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableValues().getMutableMap() .put(key, value); return this; } /** * map<string, .prefab.ClientConfigValue> values = 1; */ public Builder putAllValues( java.util.Map values) { internalGetMutableValues().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.ConfigEvaluations) } // @@protoc_insertion_point(class_scope:prefab.ConfigEvaluations) private static final cloud.prefab.domain.Prefab.ConfigEvaluations DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ConfigEvaluations(); } public static cloud.prefab.domain.Prefab.ConfigEvaluations getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigEvaluations parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConfigEvaluations(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluations getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LimitDefinitionOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.LimitDefinition) com.google.protobuf.MessageOrBuilder { /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 2; * @return The enum numeric value on the wire for policyName. */ int getPolicyNameValue(); /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 2; * @return The policyName. */ cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames getPolicyName(); /** * int32 limit = 3; * @return The limit. */ int getLimit(); /** * int32 burst = 4; * @return The burst. */ int getBurst(); /** * int64 account_id = 5; * @return The accountId. */ long getAccountId(); /** * int64 last_modified = 6; * @return The lastModified. */ long getLastModified(); /** * bool returnable = 7; * @return The returnable. */ boolean getReturnable(); /** *
     * [default = L4_BEST_EFFORT]; // Overridable by request
     * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 8; * @return The enum numeric value on the wire for safetyLevel. */ int getSafetyLevelValue(); /** *
     * [default = L4_BEST_EFFORT]; // Overridable by request
     * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 8; * @return The safetyLevel. */ cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel(); } /** * Protobuf type {@code prefab.LimitDefinition} */ public static final class LimitDefinition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.LimitDefinition) LimitDefinitionOrBuilder { private static final long serialVersionUID = 0L; // Use LimitDefinition.newBuilder() to construct. private LimitDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LimitDefinition() { policyName_ = 0; safetyLevel_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LimitDefinition(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LimitDefinition( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 16: { int rawValue = input.readEnum(); policyName_ = rawValue; break; } case 24: { limit_ = input.readInt32(); break; } case 32: { burst_ = input.readInt32(); break; } case 40: { accountId_ = input.readInt64(); break; } case 48: { lastModified_ = input.readInt64(); break; } case 56: { returnable_ = input.readBool(); break; } case 64: { int rawValue = input.readEnum(); safetyLevel_ = rawValue; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.LimitDefinition.class, cloud.prefab.domain.Prefab.LimitDefinition.Builder.class); } /** * Protobuf enum {@code prefab.LimitDefinition.SafetyLevel} */ public enum SafetyLevel implements com.google.protobuf.ProtocolMessageEnum { /** * NOT_SET = 0; */ NOT_SET(0), /** * L4_BEST_EFFORT = 4; */ L4_BEST_EFFORT(4), /** * L5_BOMBPROOF = 5; */ L5_BOMBPROOF(5), UNRECOGNIZED(-1), ; /** * NOT_SET = 0; */ public static final int NOT_SET_VALUE = 0; /** * L4_BEST_EFFORT = 4; */ public static final int L4_BEST_EFFORT_VALUE = 4; /** * L5_BOMBPROOF = 5; */ public static final int L5_BOMBPROOF_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SafetyLevel valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static SafetyLevel forNumber(int value) { switch (value) { case 0: return NOT_SET; case 4: return L4_BEST_EFFORT; case 5: return L5_BOMBPROOF; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< SafetyLevel> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SafetyLevel findValueByNumber(int number) { return SafetyLevel.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return cloud.prefab.domain.Prefab.LimitDefinition.getDescriptor().getEnumTypes().get(0); } private static final SafetyLevel[] VALUES = values(); public static SafetyLevel valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private SafetyLevel(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:prefab.LimitDefinition.SafetyLevel) } public static final int POLICY_NAME_FIELD_NUMBER = 2; private int policyName_; /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 2; * @return The enum numeric value on the wire for policyName. */ @java.lang.Override public int getPolicyNameValue() { return policyName_; } /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 2; * @return The policyName. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames getPolicyName() { @SuppressWarnings("deprecation") cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames result = cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.valueOf(policyName_); return result == null ? cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.UNRECOGNIZED : result; } public static final int LIMIT_FIELD_NUMBER = 3; private int limit_; /** * int32 limit = 3; * @return The limit. */ @java.lang.Override public int getLimit() { return limit_; } public static final int BURST_FIELD_NUMBER = 4; private int burst_; /** * int32 burst = 4; * @return The burst. */ @java.lang.Override public int getBurst() { return burst_; } public static final int ACCOUNT_ID_FIELD_NUMBER = 5; private long accountId_; /** * int64 account_id = 5; * @return The accountId. */ @java.lang.Override public long getAccountId() { return accountId_; } public static final int LAST_MODIFIED_FIELD_NUMBER = 6; private long lastModified_; /** * int64 last_modified = 6; * @return The lastModified. */ @java.lang.Override public long getLastModified() { return lastModified_; } public static final int RETURNABLE_FIELD_NUMBER = 7; private boolean returnable_; /** * bool returnable = 7; * @return The returnable. */ @java.lang.Override public boolean getReturnable() { return returnable_; } public static final int SAFETY_LEVEL_FIELD_NUMBER = 8; private int safetyLevel_; /** *
     * [default = L4_BEST_EFFORT]; // Overridable by request
     * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 8; * @return The enum numeric value on the wire for safetyLevel. */ @java.lang.Override public int getSafetyLevelValue() { return safetyLevel_; } /** *
     * [default = L4_BEST_EFFORT]; // Overridable by request
     * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 8; * @return The safetyLevel. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel() { @SuppressWarnings("deprecation") cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.valueOf(safetyLevel_); return result == null ? cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (policyName_ != cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.NOT_SET.getNumber()) { output.writeEnum(2, policyName_); } if (limit_ != 0) { output.writeInt32(3, limit_); } if (burst_ != 0) { output.writeInt32(4, burst_); } if (accountId_ != 0L) { output.writeInt64(5, accountId_); } if (lastModified_ != 0L) { output.writeInt64(6, lastModified_); } if (returnable_ != false) { output.writeBool(7, returnable_); } if (safetyLevel_ != cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.NOT_SET.getNumber()) { output.writeEnum(8, safetyLevel_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (policyName_ != cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.NOT_SET.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, policyName_); } if (limit_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, limit_); } if (burst_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, burst_); } if (accountId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, accountId_); } if (lastModified_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, lastModified_); } if (returnable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, returnable_); } if (safetyLevel_ != cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.NOT_SET.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, safetyLevel_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.LimitDefinition)) { return super.equals(obj); } cloud.prefab.domain.Prefab.LimitDefinition other = (cloud.prefab.domain.Prefab.LimitDefinition) obj; if (policyName_ != other.policyName_) return false; if (getLimit() != other.getLimit()) return false; if (getBurst() != other.getBurst()) return false; if (getAccountId() != other.getAccountId()) return false; if (getLastModified() != other.getLastModified()) return false; if (getReturnable() != other.getReturnable()) return false; if (safetyLevel_ != other.safetyLevel_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + POLICY_NAME_FIELD_NUMBER; hash = (53 * hash) + policyName_; hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit(); hash = (37 * hash) + BURST_FIELD_NUMBER; hash = (53 * hash) + getBurst(); hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAccountId()); hash = (37 * hash) + LAST_MODIFIED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLastModified()); hash = (37 * hash) + RETURNABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReturnable()); hash = (37 * hash) + SAFETY_LEVEL_FIELD_NUMBER; hash = (53 * hash) + safetyLevel_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.LimitDefinition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LimitDefinition parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitDefinition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LimitDefinition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitDefinition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LimitDefinition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitDefinition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LimitDefinition parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitDefinition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LimitDefinition parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitDefinition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LimitDefinition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.LimitDefinition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.LimitDefinition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.LimitDefinition) cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.LimitDefinition.class, cloud.prefab.domain.Prefab.LimitDefinition.Builder.class); } // Construct using cloud.prefab.domain.Prefab.LimitDefinition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); policyName_ = 0; limit_ = 0; burst_ = 0; accountId_ = 0L; lastModified_ = 0L; returnable_ = false; safetyLevel_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinition_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition build() { cloud.prefab.domain.Prefab.LimitDefinition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition buildPartial() { cloud.prefab.domain.Prefab.LimitDefinition result = new cloud.prefab.domain.Prefab.LimitDefinition(this); result.policyName_ = policyName_; result.limit_ = limit_; result.burst_ = burst_; result.accountId_ = accountId_; result.lastModified_ = lastModified_; result.returnable_ = returnable_; result.safetyLevel_ = safetyLevel_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.LimitDefinition) { return mergeFrom((cloud.prefab.domain.Prefab.LimitDefinition)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.LimitDefinition other) { if (other == cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance()) return this; if (other.policyName_ != 0) { setPolicyNameValue(other.getPolicyNameValue()); } if (other.getLimit() != 0) { setLimit(other.getLimit()); } if (other.getBurst() != 0) { setBurst(other.getBurst()); } if (other.getAccountId() != 0L) { setAccountId(other.getAccountId()); } if (other.getLastModified() != 0L) { setLastModified(other.getLastModified()); } if (other.getReturnable() != false) { setReturnable(other.getReturnable()); } if (other.safetyLevel_ != 0) { setSafetyLevelValue(other.getSafetyLevelValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.LimitDefinition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.LimitDefinition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int policyName_ = 0; /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 2; * @return The enum numeric value on the wire for policyName. */ @java.lang.Override public int getPolicyNameValue() { return policyName_; } /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 2; * @param value The enum numeric value on the wire for policyName to set. * @return This builder for chaining. */ public Builder setPolicyNameValue(int value) { policyName_ = value; onChanged(); return this; } /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 2; * @return The policyName. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames getPolicyName() { @SuppressWarnings("deprecation") cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames result = cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.valueOf(policyName_); return result == null ? cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.UNRECOGNIZED : result; } /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 2; * @param value The policyName to set. * @return This builder for chaining. */ public Builder setPolicyName(cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames value) { if (value == null) { throw new NullPointerException(); } policyName_ = value.getNumber(); onChanged(); return this; } /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 2; * @return This builder for chaining. */ public Builder clearPolicyName() { policyName_ = 0; onChanged(); return this; } private int limit_ ; /** * int32 limit = 3; * @return The limit. */ @java.lang.Override public int getLimit() { return limit_; } /** * int32 limit = 3; * @param value The limit to set. * @return This builder for chaining. */ public Builder setLimit(int value) { limit_ = value; onChanged(); return this; } /** * int32 limit = 3; * @return This builder for chaining. */ public Builder clearLimit() { limit_ = 0; onChanged(); return this; } private int burst_ ; /** * int32 burst = 4; * @return The burst. */ @java.lang.Override public int getBurst() { return burst_; } /** * int32 burst = 4; * @param value The burst to set. * @return This builder for chaining. */ public Builder setBurst(int value) { burst_ = value; onChanged(); return this; } /** * int32 burst = 4; * @return This builder for chaining. */ public Builder clearBurst() { burst_ = 0; onChanged(); return this; } private long accountId_ ; /** * int64 account_id = 5; * @return The accountId. */ @java.lang.Override public long getAccountId() { return accountId_; } /** * int64 account_id = 5; * @param value The accountId to set. * @return This builder for chaining. */ public Builder setAccountId(long value) { accountId_ = value; onChanged(); return this; } /** * int64 account_id = 5; * @return This builder for chaining. */ public Builder clearAccountId() { accountId_ = 0L; onChanged(); return this; } private long lastModified_ ; /** * int64 last_modified = 6; * @return The lastModified. */ @java.lang.Override public long getLastModified() { return lastModified_; } /** * int64 last_modified = 6; * @param value The lastModified to set. * @return This builder for chaining. */ public Builder setLastModified(long value) { lastModified_ = value; onChanged(); return this; } /** * int64 last_modified = 6; * @return This builder for chaining. */ public Builder clearLastModified() { lastModified_ = 0L; onChanged(); return this; } private boolean returnable_ ; /** * bool returnable = 7; * @return The returnable. */ @java.lang.Override public boolean getReturnable() { return returnable_; } /** * bool returnable = 7; * @param value The returnable to set. * @return This builder for chaining. */ public Builder setReturnable(boolean value) { returnable_ = value; onChanged(); return this; } /** * bool returnable = 7; * @return This builder for chaining. */ public Builder clearReturnable() { returnable_ = false; onChanged(); return this; } private int safetyLevel_ = 0; /** *
       * [default = L4_BEST_EFFORT]; // Overridable by request
       * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 8; * @return The enum numeric value on the wire for safetyLevel. */ @java.lang.Override public int getSafetyLevelValue() { return safetyLevel_; } /** *
       * [default = L4_BEST_EFFORT]; // Overridable by request
       * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 8; * @param value The enum numeric value on the wire for safetyLevel to set. * @return This builder for chaining. */ public Builder setSafetyLevelValue(int value) { safetyLevel_ = value; onChanged(); return this; } /** *
       * [default = L4_BEST_EFFORT]; // Overridable by request
       * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 8; * @return The safetyLevel. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel() { @SuppressWarnings("deprecation") cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.valueOf(safetyLevel_); return result == null ? cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.UNRECOGNIZED : result; } /** *
       * [default = L4_BEST_EFFORT]; // Overridable by request
       * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 8; * @param value The safetyLevel to set. * @return This builder for chaining. */ public Builder setSafetyLevel(cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel value) { if (value == null) { throw new NullPointerException(); } safetyLevel_ = value.getNumber(); onChanged(); return this; } /** *
       * [default = L4_BEST_EFFORT]; // Overridable by request
       * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 8; * @return This builder for chaining. */ public Builder clearSafetyLevel() { safetyLevel_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.LimitDefinition) } // @@protoc_insertion_point(class_scope:prefab.LimitDefinition) private static final cloud.prefab.domain.Prefab.LimitDefinition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.LimitDefinition(); } public static cloud.prefab.domain.Prefab.LimitDefinition getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LimitDefinition parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LimitDefinition(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LimitDefinitionsOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.LimitDefinitions) com.google.protobuf.MessageOrBuilder { /** * repeated .prefab.LimitDefinition definitions = 1; */ java.util.List getDefinitionsList(); /** * repeated .prefab.LimitDefinition definitions = 1; */ cloud.prefab.domain.Prefab.LimitDefinition getDefinitions(int index); /** * repeated .prefab.LimitDefinition definitions = 1; */ int getDefinitionsCount(); /** * repeated .prefab.LimitDefinition definitions = 1; */ java.util.List getDefinitionsOrBuilderList(); /** * repeated .prefab.LimitDefinition definitions = 1; */ cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder getDefinitionsOrBuilder( int index); } /** * Protobuf type {@code prefab.LimitDefinitions} */ public static final class LimitDefinitions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.LimitDefinitions) LimitDefinitionsOrBuilder { private static final long serialVersionUID = 0L; // Use LimitDefinitions.newBuilder() to construct. private LimitDefinitions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LimitDefinitions() { definitions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LimitDefinitions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LimitDefinitions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { definitions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } definitions_.add( input.readMessage(cloud.prefab.domain.Prefab.LimitDefinition.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { definitions_ = java.util.Collections.unmodifiableList(definitions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinitions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinitions_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.LimitDefinitions.class, cloud.prefab.domain.Prefab.LimitDefinitions.Builder.class); } public static final int DEFINITIONS_FIELD_NUMBER = 1; private java.util.List definitions_; /** * repeated .prefab.LimitDefinition definitions = 1; */ @java.lang.Override public java.util.List getDefinitionsList() { return definitions_; } /** * repeated .prefab.LimitDefinition definitions = 1; */ @java.lang.Override public java.util.List getDefinitionsOrBuilderList() { return definitions_; } /** * repeated .prefab.LimitDefinition definitions = 1; */ @java.lang.Override public int getDefinitionsCount() { return definitions_.size(); } /** * repeated .prefab.LimitDefinition definitions = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition getDefinitions(int index) { return definitions_.get(index); } /** * repeated .prefab.LimitDefinition definitions = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder getDefinitionsOrBuilder( int index) { return definitions_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < definitions_.size(); i++) { output.writeMessage(1, definitions_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < definitions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, definitions_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.LimitDefinitions)) { return super.equals(obj); } cloud.prefab.domain.Prefab.LimitDefinitions other = (cloud.prefab.domain.Prefab.LimitDefinitions) obj; if (!getDefinitionsList() .equals(other.getDefinitionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getDefinitionsCount() > 0) { hash = (37 * hash) + DEFINITIONS_FIELD_NUMBER; hash = (53 * hash) + getDefinitionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.LimitDefinitions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LimitDefinitions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitDefinitions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LimitDefinitions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitDefinitions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LimitDefinitions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitDefinitions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LimitDefinitions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitDefinitions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LimitDefinitions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitDefinitions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LimitDefinitions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.LimitDefinitions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.LimitDefinitions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.LimitDefinitions) cloud.prefab.domain.Prefab.LimitDefinitionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinitions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinitions_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.LimitDefinitions.class, cloud.prefab.domain.Prefab.LimitDefinitions.Builder.class); } // Construct using cloud.prefab.domain.Prefab.LimitDefinitions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDefinitionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (definitionsBuilder_ == null) { definitions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { definitionsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitDefinitions_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinitions getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.LimitDefinitions.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinitions build() { cloud.prefab.domain.Prefab.LimitDefinitions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinitions buildPartial() { cloud.prefab.domain.Prefab.LimitDefinitions result = new cloud.prefab.domain.Prefab.LimitDefinitions(this); int from_bitField0_ = bitField0_; if (definitionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { definitions_ = java.util.Collections.unmodifiableList(definitions_); bitField0_ = (bitField0_ & ~0x00000001); } result.definitions_ = definitions_; } else { result.definitions_ = definitionsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.LimitDefinitions) { return mergeFrom((cloud.prefab.domain.Prefab.LimitDefinitions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.LimitDefinitions other) { if (other == cloud.prefab.domain.Prefab.LimitDefinitions.getDefaultInstance()) return this; if (definitionsBuilder_ == null) { if (!other.definitions_.isEmpty()) { if (definitions_.isEmpty()) { definitions_ = other.definitions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDefinitionsIsMutable(); definitions_.addAll(other.definitions_); } onChanged(); } } else { if (!other.definitions_.isEmpty()) { if (definitionsBuilder_.isEmpty()) { definitionsBuilder_.dispose(); definitionsBuilder_ = null; definitions_ = other.definitions_; bitField0_ = (bitField0_ & ~0x00000001); definitionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDefinitionsFieldBuilder() : null; } else { definitionsBuilder_.addAllMessages(other.definitions_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.LimitDefinitions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.LimitDefinitions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List definitions_ = java.util.Collections.emptyList(); private void ensureDefinitionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { definitions_ = new java.util.ArrayList(definitions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.LimitDefinition, cloud.prefab.domain.Prefab.LimitDefinition.Builder, cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder> definitionsBuilder_; /** * repeated .prefab.LimitDefinition definitions = 1; */ public java.util.List getDefinitionsList() { if (definitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(definitions_); } else { return definitionsBuilder_.getMessageList(); } } /** * repeated .prefab.LimitDefinition definitions = 1; */ public int getDefinitionsCount() { if (definitionsBuilder_ == null) { return definitions_.size(); } else { return definitionsBuilder_.getCount(); } } /** * repeated .prefab.LimitDefinition definitions = 1; */ public cloud.prefab.domain.Prefab.LimitDefinition getDefinitions(int index) { if (definitionsBuilder_ == null) { return definitions_.get(index); } else { return definitionsBuilder_.getMessage(index); } } /** * repeated .prefab.LimitDefinition definitions = 1; */ public Builder setDefinitions( int index, cloud.prefab.domain.Prefab.LimitDefinition value) { if (definitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDefinitionsIsMutable(); definitions_.set(index, value); onChanged(); } else { definitionsBuilder_.setMessage(index, value); } return this; } /** * repeated .prefab.LimitDefinition definitions = 1; */ public Builder setDefinitions( int index, cloud.prefab.domain.Prefab.LimitDefinition.Builder builderForValue) { if (definitionsBuilder_ == null) { ensureDefinitionsIsMutable(); definitions_.set(index, builderForValue.build()); onChanged(); } else { definitionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.LimitDefinition definitions = 1; */ public Builder addDefinitions(cloud.prefab.domain.Prefab.LimitDefinition value) { if (definitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDefinitionsIsMutable(); definitions_.add(value); onChanged(); } else { definitionsBuilder_.addMessage(value); } return this; } /** * repeated .prefab.LimitDefinition definitions = 1; */ public Builder addDefinitions( int index, cloud.prefab.domain.Prefab.LimitDefinition value) { if (definitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDefinitionsIsMutable(); definitions_.add(index, value); onChanged(); } else { definitionsBuilder_.addMessage(index, value); } return this; } /** * repeated .prefab.LimitDefinition definitions = 1; */ public Builder addDefinitions( cloud.prefab.domain.Prefab.LimitDefinition.Builder builderForValue) { if (definitionsBuilder_ == null) { ensureDefinitionsIsMutable(); definitions_.add(builderForValue.build()); onChanged(); } else { definitionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .prefab.LimitDefinition definitions = 1; */ public Builder addDefinitions( int index, cloud.prefab.domain.Prefab.LimitDefinition.Builder builderForValue) { if (definitionsBuilder_ == null) { ensureDefinitionsIsMutable(); definitions_.add(index, builderForValue.build()); onChanged(); } else { definitionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.LimitDefinition definitions = 1; */ public Builder addAllDefinitions( java.lang.Iterable values) { if (definitionsBuilder_ == null) { ensureDefinitionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, definitions_); onChanged(); } else { definitionsBuilder_.addAllMessages(values); } return this; } /** * repeated .prefab.LimitDefinition definitions = 1; */ public Builder clearDefinitions() { if (definitionsBuilder_ == null) { definitions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { definitionsBuilder_.clear(); } return this; } /** * repeated .prefab.LimitDefinition definitions = 1; */ public Builder removeDefinitions(int index) { if (definitionsBuilder_ == null) { ensureDefinitionsIsMutable(); definitions_.remove(index); onChanged(); } else { definitionsBuilder_.remove(index); } return this; } /** * repeated .prefab.LimitDefinition definitions = 1; */ public cloud.prefab.domain.Prefab.LimitDefinition.Builder getDefinitionsBuilder( int index) { return getDefinitionsFieldBuilder().getBuilder(index); } /** * repeated .prefab.LimitDefinition definitions = 1; */ public cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder getDefinitionsOrBuilder( int index) { if (definitionsBuilder_ == null) { return definitions_.get(index); } else { return definitionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .prefab.LimitDefinition definitions = 1; */ public java.util.List getDefinitionsOrBuilderList() { if (definitionsBuilder_ != null) { return definitionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(definitions_); } } /** * repeated .prefab.LimitDefinition definitions = 1; */ public cloud.prefab.domain.Prefab.LimitDefinition.Builder addDefinitionsBuilder() { return getDefinitionsFieldBuilder().addBuilder( cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance()); } /** * repeated .prefab.LimitDefinition definitions = 1; */ public cloud.prefab.domain.Prefab.LimitDefinition.Builder addDefinitionsBuilder( int index) { return getDefinitionsFieldBuilder().addBuilder( index, cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance()); } /** * repeated .prefab.LimitDefinition definitions = 1; */ public java.util.List getDefinitionsBuilderList() { return getDefinitionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.LimitDefinition, cloud.prefab.domain.Prefab.LimitDefinition.Builder, cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder> getDefinitionsFieldBuilder() { if (definitionsBuilder_ == null) { definitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.LimitDefinition, cloud.prefab.domain.Prefab.LimitDefinition.Builder, cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder>( definitions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); definitions_ = null; } return definitionsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.LimitDefinitions) } // @@protoc_insertion_point(class_scope:prefab.LimitDefinitions) private static final cloud.prefab.domain.Prefab.LimitDefinitions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.LimitDefinitions(); } public static cloud.prefab.domain.Prefab.LimitDefinitions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LimitDefinitions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LimitDefinitions(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinitions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BufferedRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.BufferedRequest) com.google.protobuf.MessageOrBuilder { /** * int64 account_id = 1; * @return The accountId. */ long getAccountId(); /** * string method = 2; * @return The method. */ java.lang.String getMethod(); /** * string method = 2; * @return The bytes for method. */ com.google.protobuf.ByteString getMethodBytes(); /** * string uri = 3; * @return The uri. */ java.lang.String getUri(); /** * string uri = 3; * @return The bytes for uri. */ com.google.protobuf.ByteString getUriBytes(); /** * string body = 4; * @return The body. */ java.lang.String getBody(); /** * string body = 4; * @return The bytes for body. */ com.google.protobuf.ByteString getBodyBytes(); /** * repeated string limit_groups = 5; * @return A list containing the limitGroups. */ java.util.List getLimitGroupsList(); /** * repeated string limit_groups = 5; * @return The count of limitGroups. */ int getLimitGroupsCount(); /** * repeated string limit_groups = 5; * @param index The index of the element to return. * @return The limitGroups at the given index. */ java.lang.String getLimitGroups(int index); /** * repeated string limit_groups = 5; * @param index The index of the value to return. * @return The bytes of the limitGroups at the given index. */ com.google.protobuf.ByteString getLimitGroupsBytes(int index); /** * string content_type = 6; * @return The contentType. */ java.lang.String getContentType(); /** * string content_type = 6; * @return The bytes for contentType. */ com.google.protobuf.ByteString getContentTypeBytes(); /** * bool fifo = 7; * @return The fifo. */ boolean getFifo(); } /** * Protobuf type {@code prefab.BufferedRequest} */ public static final class BufferedRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.BufferedRequest) BufferedRequestOrBuilder { private static final long serialVersionUID = 0L; // Use BufferedRequest.newBuilder() to construct. private BufferedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BufferedRequest() { method_ = ""; uri_ = ""; body_ = ""; limitGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; contentType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BufferedRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BufferedRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { accountId_ = input.readInt64(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); method_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); uri_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); body_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { limitGroups_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } limitGroups_.add(s); break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); contentType_ = s; break; } case 56: { fifo_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { limitGroups_ = limitGroups_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_BufferedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_BufferedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.BufferedRequest.class, cloud.prefab.domain.Prefab.BufferedRequest.Builder.class); } public static final int ACCOUNT_ID_FIELD_NUMBER = 1; private long accountId_; /** * int64 account_id = 1; * @return The accountId. */ @java.lang.Override public long getAccountId() { return accountId_; } public static final int METHOD_FIELD_NUMBER = 2; private volatile java.lang.Object method_; /** * string method = 2; * @return The method. */ @java.lang.Override public java.lang.String getMethod() { java.lang.Object ref = method_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); method_ = s; return s; } } /** * string method = 2; * @return The bytes for method. */ @java.lang.Override public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); method_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int URI_FIELD_NUMBER = 3; private volatile java.lang.Object uri_; /** * string uri = 3; * @return The uri. */ @java.lang.Override public java.lang.String getUri() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** * string uri = 3; * @return The bytes for uri. */ @java.lang.Override public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BODY_FIELD_NUMBER = 4; private volatile java.lang.Object body_; /** * string body = 4; * @return The body. */ @java.lang.Override public java.lang.String getBody() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** * string body = 4; * @return The bytes for body. */ @java.lang.Override public com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); body_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LIMIT_GROUPS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList limitGroups_; /** * repeated string limit_groups = 5; * @return A list containing the limitGroups. */ public com.google.protobuf.ProtocolStringList getLimitGroupsList() { return limitGroups_; } /** * repeated string limit_groups = 5; * @return The count of limitGroups. */ public int getLimitGroupsCount() { return limitGroups_.size(); } /** * repeated string limit_groups = 5; * @param index The index of the element to return. * @return The limitGroups at the given index. */ public java.lang.String getLimitGroups(int index) { return limitGroups_.get(index); } /** * repeated string limit_groups = 5; * @param index The index of the value to return. * @return The bytes of the limitGroups at the given index. */ public com.google.protobuf.ByteString getLimitGroupsBytes(int index) { return limitGroups_.getByteString(index); } public static final int CONTENT_TYPE_FIELD_NUMBER = 6; private volatile java.lang.Object contentType_; /** * string content_type = 6; * @return The contentType. */ @java.lang.Override public java.lang.String getContentType() { java.lang.Object ref = contentType_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; } } /** * string content_type = 6; * @return The bytes for contentType. */ @java.lang.Override public com.google.protobuf.ByteString getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contentType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIFO_FIELD_NUMBER = 7; private boolean fifo_; /** * bool fifo = 7; * @return The fifo. */ @java.lang.Override public boolean getFifo() { return fifo_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (accountId_ != 0L) { output.writeInt64(1, accountId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, body_); } for (int i = 0; i < limitGroups_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, limitGroups_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, contentType_); } if (fifo_ != false) { output.writeBool(7, fifo_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (accountId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, accountId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, body_); } { int dataSize = 0; for (int i = 0; i < limitGroups_.size(); i++) { dataSize += computeStringSizeNoTag(limitGroups_.getRaw(i)); } size += dataSize; size += 1 * getLimitGroupsList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, contentType_); } if (fifo_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, fifo_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.BufferedRequest)) { return super.equals(obj); } cloud.prefab.domain.Prefab.BufferedRequest other = (cloud.prefab.domain.Prefab.BufferedRequest) obj; if (getAccountId() != other.getAccountId()) return false; if (!getMethod() .equals(other.getMethod())) return false; if (!getUri() .equals(other.getUri())) return false; if (!getBody() .equals(other.getBody())) return false; if (!getLimitGroupsList() .equals(other.getLimitGroupsList())) return false; if (!getContentType() .equals(other.getContentType())) return false; if (getFifo() != other.getFifo()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAccountId()); hash = (37 * hash) + METHOD_FIELD_NUMBER; hash = (53 * hash) + getMethod().hashCode(); hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); if (getLimitGroupsCount() > 0) { hash = (37 * hash) + LIMIT_GROUPS_FIELD_NUMBER; hash = (53 * hash) + getLimitGroupsList().hashCode(); } hash = (37 * hash) + CONTENT_TYPE_FIELD_NUMBER; hash = (53 * hash) + getContentType().hashCode(); hash = (37 * hash) + FIFO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getFifo()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.BufferedRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.BufferedRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.BufferedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.BufferedRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.BufferedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.BufferedRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.BufferedRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.BufferedRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.BufferedRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.BufferedRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.BufferedRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.BufferedRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.BufferedRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.BufferedRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.BufferedRequest) cloud.prefab.domain.Prefab.BufferedRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_BufferedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_BufferedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.BufferedRequest.class, cloud.prefab.domain.Prefab.BufferedRequest.Builder.class); } // Construct using cloud.prefab.domain.Prefab.BufferedRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); accountId_ = 0L; method_ = ""; uri_ = ""; body_ = ""; limitGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); contentType_ = ""; fifo_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_BufferedRequest_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.BufferedRequest getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.BufferedRequest.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.BufferedRequest build() { cloud.prefab.domain.Prefab.BufferedRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.BufferedRequest buildPartial() { cloud.prefab.domain.Prefab.BufferedRequest result = new cloud.prefab.domain.Prefab.BufferedRequest(this); int from_bitField0_ = bitField0_; result.accountId_ = accountId_; result.method_ = method_; result.uri_ = uri_; result.body_ = body_; if (((bitField0_ & 0x00000001) != 0)) { limitGroups_ = limitGroups_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.limitGroups_ = limitGroups_; result.contentType_ = contentType_; result.fifo_ = fifo_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.BufferedRequest) { return mergeFrom((cloud.prefab.domain.Prefab.BufferedRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.BufferedRequest other) { if (other == cloud.prefab.domain.Prefab.BufferedRequest.getDefaultInstance()) return this; if (other.getAccountId() != 0L) { setAccountId(other.getAccountId()); } if (!other.getMethod().isEmpty()) { method_ = other.method_; onChanged(); } if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); } if (!other.getBody().isEmpty()) { body_ = other.body_; onChanged(); } if (!other.limitGroups_.isEmpty()) { if (limitGroups_.isEmpty()) { limitGroups_ = other.limitGroups_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLimitGroupsIsMutable(); limitGroups_.addAll(other.limitGroups_); } onChanged(); } if (!other.getContentType().isEmpty()) { contentType_ = other.contentType_; onChanged(); } if (other.getFifo() != false) { setFifo(other.getFifo()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.BufferedRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.BufferedRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long accountId_ ; /** * int64 account_id = 1; * @return The accountId. */ @java.lang.Override public long getAccountId() { return accountId_; } /** * int64 account_id = 1; * @param value The accountId to set. * @return This builder for chaining. */ public Builder setAccountId(long value) { accountId_ = value; onChanged(); return this; } /** * int64 account_id = 1; * @return This builder for chaining. */ public Builder clearAccountId() { accountId_ = 0L; onChanged(); return this; } private java.lang.Object method_ = ""; /** * string method = 2; * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); method_ = s; return s; } else { return (java.lang.String) ref; } } /** * string method = 2; * @return The bytes for method. */ public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); method_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string method = 2; * @param value The method to set. * @return This builder for chaining. */ public Builder setMethod( java.lang.String value) { if (value == null) { throw new NullPointerException(); } method_ = value; onChanged(); return this; } /** * string method = 2; * @return This builder for chaining. */ public Builder clearMethod() { method_ = getDefaultInstance().getMethod(); onChanged(); return this; } /** * string method = 2; * @param value The bytes for method to set. * @return This builder for chaining. */ public Builder setMethodBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); method_ = value; onChanged(); return this; } private java.lang.Object uri_ = ""; /** * string uri = 3; * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } else { return (java.lang.String) ref; } } /** * string uri = 3; * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string uri = 3; * @param value The uri to set. * @return This builder for chaining. */ public Builder setUri( java.lang.String value) { if (value == null) { throw new NullPointerException(); } uri_ = value; onChanged(); return this; } /** * string uri = 3; * @return This builder for chaining. */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** * string uri = 3; * @param value The bytes for uri to set. * @return This builder for chaining. */ public Builder setUriBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; onChanged(); return this; } private java.lang.Object body_ = ""; /** * string body = 4; * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } else { return (java.lang.String) ref; } } /** * string body = 4; * @return The bytes for body. */ public com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); body_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string body = 4; * @param value The body to set. * @return This builder for chaining. */ public Builder setBody( java.lang.String value) { if (value == null) { throw new NullPointerException(); } body_ = value; onChanged(); return this; } /** * string body = 4; * @return This builder for chaining. */ public Builder clearBody() { body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** * string body = 4; * @param value The bytes for body to set. * @return This builder for chaining. */ public Builder setBodyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); body_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList limitGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLimitGroupsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { limitGroups_ = new com.google.protobuf.LazyStringArrayList(limitGroups_); bitField0_ |= 0x00000001; } } /** * repeated string limit_groups = 5; * @return A list containing the limitGroups. */ public com.google.protobuf.ProtocolStringList getLimitGroupsList() { return limitGroups_.getUnmodifiableView(); } /** * repeated string limit_groups = 5; * @return The count of limitGroups. */ public int getLimitGroupsCount() { return limitGroups_.size(); } /** * repeated string limit_groups = 5; * @param index The index of the element to return. * @return The limitGroups at the given index. */ public java.lang.String getLimitGroups(int index) { return limitGroups_.get(index); } /** * repeated string limit_groups = 5; * @param index The index of the value to return. * @return The bytes of the limitGroups at the given index. */ public com.google.protobuf.ByteString getLimitGroupsBytes(int index) { return limitGroups_.getByteString(index); } /** * repeated string limit_groups = 5; * @param index The index to set the value at. * @param value The limitGroups to set. * @return This builder for chaining. */ public Builder setLimitGroups( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLimitGroupsIsMutable(); limitGroups_.set(index, value); onChanged(); return this; } /** * repeated string limit_groups = 5; * @param value The limitGroups to add. * @return This builder for chaining. */ public Builder addLimitGroups( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLimitGroupsIsMutable(); limitGroups_.add(value); onChanged(); return this; } /** * repeated string limit_groups = 5; * @param values The limitGroups to add. * @return This builder for chaining. */ public Builder addAllLimitGroups( java.lang.Iterable values) { ensureLimitGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, limitGroups_); onChanged(); return this; } /** * repeated string limit_groups = 5; * @return This builder for chaining. */ public Builder clearLimitGroups() { limitGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string limit_groups = 5; * @param value The bytes of the limitGroups to add. * @return This builder for chaining. */ public Builder addLimitGroupsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLimitGroupsIsMutable(); limitGroups_.add(value); onChanged(); return this; } private java.lang.Object contentType_ = ""; /** * string content_type = 6; * @return The contentType. */ public java.lang.String getContentType() { java.lang.Object ref = contentType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; } else { return (java.lang.String) ref; } } /** * string content_type = 6; * @return The bytes for contentType. */ public com.google.protobuf.ByteString getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contentType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string content_type = 6; * @param value The contentType to set. * @return This builder for chaining. */ public Builder setContentType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } contentType_ = value; onChanged(); return this; } /** * string content_type = 6; * @return This builder for chaining. */ public Builder clearContentType() { contentType_ = getDefaultInstance().getContentType(); onChanged(); return this; } /** * string content_type = 6; * @param value The bytes for contentType to set. * @return This builder for chaining. */ public Builder setContentTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contentType_ = value; onChanged(); return this; } private boolean fifo_ ; /** * bool fifo = 7; * @return The fifo. */ @java.lang.Override public boolean getFifo() { return fifo_; } /** * bool fifo = 7; * @param value The fifo to set. * @return This builder for chaining. */ public Builder setFifo(boolean value) { fifo_ = value; onChanged(); return this; } /** * bool fifo = 7; * @return This builder for chaining. */ public Builder clearFifo() { fifo_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.BufferedRequest) } // @@protoc_insertion_point(class_scope:prefab.BufferedRequest) private static final cloud.prefab.domain.Prefab.BufferedRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.BufferedRequest(); } public static cloud.prefab.domain.Prefab.BufferedRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BufferedRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BufferedRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.BufferedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.BatchRequest) com.google.protobuf.MessageOrBuilder { /** * int64 account_id = 1; * @return The accountId. */ long getAccountId(); /** * string method = 2; * @return The method. */ java.lang.String getMethod(); /** * string method = 2; * @return The bytes for method. */ com.google.protobuf.ByteString getMethodBytes(); /** * string uri = 3; * @return The uri. */ java.lang.String getUri(); /** * string uri = 3; * @return The bytes for uri. */ com.google.protobuf.ByteString getUriBytes(); /** * string body = 4; * @return The body. */ java.lang.String getBody(); /** * string body = 4; * @return The bytes for body. */ com.google.protobuf.ByteString getBodyBytes(); /** * repeated string limit_groups = 5; * @return A list containing the limitGroups. */ java.util.List getLimitGroupsList(); /** * repeated string limit_groups = 5; * @return The count of limitGroups. */ int getLimitGroupsCount(); /** * repeated string limit_groups = 5; * @param index The index of the element to return. * @return The limitGroups at the given index. */ java.lang.String getLimitGroups(int index); /** * repeated string limit_groups = 5; * @param index The index of the value to return. * @return The bytes of the limitGroups at the given index. */ com.google.protobuf.ByteString getLimitGroupsBytes(int index); /** * string batch_template = 6; * @return The batchTemplate. */ java.lang.String getBatchTemplate(); /** * string batch_template = 6; * @return The bytes for batchTemplate. */ com.google.protobuf.ByteString getBatchTemplateBytes(); /** * string batch_separator = 7; * @return The batchSeparator. */ java.lang.String getBatchSeparator(); /** * string batch_separator = 7; * @return The bytes for batchSeparator. */ com.google.protobuf.ByteString getBatchSeparatorBytes(); } /** * Protobuf type {@code prefab.BatchRequest} */ public static final class BatchRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.BatchRequest) BatchRequestOrBuilder { private static final long serialVersionUID = 0L; // Use BatchRequest.newBuilder() to construct. private BatchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchRequest() { method_ = ""; uri_ = ""; body_ = ""; limitGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; batchTemplate_ = ""; batchSeparator_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BatchRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BatchRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { accountId_ = input.readInt64(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); method_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); uri_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); body_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { limitGroups_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } limitGroups_.add(s); break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); batchTemplate_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); batchSeparator_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { limitGroups_ = limitGroups_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_BatchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_BatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.BatchRequest.class, cloud.prefab.domain.Prefab.BatchRequest.Builder.class); } public static final int ACCOUNT_ID_FIELD_NUMBER = 1; private long accountId_; /** * int64 account_id = 1; * @return The accountId. */ @java.lang.Override public long getAccountId() { return accountId_; } public static final int METHOD_FIELD_NUMBER = 2; private volatile java.lang.Object method_; /** * string method = 2; * @return The method. */ @java.lang.Override public java.lang.String getMethod() { java.lang.Object ref = method_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); method_ = s; return s; } } /** * string method = 2; * @return The bytes for method. */ @java.lang.Override public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); method_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int URI_FIELD_NUMBER = 3; private volatile java.lang.Object uri_; /** * string uri = 3; * @return The uri. */ @java.lang.Override public java.lang.String getUri() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** * string uri = 3; * @return The bytes for uri. */ @java.lang.Override public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BODY_FIELD_NUMBER = 4; private volatile java.lang.Object body_; /** * string body = 4; * @return The body. */ @java.lang.Override public java.lang.String getBody() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** * string body = 4; * @return The bytes for body. */ @java.lang.Override public com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); body_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LIMIT_GROUPS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList limitGroups_; /** * repeated string limit_groups = 5; * @return A list containing the limitGroups. */ public com.google.protobuf.ProtocolStringList getLimitGroupsList() { return limitGroups_; } /** * repeated string limit_groups = 5; * @return The count of limitGroups. */ public int getLimitGroupsCount() { return limitGroups_.size(); } /** * repeated string limit_groups = 5; * @param index The index of the element to return. * @return The limitGroups at the given index. */ public java.lang.String getLimitGroups(int index) { return limitGroups_.get(index); } /** * repeated string limit_groups = 5; * @param index The index of the value to return. * @return The bytes of the limitGroups at the given index. */ public com.google.protobuf.ByteString getLimitGroupsBytes(int index) { return limitGroups_.getByteString(index); } public static final int BATCH_TEMPLATE_FIELD_NUMBER = 6; private volatile java.lang.Object batchTemplate_; /** * string batch_template = 6; * @return The batchTemplate. */ @java.lang.Override public java.lang.String getBatchTemplate() { java.lang.Object ref = batchTemplate_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); batchTemplate_ = s; return s; } } /** * string batch_template = 6; * @return The bytes for batchTemplate. */ @java.lang.Override public com.google.protobuf.ByteString getBatchTemplateBytes() { java.lang.Object ref = batchTemplate_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); batchTemplate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BATCH_SEPARATOR_FIELD_NUMBER = 7; private volatile java.lang.Object batchSeparator_; /** * string batch_separator = 7; * @return The batchSeparator. */ @java.lang.Override public java.lang.String getBatchSeparator() { java.lang.Object ref = batchSeparator_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); batchSeparator_ = s; return s; } } /** * string batch_separator = 7; * @return The bytes for batchSeparator. */ @java.lang.Override public com.google.protobuf.ByteString getBatchSeparatorBytes() { java.lang.Object ref = batchSeparator_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); batchSeparator_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (accountId_ != 0L) { output.writeInt64(1, accountId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, body_); } for (int i = 0; i < limitGroups_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, limitGroups_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchTemplate_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, batchTemplate_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchSeparator_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, batchSeparator_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (accountId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, accountId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(body_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, body_); } { int dataSize = 0; for (int i = 0; i < limitGroups_.size(); i++) { dataSize += computeStringSizeNoTag(limitGroups_.getRaw(i)); } size += dataSize; size += 1 * getLimitGroupsList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchTemplate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, batchTemplate_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchSeparator_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, batchSeparator_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.BatchRequest)) { return super.equals(obj); } cloud.prefab.domain.Prefab.BatchRequest other = (cloud.prefab.domain.Prefab.BatchRequest) obj; if (getAccountId() != other.getAccountId()) return false; if (!getMethod() .equals(other.getMethod())) return false; if (!getUri() .equals(other.getUri())) return false; if (!getBody() .equals(other.getBody())) return false; if (!getLimitGroupsList() .equals(other.getLimitGroupsList())) return false; if (!getBatchTemplate() .equals(other.getBatchTemplate())) return false; if (!getBatchSeparator() .equals(other.getBatchSeparator())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAccountId()); hash = (37 * hash) + METHOD_FIELD_NUMBER; hash = (53 * hash) + getMethod().hashCode(); hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); if (getLimitGroupsCount() > 0) { hash = (37 * hash) + LIMIT_GROUPS_FIELD_NUMBER; hash = (53 * hash) + getLimitGroupsList().hashCode(); } hash = (37 * hash) + BATCH_TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getBatchTemplate().hashCode(); hash = (37 * hash) + BATCH_SEPARATOR_FIELD_NUMBER; hash = (53 * hash) + getBatchSeparator().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.BatchRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.BatchRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.BatchRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.BatchRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.BatchRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.BatchRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.BatchRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.BatchRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.BatchRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.BatchRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.BatchRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.BatchRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.BatchRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.BatchRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.BatchRequest) cloud.prefab.domain.Prefab.BatchRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_BatchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_BatchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.BatchRequest.class, cloud.prefab.domain.Prefab.BatchRequest.Builder.class); } // Construct using cloud.prefab.domain.Prefab.BatchRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); accountId_ = 0L; method_ = ""; uri_ = ""; body_ = ""; limitGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); batchTemplate_ = ""; batchSeparator_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_BatchRequest_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.BatchRequest getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.BatchRequest.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.BatchRequest build() { cloud.prefab.domain.Prefab.BatchRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.BatchRequest buildPartial() { cloud.prefab.domain.Prefab.BatchRequest result = new cloud.prefab.domain.Prefab.BatchRequest(this); int from_bitField0_ = bitField0_; result.accountId_ = accountId_; result.method_ = method_; result.uri_ = uri_; result.body_ = body_; if (((bitField0_ & 0x00000001) != 0)) { limitGroups_ = limitGroups_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.limitGroups_ = limitGroups_; result.batchTemplate_ = batchTemplate_; result.batchSeparator_ = batchSeparator_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.BatchRequest) { return mergeFrom((cloud.prefab.domain.Prefab.BatchRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.BatchRequest other) { if (other == cloud.prefab.domain.Prefab.BatchRequest.getDefaultInstance()) return this; if (other.getAccountId() != 0L) { setAccountId(other.getAccountId()); } if (!other.getMethod().isEmpty()) { method_ = other.method_; onChanged(); } if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); } if (!other.getBody().isEmpty()) { body_ = other.body_; onChanged(); } if (!other.limitGroups_.isEmpty()) { if (limitGroups_.isEmpty()) { limitGroups_ = other.limitGroups_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLimitGroupsIsMutable(); limitGroups_.addAll(other.limitGroups_); } onChanged(); } if (!other.getBatchTemplate().isEmpty()) { batchTemplate_ = other.batchTemplate_; onChanged(); } if (!other.getBatchSeparator().isEmpty()) { batchSeparator_ = other.batchSeparator_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.BatchRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.BatchRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long accountId_ ; /** * int64 account_id = 1; * @return The accountId. */ @java.lang.Override public long getAccountId() { return accountId_; } /** * int64 account_id = 1; * @param value The accountId to set. * @return This builder for chaining. */ public Builder setAccountId(long value) { accountId_ = value; onChanged(); return this; } /** * int64 account_id = 1; * @return This builder for chaining. */ public Builder clearAccountId() { accountId_ = 0L; onChanged(); return this; } private java.lang.Object method_ = ""; /** * string method = 2; * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); method_ = s; return s; } else { return (java.lang.String) ref; } } /** * string method = 2; * @return The bytes for method. */ public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); method_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string method = 2; * @param value The method to set. * @return This builder for chaining. */ public Builder setMethod( java.lang.String value) { if (value == null) { throw new NullPointerException(); } method_ = value; onChanged(); return this; } /** * string method = 2; * @return This builder for chaining. */ public Builder clearMethod() { method_ = getDefaultInstance().getMethod(); onChanged(); return this; } /** * string method = 2; * @param value The bytes for method to set. * @return This builder for chaining. */ public Builder setMethodBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); method_ = value; onChanged(); return this; } private java.lang.Object uri_ = ""; /** * string uri = 3; * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } else { return (java.lang.String) ref; } } /** * string uri = 3; * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string uri = 3; * @param value The uri to set. * @return This builder for chaining. */ public Builder setUri( java.lang.String value) { if (value == null) { throw new NullPointerException(); } uri_ = value; onChanged(); return this; } /** * string uri = 3; * @return This builder for chaining. */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** * string uri = 3; * @param value The bytes for uri to set. * @return This builder for chaining. */ public Builder setUriBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; onChanged(); return this; } private java.lang.Object body_ = ""; /** * string body = 4; * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } else { return (java.lang.String) ref; } } /** * string body = 4; * @return The bytes for body. */ public com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); body_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string body = 4; * @param value The body to set. * @return This builder for chaining. */ public Builder setBody( java.lang.String value) { if (value == null) { throw new NullPointerException(); } body_ = value; onChanged(); return this; } /** * string body = 4; * @return This builder for chaining. */ public Builder clearBody() { body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** * string body = 4; * @param value The bytes for body to set. * @return This builder for chaining. */ public Builder setBodyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); body_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList limitGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLimitGroupsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { limitGroups_ = new com.google.protobuf.LazyStringArrayList(limitGroups_); bitField0_ |= 0x00000001; } } /** * repeated string limit_groups = 5; * @return A list containing the limitGroups. */ public com.google.protobuf.ProtocolStringList getLimitGroupsList() { return limitGroups_.getUnmodifiableView(); } /** * repeated string limit_groups = 5; * @return The count of limitGroups. */ public int getLimitGroupsCount() { return limitGroups_.size(); } /** * repeated string limit_groups = 5; * @param index The index of the element to return. * @return The limitGroups at the given index. */ public java.lang.String getLimitGroups(int index) { return limitGroups_.get(index); } /** * repeated string limit_groups = 5; * @param index The index of the value to return. * @return The bytes of the limitGroups at the given index. */ public com.google.protobuf.ByteString getLimitGroupsBytes(int index) { return limitGroups_.getByteString(index); } /** * repeated string limit_groups = 5; * @param index The index to set the value at. * @param value The limitGroups to set. * @return This builder for chaining. */ public Builder setLimitGroups( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLimitGroupsIsMutable(); limitGroups_.set(index, value); onChanged(); return this; } /** * repeated string limit_groups = 5; * @param value The limitGroups to add. * @return This builder for chaining. */ public Builder addLimitGroups( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLimitGroupsIsMutable(); limitGroups_.add(value); onChanged(); return this; } /** * repeated string limit_groups = 5; * @param values The limitGroups to add. * @return This builder for chaining. */ public Builder addAllLimitGroups( java.lang.Iterable values) { ensureLimitGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, limitGroups_); onChanged(); return this; } /** * repeated string limit_groups = 5; * @return This builder for chaining. */ public Builder clearLimitGroups() { limitGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string limit_groups = 5; * @param value The bytes of the limitGroups to add. * @return This builder for chaining. */ public Builder addLimitGroupsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLimitGroupsIsMutable(); limitGroups_.add(value); onChanged(); return this; } private java.lang.Object batchTemplate_ = ""; /** * string batch_template = 6; * @return The batchTemplate. */ public java.lang.String getBatchTemplate() { java.lang.Object ref = batchTemplate_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); batchTemplate_ = s; return s; } else { return (java.lang.String) ref; } } /** * string batch_template = 6; * @return The bytes for batchTemplate. */ public com.google.protobuf.ByteString getBatchTemplateBytes() { java.lang.Object ref = batchTemplate_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); batchTemplate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string batch_template = 6; * @param value The batchTemplate to set. * @return This builder for chaining. */ public Builder setBatchTemplate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } batchTemplate_ = value; onChanged(); return this; } /** * string batch_template = 6; * @return This builder for chaining. */ public Builder clearBatchTemplate() { batchTemplate_ = getDefaultInstance().getBatchTemplate(); onChanged(); return this; } /** * string batch_template = 6; * @param value The bytes for batchTemplate to set. * @return This builder for chaining. */ public Builder setBatchTemplateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); batchTemplate_ = value; onChanged(); return this; } private java.lang.Object batchSeparator_ = ""; /** * string batch_separator = 7; * @return The batchSeparator. */ public java.lang.String getBatchSeparator() { java.lang.Object ref = batchSeparator_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); batchSeparator_ = s; return s; } else { return (java.lang.String) ref; } } /** * string batch_separator = 7; * @return The bytes for batchSeparator. */ public com.google.protobuf.ByteString getBatchSeparatorBytes() { java.lang.Object ref = batchSeparator_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); batchSeparator_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string batch_separator = 7; * @param value The batchSeparator to set. * @return This builder for chaining. */ public Builder setBatchSeparator( java.lang.String value) { if (value == null) { throw new NullPointerException(); } batchSeparator_ = value; onChanged(); return this; } /** * string batch_separator = 7; * @return This builder for chaining. */ public Builder clearBatchSeparator() { batchSeparator_ = getDefaultInstance().getBatchSeparator(); onChanged(); return this; } /** * string batch_separator = 7; * @param value The bytes for batchSeparator to set. * @return This builder for chaining. */ public Builder setBatchSeparatorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); batchSeparator_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.BatchRequest) } // @@protoc_insertion_point(class_scope:prefab.BatchRequest) private static final cloud.prefab.domain.Prefab.BatchRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.BatchRequest(); } public static cloud.prefab.domain.Prefab.BatchRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BatchRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BatchRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.BatchRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BasicResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.BasicResponse) com.google.protobuf.MessageOrBuilder { /** * string message = 1; * @return The message. */ java.lang.String getMessage(); /** * string message = 1; * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); } /** * Protobuf type {@code prefab.BasicResponse} */ public static final class BasicResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.BasicResponse) BasicResponseOrBuilder { private static final long serialVersionUID = 0L; // Use BasicResponse.newBuilder() to construct. private BasicResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BasicResponse() { message_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BasicResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BasicResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); message_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_BasicResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_BasicResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.BasicResponse.class, cloud.prefab.domain.Prefab.BasicResponse.Builder.class); } public static final int MESSAGE_FIELD_NUMBER = 1; private volatile java.lang.Object message_; /** * string message = 1; * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** * string message = 1; * @return The bytes for message. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.BasicResponse)) { return super.equals(obj); } cloud.prefab.domain.Prefab.BasicResponse other = (cloud.prefab.domain.Prefab.BasicResponse) obj; if (!getMessage() .equals(other.getMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.BasicResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.BasicResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.BasicResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.BasicResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.BasicResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.BasicResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.BasicResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.BasicResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.BasicResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.BasicResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.BasicResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.BasicResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.BasicResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.BasicResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.BasicResponse) cloud.prefab.domain.Prefab.BasicResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_BasicResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_BasicResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.BasicResponse.class, cloud.prefab.domain.Prefab.BasicResponse.Builder.class); } // Construct using cloud.prefab.domain.Prefab.BasicResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); message_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_BasicResponse_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.BasicResponse getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.BasicResponse.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.BasicResponse build() { cloud.prefab.domain.Prefab.BasicResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.BasicResponse buildPartial() { cloud.prefab.domain.Prefab.BasicResponse result = new cloud.prefab.domain.Prefab.BasicResponse(this); result.message_ = message_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.BasicResponse) { return mergeFrom((cloud.prefab.domain.Prefab.BasicResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.BasicResponse other) { if (other == cloud.prefab.domain.Prefab.BasicResponse.getDefaultInstance()) return this; if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.BasicResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.BasicResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object message_ = ""; /** * string message = 1; * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** * string message = 1; * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string message = 1; * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); return this; } /** * string message = 1; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * string message = 1; * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.BasicResponse) } // @@protoc_insertion_point(class_scope:prefab.BasicResponse) private static final cloud.prefab.domain.Prefab.BasicResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.BasicResponse(); } public static cloud.prefab.domain.Prefab.BasicResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BasicResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BasicResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.BasicResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreationResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.CreationResponse) com.google.protobuf.MessageOrBuilder { /** * string message = 1; * @return The message. */ java.lang.String getMessage(); /** * string message = 1; * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); /** * int64 new_id = 2; * @return The newId. */ long getNewId(); } /** * Protobuf type {@code prefab.CreationResponse} */ public static final class CreationResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.CreationResponse) CreationResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CreationResponse.newBuilder() to construct. private CreationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreationResponse() { message_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreationResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreationResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); message_ = s; break; } case 16: { newId_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_CreationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_CreationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.CreationResponse.class, cloud.prefab.domain.Prefab.CreationResponse.Builder.class); } public static final int MESSAGE_FIELD_NUMBER = 1; private volatile java.lang.Object message_; /** * string message = 1; * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** * string message = 1; * @return The bytes for message. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NEW_ID_FIELD_NUMBER = 2; private long newId_; /** * int64 new_id = 2; * @return The newId. */ @java.lang.Override public long getNewId() { return newId_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); } if (newId_ != 0L) { output.writeInt64(2, newId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); } if (newId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, newId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.CreationResponse)) { return super.equals(obj); } cloud.prefab.domain.Prefab.CreationResponse other = (cloud.prefab.domain.Prefab.CreationResponse) obj; if (!getMessage() .equals(other.getMessage())) return false; if (getNewId() != other.getNewId()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (37 * hash) + NEW_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNewId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.CreationResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.CreationResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.CreationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.CreationResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.CreationResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.CreationResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.CreationResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.CreationResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.CreationResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.CreationResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.CreationResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.CreationResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.CreationResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.CreationResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.CreationResponse) cloud.prefab.domain.Prefab.CreationResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_CreationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_CreationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.CreationResponse.class, cloud.prefab.domain.Prefab.CreationResponse.Builder.class); } // Construct using cloud.prefab.domain.Prefab.CreationResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); message_ = ""; newId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_CreationResponse_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.CreationResponse getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.CreationResponse.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.CreationResponse build() { cloud.prefab.domain.Prefab.CreationResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.CreationResponse buildPartial() { cloud.prefab.domain.Prefab.CreationResponse result = new cloud.prefab.domain.Prefab.CreationResponse(this); result.message_ = message_; result.newId_ = newId_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.CreationResponse) { return mergeFrom((cloud.prefab.domain.Prefab.CreationResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.CreationResponse other) { if (other == cloud.prefab.domain.Prefab.CreationResponse.getDefaultInstance()) return this; if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); } if (other.getNewId() != 0L) { setNewId(other.getNewId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.CreationResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.CreationResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object message_ = ""; /** * string message = 1; * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** * string message = 1; * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string message = 1; * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); return this; } /** * string message = 1; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * string message = 1; * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; onChanged(); return this; } private long newId_ ; /** * int64 new_id = 2; * @return The newId. */ @java.lang.Override public long getNewId() { return newId_; } /** * int64 new_id = 2; * @param value The newId to set. * @return This builder for chaining. */ public Builder setNewId(long value) { newId_ = value; onChanged(); return this; } /** * int64 new_id = 2; * @return This builder for chaining. */ public Builder clearNewId() { newId_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.CreationResponse) } // @@protoc_insertion_point(class_scope:prefab.CreationResponse) private static final cloud.prefab.domain.Prefab.CreationResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.CreationResponse(); } public static cloud.prefab.domain.Prefab.CreationResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreationResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreationResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.CreationResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IdBlockOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.IdBlock) com.google.protobuf.MessageOrBuilder { /** * int64 project_id = 1; * @return The projectId. */ long getProjectId(); /** * int64 project_env_id = 2; * @return The projectEnvId. */ long getProjectEnvId(); /** * string sequence_name = 3; * @return The sequenceName. */ java.lang.String getSequenceName(); /** * string sequence_name = 3; * @return The bytes for sequenceName. */ com.google.protobuf.ByteString getSequenceNameBytes(); /** * int64 start = 4; * @return The start. */ long getStart(); /** * int64 end = 5; * @return The end. */ long getEnd(); } /** * Protobuf type {@code prefab.IdBlock} */ public static final class IdBlock extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.IdBlock) IdBlockOrBuilder { private static final long serialVersionUID = 0L; // Use IdBlock.newBuilder() to construct. private IdBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IdBlock() { sequenceName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IdBlock(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IdBlock( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { projectId_ = input.readInt64(); break; } case 16: { projectEnvId_ = input.readInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); sequenceName_ = s; break; } case 32: { start_ = input.readInt64(); break; } case 40: { end_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_IdBlock_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_IdBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.IdBlock.class, cloud.prefab.domain.Prefab.IdBlock.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private long projectId_; /** * int64 project_id = 1; * @return The projectId. */ @java.lang.Override public long getProjectId() { return projectId_; } public static final int PROJECT_ENV_ID_FIELD_NUMBER = 2; private long projectEnvId_; /** * int64 project_env_id = 2; * @return The projectEnvId. */ @java.lang.Override public long getProjectEnvId() { return projectEnvId_; } public static final int SEQUENCE_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object sequenceName_; /** * string sequence_name = 3; * @return The sequenceName. */ @java.lang.Override public java.lang.String getSequenceName() { java.lang.Object ref = sequenceName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sequenceName_ = s; return s; } } /** * string sequence_name = 3; * @return The bytes for sequenceName. */ @java.lang.Override public com.google.protobuf.ByteString getSequenceNameBytes() { java.lang.Object ref = sequenceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sequenceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int START_FIELD_NUMBER = 4; private long start_; /** * int64 start = 4; * @return The start. */ @java.lang.Override public long getStart() { return start_; } public static final int END_FIELD_NUMBER = 5; private long end_; /** * int64 end = 5; * @return The end. */ @java.lang.Override public long getEnd() { return end_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (projectId_ != 0L) { output.writeInt64(1, projectId_); } if (projectEnvId_ != 0L) { output.writeInt64(2, projectEnvId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sequenceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sequenceName_); } if (start_ != 0L) { output.writeInt64(4, start_); } if (end_ != 0L) { output.writeInt64(5, end_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (projectId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, projectId_); } if (projectEnvId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, projectEnvId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sequenceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sequenceName_); } if (start_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, start_); } if (end_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, end_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.IdBlock)) { return super.equals(obj); } cloud.prefab.domain.Prefab.IdBlock other = (cloud.prefab.domain.Prefab.IdBlock) obj; if (getProjectId() != other.getProjectId()) return false; if (getProjectEnvId() != other.getProjectEnvId()) return false; if (!getSequenceName() .equals(other.getSequenceName())) return false; if (getStart() != other.getStart()) return false; if (getEnd() != other.getEnd()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProjectId()); hash = (37 * hash) + PROJECT_ENV_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProjectEnvId()); hash = (37 * hash) + SEQUENCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getSequenceName().hashCode(); hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStart()); hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEnd()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.IdBlock parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.IdBlock parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.IdBlock parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.IdBlock parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.IdBlock parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.IdBlock parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.IdBlock parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.IdBlock parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.IdBlock parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.IdBlock parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.IdBlock parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.IdBlock parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.IdBlock prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.IdBlock} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.IdBlock) cloud.prefab.domain.Prefab.IdBlockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_IdBlock_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_IdBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.IdBlock.class, cloud.prefab.domain.Prefab.IdBlock.Builder.class); } // Construct using cloud.prefab.domain.Prefab.IdBlock.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); projectId_ = 0L; projectEnvId_ = 0L; sequenceName_ = ""; start_ = 0L; end_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_IdBlock_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.IdBlock getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.IdBlock.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.IdBlock build() { cloud.prefab.domain.Prefab.IdBlock result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.IdBlock buildPartial() { cloud.prefab.domain.Prefab.IdBlock result = new cloud.prefab.domain.Prefab.IdBlock(this); result.projectId_ = projectId_; result.projectEnvId_ = projectEnvId_; result.sequenceName_ = sequenceName_; result.start_ = start_; result.end_ = end_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.IdBlock) { return mergeFrom((cloud.prefab.domain.Prefab.IdBlock)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.IdBlock other) { if (other == cloud.prefab.domain.Prefab.IdBlock.getDefaultInstance()) return this; if (other.getProjectId() != 0L) { setProjectId(other.getProjectId()); } if (other.getProjectEnvId() != 0L) { setProjectEnvId(other.getProjectEnvId()); } if (!other.getSequenceName().isEmpty()) { sequenceName_ = other.sequenceName_; onChanged(); } if (other.getStart() != 0L) { setStart(other.getStart()); } if (other.getEnd() != 0L) { setEnd(other.getEnd()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.IdBlock parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.IdBlock) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long projectId_ ; /** * int64 project_id = 1; * @return The projectId. */ @java.lang.Override public long getProjectId() { return projectId_; } /** * int64 project_id = 1; * @param value The projectId to set. * @return This builder for chaining. */ public Builder setProjectId(long value) { projectId_ = value; onChanged(); return this; } /** * int64 project_id = 1; * @return This builder for chaining. */ public Builder clearProjectId() { projectId_ = 0L; onChanged(); return this; } private long projectEnvId_ ; /** * int64 project_env_id = 2; * @return The projectEnvId. */ @java.lang.Override public long getProjectEnvId() { return projectEnvId_; } /** * int64 project_env_id = 2; * @param value The projectEnvId to set. * @return This builder for chaining. */ public Builder setProjectEnvId(long value) { projectEnvId_ = value; onChanged(); return this; } /** * int64 project_env_id = 2; * @return This builder for chaining. */ public Builder clearProjectEnvId() { projectEnvId_ = 0L; onChanged(); return this; } private java.lang.Object sequenceName_ = ""; /** * string sequence_name = 3; * @return The sequenceName. */ public java.lang.String getSequenceName() { java.lang.Object ref = sequenceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sequenceName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string sequence_name = 3; * @return The bytes for sequenceName. */ public com.google.protobuf.ByteString getSequenceNameBytes() { java.lang.Object ref = sequenceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sequenceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string sequence_name = 3; * @param value The sequenceName to set. * @return This builder for chaining. */ public Builder setSequenceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sequenceName_ = value; onChanged(); return this; } /** * string sequence_name = 3; * @return This builder for chaining. */ public Builder clearSequenceName() { sequenceName_ = getDefaultInstance().getSequenceName(); onChanged(); return this; } /** * string sequence_name = 3; * @param value The bytes for sequenceName to set. * @return This builder for chaining. */ public Builder setSequenceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sequenceName_ = value; onChanged(); return this; } private long start_ ; /** * int64 start = 4; * @return The start. */ @java.lang.Override public long getStart() { return start_; } /** * int64 start = 4; * @param value The start to set. * @return This builder for chaining. */ public Builder setStart(long value) { start_ = value; onChanged(); return this; } /** * int64 start = 4; * @return This builder for chaining. */ public Builder clearStart() { start_ = 0L; onChanged(); return this; } private long end_ ; /** * int64 end = 5; * @return The end. */ @java.lang.Override public long getEnd() { return end_; } /** * int64 end = 5; * @param value The end to set. * @return This builder for chaining. */ public Builder setEnd(long value) { end_ = value; onChanged(); return this; } /** * int64 end = 5; * @return This builder for chaining. */ public Builder clearEnd() { end_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.IdBlock) } // @@protoc_insertion_point(class_scope:prefab.IdBlock) private static final cloud.prefab.domain.Prefab.IdBlock DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.IdBlock(); } public static cloud.prefab.domain.Prefab.IdBlock getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IdBlock parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IdBlock(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.IdBlock getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IdBlockRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.IdBlockRequest) com.google.protobuf.MessageOrBuilder { /** * int64 project_id = 1; * @return The projectId. */ long getProjectId(); /** * int64 project_env_id = 2; * @return The projectEnvId. */ long getProjectEnvId(); /** * string sequence_name = 3; * @return The sequenceName. */ java.lang.String getSequenceName(); /** * string sequence_name = 3; * @return The bytes for sequenceName. */ com.google.protobuf.ByteString getSequenceNameBytes(); /** * int64 size = 4; * @return The size. */ long getSize(); } /** * Protobuf type {@code prefab.IdBlockRequest} */ public static final class IdBlockRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.IdBlockRequest) IdBlockRequestOrBuilder { private static final long serialVersionUID = 0L; // Use IdBlockRequest.newBuilder() to construct. private IdBlockRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IdBlockRequest() { sequenceName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IdBlockRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IdBlockRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { projectId_ = input.readInt64(); break; } case 16: { projectEnvId_ = input.readInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); sequenceName_ = s; break; } case 32: { size_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_IdBlockRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_IdBlockRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.IdBlockRequest.class, cloud.prefab.domain.Prefab.IdBlockRequest.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private long projectId_; /** * int64 project_id = 1; * @return The projectId. */ @java.lang.Override public long getProjectId() { return projectId_; } public static final int PROJECT_ENV_ID_FIELD_NUMBER = 2; private long projectEnvId_; /** * int64 project_env_id = 2; * @return The projectEnvId. */ @java.lang.Override public long getProjectEnvId() { return projectEnvId_; } public static final int SEQUENCE_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object sequenceName_; /** * string sequence_name = 3; * @return The sequenceName. */ @java.lang.Override public java.lang.String getSequenceName() { java.lang.Object ref = sequenceName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sequenceName_ = s; return s; } } /** * string sequence_name = 3; * @return The bytes for sequenceName. */ @java.lang.Override public com.google.protobuf.ByteString getSequenceNameBytes() { java.lang.Object ref = sequenceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sequenceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SIZE_FIELD_NUMBER = 4; private long size_; /** * int64 size = 4; * @return The size. */ @java.lang.Override public long getSize() { return size_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (projectId_ != 0L) { output.writeInt64(1, projectId_); } if (projectEnvId_ != 0L) { output.writeInt64(2, projectEnvId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sequenceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sequenceName_); } if (size_ != 0L) { output.writeInt64(4, size_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (projectId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, projectId_); } if (projectEnvId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, projectEnvId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sequenceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sequenceName_); } if (size_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, size_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.IdBlockRequest)) { return super.equals(obj); } cloud.prefab.domain.Prefab.IdBlockRequest other = (cloud.prefab.domain.Prefab.IdBlockRequest) obj; if (getProjectId() != other.getProjectId()) return false; if (getProjectEnvId() != other.getProjectEnvId()) return false; if (!getSequenceName() .equals(other.getSequenceName())) return false; if (getSize() != other.getSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProjectId()); hash = (37 * hash) + PROJECT_ENV_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProjectEnvId()); hash = (37 * hash) + SEQUENCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getSequenceName().hashCode(); hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSize()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.IdBlockRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.IdBlockRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.IdBlockRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.IdBlockRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.IdBlockRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.IdBlockRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.IdBlockRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.IdBlockRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.IdBlockRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.IdBlockRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.IdBlockRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.IdBlockRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.IdBlockRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.IdBlockRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.IdBlockRequest) cloud.prefab.domain.Prefab.IdBlockRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_IdBlockRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_IdBlockRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.IdBlockRequest.class, cloud.prefab.domain.Prefab.IdBlockRequest.Builder.class); } // Construct using cloud.prefab.domain.Prefab.IdBlockRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); projectId_ = 0L; projectEnvId_ = 0L; sequenceName_ = ""; size_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_IdBlockRequest_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.IdBlockRequest getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.IdBlockRequest.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.IdBlockRequest build() { cloud.prefab.domain.Prefab.IdBlockRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.IdBlockRequest buildPartial() { cloud.prefab.domain.Prefab.IdBlockRequest result = new cloud.prefab.domain.Prefab.IdBlockRequest(this); result.projectId_ = projectId_; result.projectEnvId_ = projectEnvId_; result.sequenceName_ = sequenceName_; result.size_ = size_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.IdBlockRequest) { return mergeFrom((cloud.prefab.domain.Prefab.IdBlockRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.IdBlockRequest other) { if (other == cloud.prefab.domain.Prefab.IdBlockRequest.getDefaultInstance()) return this; if (other.getProjectId() != 0L) { setProjectId(other.getProjectId()); } if (other.getProjectEnvId() != 0L) { setProjectEnvId(other.getProjectEnvId()); } if (!other.getSequenceName().isEmpty()) { sequenceName_ = other.sequenceName_; onChanged(); } if (other.getSize() != 0L) { setSize(other.getSize()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cloud.prefab.domain.Prefab.IdBlockRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cloud.prefab.domain.Prefab.IdBlockRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long projectId_ ; /** * int64 project_id = 1; * @return The projectId. */ @java.lang.Override public long getProjectId() { return projectId_; } /** * int64 project_id = 1; * @param value The projectId to set. * @return This builder for chaining. */ public Builder setProjectId(long value) { projectId_ = value; onChanged(); return this; } /** * int64 project_id = 1; * @return This builder for chaining. */ public Builder clearProjectId() { projectId_ = 0L; onChanged(); return this; } private long projectEnvId_ ; /** * int64 project_env_id = 2; * @return The projectEnvId. */ @java.lang.Override public long getProjectEnvId() { return projectEnvId_; } /** * int64 project_env_id = 2; * @param value The projectEnvId to set. * @return This builder for chaining. */ public Builder setProjectEnvId(long value) { projectEnvId_ = value; onChanged(); return this; } /** * int64 project_env_id = 2; * @return This builder for chaining. */ public Builder clearProjectEnvId() { projectEnvId_ = 0L; onChanged(); return this; } private java.lang.Object sequenceName_ = ""; /** * string sequence_name = 3; * @return The sequenceName. */ public java.lang.String getSequenceName() { java.lang.Object ref = sequenceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sequenceName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string sequence_name = 3; * @return The bytes for sequenceName. */ public com.google.protobuf.ByteString getSequenceNameBytes() { java.lang.Object ref = sequenceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sequenceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string sequence_name = 3; * @param value The sequenceName to set. * @return This builder for chaining. */ public Builder setSequenceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sequenceName_ = value; onChanged(); return this; } /** * string sequence_name = 3; * @return This builder for chaining. */ public Builder clearSequenceName() { sequenceName_ = getDefaultInstance().getSequenceName(); onChanged(); return this; } /** * string sequence_name = 3; * @param value The bytes for sequenceName to set. * @return This builder for chaining. */ public Builder setSequenceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sequenceName_ = value; onChanged(); return this; } private long size_ ; /** * int64 size = 4; * @return The size. */ @java.lang.Override public long getSize() { return size_; } /** * int64 size = 4; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { size_ = value; onChanged(); return this; } /** * int64 size = 4; * @return This builder for chaining. */ public Builder clearSize() { size_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.IdBlockRequest) } // @@protoc_insertion_point(class_scope:prefab.IdBlockRequest) private static final cloud.prefab.domain.Prefab.IdBlockRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.IdBlockRequest(); } public static cloud.prefab.domain.Prefab.IdBlockRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IdBlockRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IdBlockRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.IdBlockRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_ConfigServicePointer_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ConfigServicePointer_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_ConfigValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ConfigValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_StringList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_StringList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_WeightedValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_WeightedValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_WeightedValues_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_WeightedValues_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_Configs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_Configs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_Config_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_Config_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_ChangedBy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ChangedBy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_ConfigRow_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ConfigRow_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_ConfigRow_PropertiesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ConfigRow_PropertiesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_ConditionalValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ConditionalValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_LimitResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_LimitResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_LimitRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_LimitRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_Criterion_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_Criterion_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_Identity_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_Identity_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_Identity_AttributesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_Identity_AttributesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_ClientConfigValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ClientConfigValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_ConfigEvaluations_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ConfigEvaluations_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_ConfigEvaluations_ValuesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ConfigEvaluations_ValuesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_LimitDefinition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_LimitDefinition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_LimitDefinitions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_LimitDefinitions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_BufferedRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_BufferedRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_BatchRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_BatchRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_BasicResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_BasicResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_CreationResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_CreationResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_IdBlock_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_IdBlock_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_IdBlockRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_IdBlockRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\014prefab.proto\022\006prefab\"W\n\024ConfigServiceP" + "ointer\022\022\n\nproject_id\030\001 \001(\003\022\023\n\013start_at_i" + "d\030\002 \001(\003\022\026\n\016project_env_id\030\003 \001(\003\"\243\002\n\013Conf" + "igValue\022\r\n\003int\030\001 \001(\003H\000\022\020\n\006string\030\002 \001(\tH\000" + "\022\017\n\005bytes\030\003 \001(\014H\000\022\020\n\006double\030\004 \001(\001H\000\022\016\n\004b" + "ool\030\005 \001(\010H\000\0221\n\017weighted_values\030\006 \001(\0132\026.p" + "refab.WeightedValuesH\000\0223\n\020limit_definiti" + "on\030\007 \001(\0132\027.prefab.LimitDefinitionH\000\022%\n\tl" + "og_level\030\t \001(\0162\020.prefab.LogLevelH\000\022)\n\013st" + "ring_list\030\n \001(\0132\022.prefab.StringListH\000B\006\n" + "\004type\"\034\n\nStringList\022\016\n\006values\030\001 \003(\t\"C\n\rW" + "eightedValue\022\016\n\006weight\030\001 \001(\005\022\"\n\005value\030\002 " + "\001(\0132\023.prefab.ConfigValue\"@\n\016WeightedValu" + "es\022.\n\017weighted_values\030\001 \003(\0132\025.prefab.Wei" + "ghtedValue\"h\n\007Configs\022\037\n\007configs\030\001 \003(\0132\016" + ".prefab.Config\022<\n\026config_service_pointer" + "\030\002 \001(\0132\034.prefab.ConfigServicePointer\"\367\001\n" + "\006Config\022\n\n\002id\030\001 \001(\003\022\022\n\nproject_id\030\002 \001(\003\022" + "\013\n\003key\030\003 \001(\t\022%\n\nchanged_by\030\004 \001(\0132\021.prefa" + "b.ChangedBy\022\037\n\004rows\030\005 \003(\0132\021.prefab.Confi" + "gRow\022-\n\020allowable_values\030\006 \003(\0132\023.prefab." + "ConfigValue\022\'\n\013config_type\030\007 \001(\0162\022.prefa" + "b.ConfigType\022\024\n\007draftId\030\010 \001(\003H\000\210\001\001B\n\n\010_d" + "raftId\"+\n\tChangedBy\022\017\n\007user_id\030\001 \001(\003\022\r\n\005" + "email\030\002 \001(\t\"\344\001\n\tConfigRow\022\033\n\016project_env" + "_id\030\001 \001(\003H\000\210\001\001\022(\n\006values\030\002 \003(\0132\030.prefab." + "ConditionalValue\0225\n\nproperties\030\003 \003(\0132!.p" + "refab.ConfigRow.PropertiesEntry\032F\n\017Prope" + "rtiesEntry\022\013\n\003key\030\001 \001(\t\022\"\n\005value\030\002 \001(\0132\023" + ".prefab.ConfigValue:\0028\001B\021\n\017_project_env_" + "id\"[\n\020ConditionalValue\022#\n\010criteria\030\001 \003(\013" + "2\021.prefab.Criterion\022\"\n\005value\030\002 \001(\0132\023.pre" + "fab.ConfigValue\"\333\003\n\rLimitResponse\022\016\n\006pas" + "sed\030\001 \001(\010\022\022\n\nexpires_at\030\002 \001(\003\022\026\n\016enforce" + "d_group\030\003 \001(\t\022\026\n\016current_bucket\030\004 \001(\003\022\024\n" + "\014policy_group\030\005 \001(\t\022;\n\013policy_name\030\006 \001(\016" + "2&.prefab.LimitResponse.LimitPolicyNames" + "\022\024\n\014policy_limit\030\007 \001(\005\022\016\n\006amount\030\010 \001(\003\022\026" + "\n\016limit_reset_at\030\t \001(\003\0229\n\014safety_level\030\n" + " \001(\0162#.prefab.LimitDefinition.SafetyLeve" + "l\"\251\001\n\020LimitPolicyNames\022\013\n\007NOT_SET\020\000\022\024\n\020S" + "ECONDLY_ROLLING\020\001\022\024\n\020MINUTELY_ROLLING\020\003\022" + "\022\n\016HOURLY_ROLLING\020\005\022\021\n\rDAILY_ROLLING\020\007\022\023" + "\n\017MONTHLY_ROLLING\020\010\022\014\n\010INFINITE\020\t\022\022\n\016YEA" + "RLY_ROLLING\020\n\"\231\002\n\014LimitRequest\022\022\n\naccoun" + "t_id\030\001 \001(\003\022\026\n\016acquire_amount\030\002 \001(\005\022\016\n\006gr" + "oups\030\003 \003(\t\022:\n\016limit_combiner\030\004 \001(\0162\".pre" + "fab.LimitRequest.LimitCombiner\022\036\n\026allow_" + "partial_response\030\005 \001(\010\0229\n\014safety_level\030\006" + " \001(\0162#.prefab.LimitDefinition.SafetyLeve" + "l\"6\n\rLimitCombiner\022\013\n\007NOT_SET\020\000\022\013\n\007MINIM" + "UM\020\001\022\013\n\007MAXIMUM\020\002\"\202\003\n\tCriterion\022\025\n\rprope" + "rty_name\030\001 \001(\t\0225\n\010operator\030\002 \001(\0162#.prefa" + "b.Criterion.CriterionOperator\022+\n\016value_t" + "o_match\030\003 \001(\0132\023.prefab.ConfigValue\"\371\001\n\021C" + "riterionOperator\022\013\n\007NOT_SET\020\000\022\021\n\rLOOKUP_" + "KEY_IN\020\001\022\025\n\021LOOKUP_KEY_NOT_IN\020\002\022\n\n\006IN_SE" + "G\020\003\022\016\n\nNOT_IN_SEG\020\004\022\017\n\013ALWAYS_TRUE\020\005\022\022\n\016" + "PROP_IS_ONE_OF\020\006\022\026\n\022PROP_IS_NOT_ONE_OF\020\007" + "\022\031\n\025PROP_ENDS_WITH_ONE_OF\020\010\022!\n\035PROP_DOES" + "_NOT_END_WITH_ONE_OF\020\t\022\026\n\022HIERARCHICAL_M" + "ATCH\020\n\"\223\001\n\010Identity\022\023\n\006lookup\030\001 \001(\tH\000\210\001\001" + "\0224\n\nattributes\030\002 \003(\0132 .prefab.Identity.A" + "ttributesEntry\0321\n\017AttributesEntry\022\013\n\003key" + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007_lookup\"\211\001\n" + "\021ClientConfigValue\022\020\n\003int\030\001 \001(\003H\000\210\001\001\022\023\n\006" + "string\030\002 \001(\tH\001\210\001\001\022\023\n\006double\030\003 \001(\001H\002\210\001\001\022\021" + "\n\004bool\030\004 \001(\010H\003\210\001\001B\006\n\004_intB\t\n\007_stringB\t\n\007" + "_doubleB\007\n\005_bool\"\224\001\n\021ConfigEvaluations\0225" + "\n\006values\030\001 \003(\0132%.prefab.ConfigEvaluation" + "s.ValuesEntry\032H\n\013ValuesEntry\022\013\n\003key\030\001 \001(" + "\t\022(\n\005value\030\002 \001(\0132\031.prefab.ClientConfigVa" + "lue:\0028\001\"\250\002\n\017LimitDefinition\022;\n\013policy_na" + "me\030\002 \001(\0162&.prefab.LimitResponse.LimitPol" + "icyNames\022\r\n\005limit\030\003 \001(\005\022\r\n\005burst\030\004 \001(\005\022\022" + "\n\naccount_id\030\005 \001(\003\022\025\n\rlast_modified\030\006 \001(" + "\003\022\022\n\nreturnable\030\007 \001(\010\0229\n\014safety_level\030\010 " + "\001(\0162#.prefab.LimitDefinition.SafetyLevel" + "\"@\n\013SafetyLevel\022\013\n\007NOT_SET\020\000\022\022\n\016L4_BEST_" + "EFFORT\020\004\022\020\n\014L5_BOMBPROOF\020\005\"@\n\020LimitDefin" + "itions\022,\n\013definitions\030\001 \003(\0132\027.prefab.Lim" + "itDefinition\"\212\001\n\017BufferedRequest\022\022\n\nacco" + "unt_id\030\001 \001(\003\022\016\n\006method\030\002 \001(\t\022\013\n\003uri\030\003 \001(" + "\t\022\014\n\004body\030\004 \001(\t\022\024\n\014limit_groups\030\005 \003(\t\022\024\n" + "\014content_type\030\006 \001(\t\022\014\n\004fifo\030\007 \001(\010\"\224\001\n\014Ba" + "tchRequest\022\022\n\naccount_id\030\001 \001(\003\022\016\n\006method" + "\030\002 \001(\t\022\013\n\003uri\030\003 \001(\t\022\014\n\004body\030\004 \001(\t\022\024\n\014lim" + "it_groups\030\005 \003(\t\022\026\n\016batch_template\030\006 \001(\t\022" + "\027\n\017batch_separator\030\007 \001(\t\" \n\rBasicRespons" + "e\022\017\n\007message\030\001 \001(\t\"3\n\020CreationResponse\022\017" + "\n\007message\030\001 \001(\t\022\016\n\006new_id\030\002 \001(\003\"h\n\007IdBlo" + "ck\022\022\n\nproject_id\030\001 \001(\003\022\026\n\016project_env_id" + "\030\002 \001(\003\022\025\n\rsequence_name\030\003 \001(\t\022\r\n\005start\030\004" + " \001(\003\022\013\n\003end\030\005 \001(\003\"a\n\016IdBlockRequest\022\022\n\np" + "roject_id\030\001 \001(\003\022\026\n\016project_env_id\030\002 \001(\003\022" + "\025\n\rsequence_name\030\003 \001(\t\022\014\n\004size\030\004 \001(\003*u\n\n" + "ConfigType\022\027\n\023NOT_SET_CONFIG_TYPE\020\000\022\n\n\006C" + "ONFIG\020\001\022\020\n\014FEATURE_FLAG\020\002\022\r\n\tLOG_LEVEL\020\003" + "\022\013\n\007SEGMENT\020\004\022\024\n\020LIMIT_DEFINITION\020\005*a\n\010L" + "ogLevel\022\025\n\021NOT_SET_LOG_LEVEL\020\000\022\t\n\005TRACE\020" + "\001\022\t\n\005DEBUG\020\002\022\010\n\004INFO\020\003\022\010\n\004WARN\020\005\022\t\n\005ERRO" + "R\020\006\022\t\n\005FATAL\020\t*G\n\tOnFailure\022\013\n\007NOT_SET\020\000" + "\022\020\n\014LOG_AND_PASS\020\001\022\020\n\014LOG_AND_FAIL\020\002\022\t\n\005" + "THROW\020\0032O\n\020RateLimitService\022;\n\nLimitChec" + "k\022\024.prefab.LimitRequest\032\025.prefab.LimitRe" + "sponse\"\0002\306\001\n\rConfigService\022>\n\tGetConfig\022" + "\034.prefab.ConfigServicePointer\032\017.prefab.C" + "onfigs\"\0000\001\022?\n\014GetAllConfig\022\034.prefab.Conf" + "igServicePointer\032\017.prefab.Configs\"\000\0224\n\006U" + "psert\022\016.prefab.Config\032\030.prefab.CreationR" + "esponse\"\0002B\n\tIdService\0225\n\010GetBlock\022\026.pre" + "fab.IdBlockRequest\032\017.prefab.IdBlock\"\0002H\n" + "\rClientService\0227\n\006GetAll\022\020.prefab.Identi" + "ty\032\031.prefab.ConfigEvaluations\"\000B\035\n\023cloud" + ".prefab.domainB\006Prefabb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_prefab_ConfigServicePointer_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_prefab_ConfigServicePointer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ConfigServicePointer_descriptor, new java.lang.String[] { "ProjectId", "StartAtId", "ProjectEnvId", }); internal_static_prefab_ConfigValue_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_prefab_ConfigValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ConfigValue_descriptor, new java.lang.String[] { "Int", "String", "Bytes", "Double", "Bool", "WeightedValues", "LimitDefinition", "LogLevel", "StringList", "Type", }); internal_static_prefab_StringList_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_prefab_StringList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_StringList_descriptor, new java.lang.String[] { "Values", }); internal_static_prefab_WeightedValue_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_prefab_WeightedValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_WeightedValue_descriptor, new java.lang.String[] { "Weight", "Value", }); internal_static_prefab_WeightedValues_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_prefab_WeightedValues_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_WeightedValues_descriptor, new java.lang.String[] { "WeightedValues", }); internal_static_prefab_Configs_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_prefab_Configs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_Configs_descriptor, new java.lang.String[] { "Configs", "ConfigServicePointer", }); internal_static_prefab_Config_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_prefab_Config_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_Config_descriptor, new java.lang.String[] { "Id", "ProjectId", "Key", "ChangedBy", "Rows", "AllowableValues", "ConfigType", "DraftId", "DraftId", }); internal_static_prefab_ChangedBy_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_prefab_ChangedBy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ChangedBy_descriptor, new java.lang.String[] { "UserId", "Email", }); internal_static_prefab_ConfigRow_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_prefab_ConfigRow_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ConfigRow_descriptor, new java.lang.String[] { "ProjectEnvId", "Values", "Properties", "ProjectEnvId", }); internal_static_prefab_ConfigRow_PropertiesEntry_descriptor = internal_static_prefab_ConfigRow_descriptor.getNestedTypes().get(0); internal_static_prefab_ConfigRow_PropertiesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ConfigRow_PropertiesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_prefab_ConditionalValue_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_prefab_ConditionalValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ConditionalValue_descriptor, new java.lang.String[] { "Criteria", "Value", }); internal_static_prefab_LimitResponse_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_prefab_LimitResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_LimitResponse_descriptor, new java.lang.String[] { "Passed", "ExpiresAt", "EnforcedGroup", "CurrentBucket", "PolicyGroup", "PolicyName", "PolicyLimit", "Amount", "LimitResetAt", "SafetyLevel", }); internal_static_prefab_LimitRequest_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_prefab_LimitRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_LimitRequest_descriptor, new java.lang.String[] { "AccountId", "AcquireAmount", "Groups", "LimitCombiner", "AllowPartialResponse", "SafetyLevel", }); internal_static_prefab_Criterion_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_prefab_Criterion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_Criterion_descriptor, new java.lang.String[] { "PropertyName", "Operator", "ValueToMatch", }); internal_static_prefab_Identity_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_prefab_Identity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_Identity_descriptor, new java.lang.String[] { "Lookup", "Attributes", "Lookup", }); internal_static_prefab_Identity_AttributesEntry_descriptor = internal_static_prefab_Identity_descriptor.getNestedTypes().get(0); internal_static_prefab_Identity_AttributesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_Identity_AttributesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_prefab_ClientConfigValue_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_prefab_ClientConfigValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ClientConfigValue_descriptor, new java.lang.String[] { "Int", "String", "Double", "Bool", "Int", "String", "Double", "Bool", }); internal_static_prefab_ConfigEvaluations_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_prefab_ConfigEvaluations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ConfigEvaluations_descriptor, new java.lang.String[] { "Values", }); internal_static_prefab_ConfigEvaluations_ValuesEntry_descriptor = internal_static_prefab_ConfigEvaluations_descriptor.getNestedTypes().get(0); internal_static_prefab_ConfigEvaluations_ValuesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ConfigEvaluations_ValuesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_prefab_LimitDefinition_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_prefab_LimitDefinition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_LimitDefinition_descriptor, new java.lang.String[] { "PolicyName", "Limit", "Burst", "AccountId", "LastModified", "Returnable", "SafetyLevel", }); internal_static_prefab_LimitDefinitions_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_prefab_LimitDefinitions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_LimitDefinitions_descriptor, new java.lang.String[] { "Definitions", }); internal_static_prefab_BufferedRequest_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_prefab_BufferedRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_BufferedRequest_descriptor, new java.lang.String[] { "AccountId", "Method", "Uri", "Body", "LimitGroups", "ContentType", "Fifo", }); internal_static_prefab_BatchRequest_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_prefab_BatchRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_BatchRequest_descriptor, new java.lang.String[] { "AccountId", "Method", "Uri", "Body", "LimitGroups", "BatchTemplate", "BatchSeparator", }); internal_static_prefab_BasicResponse_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_prefab_BasicResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_BasicResponse_descriptor, new java.lang.String[] { "Message", }); internal_static_prefab_CreationResponse_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_prefab_CreationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_CreationResponse_descriptor, new java.lang.String[] { "Message", "NewId", }); internal_static_prefab_IdBlock_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_prefab_IdBlock_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_IdBlock_descriptor, new java.lang.String[] { "ProjectId", "ProjectEnvId", "SequenceName", "Start", "End", }); internal_static_prefab_IdBlockRequest_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_prefab_IdBlockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_IdBlockRequest_descriptor, new java.lang.String[] { "ProjectId", "ProjectEnvId", "SequenceName", "Size", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy